Enhance the genstrings command by adding merging capabilities
$ python genstring.py -p ../Relative/Path/To/Your/Project/Root
- It takes care of runing the genstrings command on all files *.m
- Merge the results with previous version of the Localizable.string file
- Inform you if it works correctly
-
genstrings doesn't like path containing spaces, so avoid subfolders containing spaces. Otherwise the Localizable.string will not be complete
-
You need to respect the format used by the genstrings command unless it will breaks. So, to avoid issues use strictly the format below for each translated text. Also do not remove the line break between two fields or it will breaks too.
/* Comment for localizable string */ "Your string" = "Translated string"; /* Comment for localizable string */ "Your string #2" = "Translated string #2";