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
17ac6f37da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/fmdb/FMDatabaseQueue.m

+ 1 - 1
src/fmdb/FMDatabaseQueue.m

@@ -282,7 +282,7 @@ - (NSError*)inSavePoint:(__attribute__((noescape)) void (^)(FMDatabase *db, BOOL
     FMDBRelease(self);
     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