Skip to content

Commit 67e9c49

Browse files
committed
Some cleanup, added new entries property for table
1 parent ffbe316 commit 67e9c49

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Core/Source/DTLocalizableStringAggregator.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
*/
4242
@property (nonatomic, retain) NSString *customMacroPrefix;
4343

44+
/**
45+
The default table name, if not set it defaults to "Localizable".
46+
*/
47+
@property (nonatomic, retain) NSString *defaultTableName;
48+
49+
4450
/**
4551
@name Scanning Files
4652
*/

Core/Source/DTLocalizableStringTable.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ typedef void(^DTLocalizableStringEntryWriteCallback)(DTLocalizableStringEntry *)
3333
*/
3434
@property (nonatomic, assign) BOOL shouldDecodeUnicodeSequences;
3535

36+
/**
37+
The string table entries of the receiver
38+
*/
39+
@property (nonatomic, readonly) NSArray *entries;
40+
3641
/**
3742
@name Creating a String Table
3843
*/

Core/Source/DTLocalizableStringTable.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ @implementation DTLocalizableStringTable
2020
DTLocalizableStringEntryWriteCallback _entryWriteCallback;
2121
}
2222

23-
@synthesize shouldDecodeUnicodeSequences = _shouldDecodeUnicodeSequences;
24-
2523
- (id)initWithName:(NSString *)name
2624
{
2725
self = [super init];
@@ -154,5 +152,7 @@ - (BOOL)writeToFolderAtURL:(NSURL *)url encoding:(NSStringEncoding)encoding erro
154152
#pragma mark Properties
155153

156154
@synthesize name = _name;
155+
@synthesize entries = _entries;
156+
@synthesize shouldDecodeUnicodeSequences = _shouldDecodeUnicodeSequences;
157157

158158
@end

0 commit comments

Comments
 (0)