diff options
author | Max <post@wickenrode.com> | 2014-03-28 23:08:39 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-03-28 23:08:39 +0100 |
commit | 69c12e163713013af75fdb80d6982f30b81a9a06 (patch) | |
tree | ba391e8774519d8c526b2a50f702d9c77f141413 /Source | |
parent | f9837de31479152d8c29f06222bac3f5541b60b3 (diff) | |
download | sequelpro-69c12e163713013af75fdb80d6982f30b81a9a06.tar.gz sequelpro-69c12e163713013af75fdb80d6982f30b81a9a06.tar.bz2 sequelpro-69c12e163713013af75fdb80d6982f30b81a9a06.zip |
Add favorite name as export filename token
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPExportFilenameUtilities.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m index c056fdf0..d9637e4d 100644 --- a/Source/SPExportFilenameUtilities.m +++ b/Source/SPExportFilenameUtilities.m @@ -80,6 +80,7 @@ NSLocalizedString(@"month", @"export filename date token"), NSLocalizedString(@"day", @"export filename date token"), NSLocalizedString(@"time", @"export filename time token"), + NSLocalizedString(@"favorite", @"export filename favorite name token"), nil]; // Determine whether to remove the table from the tokens list @@ -370,6 +371,9 @@ [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [string appendString:[dateFormatter stringFromDate:[NSDate date]]]; } + else if ([tokenContent isEqualToString:NSLocalizedString(@"favorite", @"export filename favorite name token")]) { + [string appendString:[tableDocumentInstance name]]; + } } else { [string appendString:filenamePart]; |