Skip to content

Commit 40c6131

Browse files
committed
Merge pull request #1 from Screon/patch-1
Prevent log in release mode.
2 parents c021446 + b4d018f commit 40c6131

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

LocalizationSystem.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ - (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)comment
7272
// If this function is not called it will use the default OS language.
7373
// If the language does not exists y returns the default OS language.
7474
- (void) setLanguage:(NSString*) l{
75+
#ifdef DEBUG
7576
NSLog(@"preferredLang: %@", l);
77+
#endif
7678

7779
NSString *path = [[ NSBundle mainBundle ] pathForResource:l ofType:@"lproj" ];
7880

0 commit comments

Comments
 (0)