From 8b414bd98fdd6b94bf79464266e93ad0e5b7c9f2 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 6 Feb 2010 17:41:13 +0000 Subject: Localize delete relation context menu item, update Localizable.strings and use of multiple keys. --- Interfaces/English.lproj/Localizable.strings | Bin 114188 -> 121118 bytes Source/SPTableRelations.m | 2 +- Source/SPUserManager.m | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Interfaces/English.lproj/Localizable.strings b/Interfaces/English.lproj/Localizable.strings index 7bc1b594..d0174b15 100644 Binary files a/Interfaces/English.lproj/Localizable.strings and b/Interfaces/English.lproj/Localizable.strings differ diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m index acb5c29c..10780fd1 100644 --- a/Source/SPTableRelations.m +++ b/Source/SPTableRelations.m @@ -414,7 +414,7 @@ { // Remove row if ([menuItem action] == @selector(removeRelation:)) { - [menuItem setTitle:([relationsTableView numberOfSelectedRows] > 1) ? @"Delete Relations" : @"Delete Relation"]; + [menuItem setTitle:([relationsTableView numberOfSelectedRows] > 1) ? NSLocalizedString(@"Delete Relations", @"delete relations menu item") : NSLocalizedString(@"Delete Relation", @"delete relation menu item")]; return ([relationsTableView numberOfSelectedRows] > 0); } diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index b91a019b..c5b621ef 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -685,8 +685,8 @@ if ([self.managedObjectContext hasChanges]) { NSAlert *alert = [NSAlert alertWithMessageText:@"Warning!" - defaultButton:NSLocalizedString(@"Continue", @"Continue") - alternateButton:NSLocalizedString(@"Cancel",@"Cancel") + defaultButton:NSLocalizedString(@"Continue", @"continue button") + alternateButton:NSLocalizedString(@"Cancel",@"cancel button") otherButton:nil informativeTextWithFormat:@"Window has changes. All changes will be lost!"]; [alert setAlertStyle:NSWarningAlertStyle]; -- cgit v1.2.3