Browse Source

Use NSLocalizedStringFromTable

Use NSLocalizedStringFromTable instead of NSLocalizedString in order to avoid polluting the global Localizable.strings table
Jonathan Hammer 7 years ago
parent
commit
439559d887
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/fmdb/FMDatabasePool.m

+ 1 - 1
src/fmdb/FMDatabasePool.m

@@ -326,7 +326,7 @@ - (NSError*)inSavePoint:(__attribute__((noescape)) void (^)(FMDatabase *db, BOOL
     
     return err;
 #else
-    NSString *errorMessage = NSLocalizedString(@"Save point functions require SQLite 3.7", nil);
+    NSString *errorMessage = NSLocalizedStringFromTable(@"Save point functions require SQLite 3.7", @"FMDB", nil);
     if (self.logsErrors) NSLog(@"%@", errorMessage);
     return [NSError errorWithDomain:@"FMDatabase" code:0 userInfo:@{NSLocalizedDescriptionKey : errorMessage}];
 #endif