Localization / Using localized strings |
A source string file contains localized string definitions for a given language (or localization context). It 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"
The fglmkstr compiler accepts the backslash "\" as the escape character, to define non-printable characters:
\l \n \r \t \\
"id001" = "Some text" "this.is.a.path.for.a.very.long.string.identifier" = "Customer List" "special.characters.backslash" = "\\" "special.characters.newline" = "\n"