Skip to content

Commit 163f9d1

Browse files
committed
Small fix for the XML exporter.
1 parent 36900fc commit 163f9d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SCStringsUtility/SCStringsController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ - (void)generateXMLFileAtPath:(NSString*)path
383383
[headers addObject:column.identifier];
384384
}
385385

386-
self.filteredTranslationsDictionary = [self.translationsDictionary mutableCopy];
386+
OrderedDictionary *results = [self.translationsDictionary mutableCopy];
387387

388-
[self.filteredTranslationsDictionary enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSMutableDictionary* obj, BOOL *stop) {
388+
[results enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSMutableDictionary* obj, BOOL *stop) {
389389

390390
if(!includeComments)
391391
[obj removeObjectForKey:kKeyComment];
@@ -398,7 +398,7 @@ - (void)generateXMLFileAtPath:(NSString*)path
398398

399399

400400
NSError *error;
401-
[[NSPropertyListSerialization dataWithPropertyList:self.filteredTranslationsDictionary format:NSPropertyListXMLFormat_v1_0 options:0 error:&error] writeToFile:path ? path : self.sourceFilePath atomically:YES];
401+
[[NSPropertyListSerialization dataWithPropertyList:results format:NSPropertyListXMLFormat_v1_0 options:0 error:&error] writeToFile:path ? path : self.sourceFilePath atomically:YES];
402402

403403
if(error) {
404404
SCLog(@"%@", error);

0 commit comments

Comments
 (0)