Apple genstrings command on steroids by adding merging superpowers
Eventually, all things merge into one, and a river runs through it.
Enhance the genstrings command by adding merging capabilities
Documentation is available at https://igenstrings.readthedocs.org.
\*.m
, \*.mm
and \*.swift
$ pip install igenstrings
Python 2.7 Python 3.4+
Ensure your *.strings
files are UTF-8 encoded as Apple recommends it now :
It is recommended that you save strings files using the UTF-8 encoding, which is the default encoding for standard strings files. Xcode automatically transcodes strings files from UTF-8 to UTF-16 when they’re copied into the product.
$ igenstrings ./MyXcodeProjectDir
output
Running the script on path ./MyXcodeProjectDir
Excluded path regex: None
languages found : ['./MyXcodeProjectDir/en.lproj', './MyXcodeProjectDir/fr.lproj']
Job done for language: ./MyXcodeProjectDir/en.lproj
Job done for language: ./MyXcodeProjectDir/fr.lproj
genstrings
command doesn't like path that contains spaces.
So avoid subfolders containing spaces, otherwise the Localizable.string will not be complete/* Comment for localizable string */
"Your string" = "Translated string";
/* Comment for localizable string */
"Your string #2" = "Translated string #2";
Tools used in rendering this package:
igenstrings
is available under the MIT license. See the LICENSE file for more info.