verify-string-files
is a tiny little Mac command-line tool that verifies
localized .strings
files against the given "master" .strings
file (typically
the one in Base.lproj
or your development language).
The tool will output problems (like missing strings in your localizations) as errors, warnings or notes that Xcode will pick up and display.
Combined with a custom build step in your Xcode project, it can be used to automatically give compile-time checked keys for your localised strings.
verify-string-files
is licensed under three-clause BSD. The license document can be
found here.
- Clone verify-string-files using
$ git clone git://github.com/iKenndac/verify-string-files.git
. - Open the project and build away!
$ verify-string-files -master <strings file path> [-warning-level <error | warning | note>]
-
-master
The path to a valid .strings file. Should be localized (that is, inside an .lproj folder and what's considered the "base" strings file for the project. -
-warning-level
The warning level to use:error
,warning
ornote
. Defaults toerror
.