Helps Cocoa applications localization by detecting unused and missing keys in '.strings' files.
Path of an Objective-C project.
- warnings for untranslated strings in *.m
- warnings for unused keys in Localization.strings
- errors for keys defined twice or more in the same .strings file
$ python objc_strings.py /path/to/obj_c/project
./MyProject/en.lproj/Localizable.strings:13: warning: unused key in en.lproj: "Misc"
./MyProject/ViewController.m:16: warning: missing key in fr.lproj: "World"
-
make
objc_strings.py
executable$ chmod +x objc_strings.py
-
copy
objc_strings.py
to the root of your project -
add a "Run Script" build phase to your target
-
move this build phase in second position
-
set the script path to
"${SOURCE_ROOT}/objc_strings.py"