Reputation: 3692
I find this tool genstrings
, but it fails on line: NSLocalizedString(key,comment);
-(NSString*)toLocalizableString:(NSString*)key
withComment:(NSString*)comment{
NSString* stringResult = nil;
if (key){
stringResult = NSLocalizedString(key, comment);
}
NSLog(@"(*) key: <%@> (&) value: <%@> (*)",key,comment);
return stringResult;
}
Also, steps of localization:
NSLocalizedStringFromTable
genstrings
I stuck at first step. How find all strings, that are needed to have translations?
Or i'm wrong?
Thanks for explanation!
Upvotes: 0
Views: 1041
Reputation: 14169
This is not exactly what you are searching for, but for me it doesn't make sense to translate all strings, e.g. you likely do not want to translate strings (@""
) from an NSPredicate
.
If you moved all relevant strings to NSLocalizableString / NSLocalizableStringFromTable, then I can recommend Linguan. You just pass in your XCode project and you are ready to start translating.
Upvotes: 1