I18n Variables
< Edit Variables | Variables | Layout Variables >
This page describes the variables used by PmWiki for Internationalizations (i18n).
$DefaultPageCharset- Fix and correctly handle some pages with missing or wrong attributes when UTF-8 is enabled.
$EnableXLPageScriptLoad- This variable, if set to 1, will allow the 'xlpage-i18n' parameter in XLPage definitions and thus it will allow editors to load scripts and changing the website encoding. By default this is disabled, the encoding script like
xlpage-utf-8.phpshould be included fromconfig.php. - $IntlLocale
- The default locale for the Intl PHP library, used for time formats, markup expressions, number formats, sorting (note, it may be different from the system locale set with
setlocale()). Can be defined inconfig.phpor in an XLPage page. Available since PmWiki 2.7.10. $VarPagesFmt- An array which contains the PageNames where you can find lists (trails) of pages containing variable definitions. To be modified when documentation is not in English. See
scripts/vardoc.php. - $VarVarsPattern
- Regex pattern for variable names used to create the internal array
$VarIndexfrom PmWiki.Variables, defaults to "$(". See$WikiWordPattern|Author|Skin|pagename|Version|action|XL)scripts/vardoc.php. $XL- An array (hash) which contains pairs of language identifiers and translation hashes. Each translation hash maps a given lookup key (or phrase) into a corresponding text string for the given language. Thus, it is essentially a multi-lingual dictionary used for phrase translation. It is also used for handling user preference mappings. Thus, the 'e_row' value that one finds on the Site.Preferences page is loaded into $XL during preference processing.
$XLLangs- An array that contains the names of the currently active language definitions. Only dictionaries in $XL that are named in
$XLLangsare used by the$[...]markup when performing a translation.
See also:
< Edit Variables | Variables | Layout Variables >
This page may have a more recent version on pmwiki.org: PmWiki:I18nVariables, and a talk page: PmWiki:I18nVariables-Talk.