diff options
author | Max Lohrmann <dmoagx@users.noreply.github.com> | 2017-05-25 18:29:02 +0200 |
---|---|---|
committer | Max Lohrmann <dmoagx@users.noreply.github.com> | 2017-05-25 18:29:02 +0200 |
commit | bdde7f922ee90a6a01cf23002bc4e29d0cd7367d (patch) | |
tree | 93c686956b47217dcb2badcf3e6351d4b9530f42 | |
parent | c1930afccdfbd594947dcdf6a67e91a0282da4b0 (diff) | |
download | sequelpro-bdde7f922ee90a6a01cf23002bc4e29d0cd7367d.tar.gz sequelpro-bdde7f922ee90a6a01cf23002bc4e29d0cd7367d.tar.bz2 sequelpro-bdde7f922ee90a6a01cf23002bc4e29d0cd7367d.zip |
Minor bug: CSV/XML export file names could behave differently for localized versions vs English version
-rw-r--r-- | Source/SPExportInitializer.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m index 3238ea5c..9269cac8 100644 --- a/Source/SPExportInitializer.m +++ b/Source/SPExportInitializer.m @@ -520,7 +520,7 @@ BOOL tableNameInTokens = NO; NSArray *representedObjects = [exportCustomFilenameTokenField objectValue]; for (id representedObject in representedObjects) { - if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; + if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:SPFileNameTableTokenName]) tableNameInTokens = YES; } [exportFilename setString:(tableNameInTokens ? exportFilename : [exportFilename stringByAppendingFormat:@"_%@", table])]; } @@ -582,7 +582,7 @@ BOOL tableNameInTokens = NO; NSArray *representedObjects = [exportCustomFilenameTokenField objectValue]; for (id representedObject in representedObjects) { - if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; + if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:SPFileNameTableTokenName]) tableNameInTokens = YES; } [exportFilename setString:(tableNameInTokens ? exportFilename : [exportFilename stringByAppendingFormat:@"_%@", table])]; } |