update_localization
update_localization copied to clipboard
It merges all Localized tables in Localizable.strings
If I place this NSLocalizedStringWithDefaultValue(@"button_ok", @"StandardInterface", [NSBundle mainBundle], @"Ok", @"Button to confirm a choice");
inside one of my .m
files it parses it and puts the string inside Localizable.strings
and not in StandardInterface.strings
.
Can you make it preserve the tables in different files?
I show that this works fine for your unittests but for some reason not in my code. Can it be that the .m
file is nested 6 folders down?
Can you maybe provide a sample project where this happens?
As far as i know, the fact that the .m
file is nested deep inside your folder structure should not matter since the script uses the genstrings tool from Xcode to extract the strings from the source code...
I will try to create an example project. Can it be that the project is written in swift?
Maybe - I have not yet used this script in a project with swift. But i have just merged #3 which indicates to me that someone has used it with swift already.
It works for Swift for me also. It just doesn't create strings for some tables of pods written in obj-c.
I am trying to figure out what it is.
Sent from my iPhone
On 20 Φεβ 2015, at 21:30, Markus Chmelar [email protected] wrote:
Possibly - I have not yet used this script in a project with swift. But i have just merged #3 which indicates to me that someone has used it with swift already.
— Reply to this email directly or view it on GitHub.