GENSTRINGS

Section: User Commands (1)
Updated: July 22, 1993
Index Return to Main Contents
 

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".
 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 01:00:02 GMT, September 26, 2024