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:
- Find all strings and wrap them with
NSLocalizedStringFromTable
- Extract strings with
genstrings
- Put localizable files and find translations
- well done!
I stuck at first step. How find all strings, that are needed to have translations?
Or i'm wrong?
Thanks for explanation!
NSLocalized..
. I search for tool, that can automate some work for me – gaussblurinc