You are here: Foswiki>System Web>Category>UserDocumentationCategory>Macros>VarLANGUAGES (2024-12-23, UnknownUser)Edit Attach
List the languages available (as PO
files). These are the languages in which the user interface is available.
Parameter | Description | Default |
---|---|---|
format | format for each item. See below for format tokens available in the format string. | " * $langname" |
separator | separator between items. | "\n" (newline) Note: The standard format tokens can also be used here. |
marker | Text for $marker if the item matches selection | "selected" |
selection | Current language to be selected in list | (none) |
format
tokens: (In addition to these tokens, the standard format tokens can also be used)
Token | Meaning |
---|---|
$langname | language's name, as informed by the translators |
$langtag | language's tag. Ex: en , pt-br , etc. |
$marker | Marker will be substituted only when the item matches the selection. |
%LANGUAGES%
expands to <select>%LANGUAGES{format="<option $marker value='$langtag'>$langname</option>" selection="%LANGUAGE%"}%</select>
creates an option list of the available languages with the current language selected Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback