diff options
-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]; |