Gettext
Parameters
l10n.locale
The top-level locale of the document
l10n.language
The language part of the top-level locale of the document
l10n.region
The region part of the top-level locale of the document
l10n.variant
The variant part of the top-level locale of the document
l10n.charset
The charset part of the top-level locale of the document
Templates
l10n.gettext
Look up a translated string
l10n.plural.form
Extract the plural form string for a cardinality
l10n.language
Extract the language part of a locale
l10n.region
Extract the region part of a locale
l10n.variant
Extract the variant part of a locale
l10n.charset
Extract the charset part of a locale
l10n.locale
l10n.locale
The top-level locale of the document
Description
This parameter has no description
l10n.language
l10n.language
The language part of the top-level locale of the document
Description
This parameter has no description
l10n.region
l10n.region
The region part of the top-level locale of the document
Description
This parameter has no description
l10n.variant
l10n.variant
The variant part of the top-level locale of the document
Description
This parameter has no description
l10n.charset
l10n.charset
The charset part of the top-level locale of the document
Description
This parameter has no description
l10n.gettext
l10n.gettext
Look up a translated string
Parameters
msgid
The id of the string to look up, usually the string in the C locale
lang
The locale to use when looking up the translated string
lang_language
The language portion of the locale to use
lang_region
The region portion of the locale to use
lang_variant
The variant portion of the locale to use
lang_charset
The charset portion of the locale to use
number
The cardinality for plural-form lookups
form
The form name for plural-form lookups
l10n.plural.form
l10n.plural.form
Extract the plural form string for a cardinality
Parameters
number
The cardinality of plural form
lang
The locale to use when looking up the translated string
lang_language
The language portion of the locale to use
lang_region
The region portion of the locale to use
lang_variant
The variant portion of the locale to use
lang_charset
The charset portion of the locale to use
l10n.language
l10n.language
Extract the language part of a locale
Parameters
lang
The locale string from which to extract the language string
l10n.region
l10n.region
Extract the region part of a locale
Parameters
lang
The locale string from which to extract the region string
l10n.variant
l10n.variant
Extract the variant part of a locale
Parameters
lang
The locale string from which to extract the variant string
l10n.charset
l10n.charset
Extract the charset part of a locale
Parameters
lang
The locale string from which to extract the charset string
