From b7bd2ae9a683652920a6c772eadeca2bac1e7b91 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 29 Jan 2012 16:10:04 +0000 Subject: Localize favorites import error message and update strings. --- Resources/English.lproj/ImportAccessory.strings | Bin 8656 -> 8916 bytes Resources/English.lproj/Localizable.strings | Bin 226764 -> 229222 bytes Source/SPConnectionController.h | 1 + Source/SPFavoritesImporter.m | 3 ++- 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Resources/English.lproj/ImportAccessory.strings b/Resources/English.lproj/ImportAccessory.strings index ce2730dc..e176385f 100644 Binary files a/Resources/English.lproj/ImportAccessory.strings and b/Resources/English.lproj/ImportAccessory.strings differ diff --git a/Resources/English.lproj/Localizable.strings b/Resources/English.lproj/Localizable.strings index 8b9f8ecd..3b7d3a3f 100644 Binary files a/Resources/English.lproj/Localizable.strings and b/Resources/English.lproj/Localizable.strings differ diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index 306342c2..a069253b 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -76,6 +76,7 @@ BOOL automaticFavoriteSelection; BOOL cancellingConnection; BOOL isConnecting; + #ifndef SP_REFACTOR /* ivars */ // Standard details NSInteger previousType; diff --git a/Source/SPFavoritesImporter.m b/Source/SPFavoritesImporter.m index 7726a949..60b483d5 100644 --- a/Source/SPFavoritesImporter.m +++ b/Source/SPFavoritesImporter.m @@ -70,7 +70,8 @@ else { error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError - userInfo:[NSDictionary dictionaryWithObject:@"Import file does not exist." forKey:NSLocalizedDescriptionKey]]; + userInfo:[NSDictionary dictionaryWithObject:NSLocalizedString(@"Import file does not exist.", @"import file does not exist message") + forKey:NSLocalizedDescriptionKey]]; } [self _informDelegateOfImportCompletion:error]; -- cgit v1.2.3