Localization / Localized strings |
A source string file contains localized string definitions for a given language (or localization context).
A source string file is basically a mapping table that defines an identifier for each string.
After compiling source string files, the programs can load and use a string found according to its identifier (or key).
By convention, the source files of localized strings have the .str extension.
"string-identifier" = "string-text"
"common.button.cancel" = "Cancel"
identifier. [...] = "string-text"
common.button.cancel = "Cancel"
# a comment -- another comment
The fglmkstr compiler accepts the backslash "\" as the escape character, to define non-printable characters:
\l \n \r \t \\
# A comment line "Original text" = "Original text" "forms.customer.list" = "Customer List" "special.characters.backslash" = "\\" "special.characters.newline" = "\n"