aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax Lohrmann <dmoagx@users.noreply.github.com>2017-05-25 18:29:02 +0200
committerMax Lohrmann <dmoagx@users.noreply.github.com>2017-05-25 18:29:02 +0200
commitbdde7f922ee90a6a01cf23002bc4e29d0cd7367d (patch)
tree93c686956b47217dcb2badcf3e6351d4b9530f42 /Source
parentc1930afccdfbd594947dcdf6a67e91a0282da4b0 (diff)
downloadsequelpro-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
Diffstat (limited to 'Source')
-rw-r--r--Source/SPExportInitializer.m4
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])];
}