GENSTRINGS(1) — UNIX Programmer’s Manual
NAME
genstrings − generate string table from source code
SYNOPSIS
/usr/bin/genstrings [ −s routine ] [ −o outputDir ] file ...
DESCRIPTION
The genstrings utility generates a .strings file(s) from the C or Objective C (.c or .m) source code file(s) given as the argument(s). A .strings file is used for localizing an application for different languages, as described under "Localization" in the NEXTSTEP Developer’s Library.
Source lines containing text of the form LocalString("key", "value", comment) will generate an appropriate string table entry on stdout. Normally, stdout should be directed to a file named Localizable.strings, since this is where the NXLocalString function looks by default for its string table.
Source lines containing LocalStringFromTable(Table, "key", "value", comment) will generate an appropriate string table entry in a file named Table.strings.
OPTIONS
−s routine
Substitutes routine for LocalString. For example, −s MyLocalString will catch calls to MyLocalString and MyLocalStringFromTable.
−o outputDir
Specifies what directory the tables should be created in.
SEE ALSO
The developer bookshelf in Digital Librarian; search for "genstrings".
NeXT, Inc. — July 22, 1993