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. --- Source/SPConnectionController.h | 1 + Source/SPFavoritesImporter.m | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Source') 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