Skip to main content

Lang

Lang loop.
{loop type="lang" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
codeA single or list of lang code.code="fr", code="fr,en"
default_onlyreturns only the default languagefalsedefault_only="true"
excludeA single or list of lang ids.exclude="2", exclude="1,3"
exclude_defaultexclude the default language from resultsfalseexclude_default="true"
idA single or list of lang ids.id="2"
localeA single or list of lang locale.code="fr_FR", code="fr_FR,fr_CA"
orderA list of values see sorting possible valuespositionorder="alpha_reverse"

Plus the global arguments

Outputs

VariableValue
$CODElang code, example : fr
$DATE_FORMATthe lang date format
$DECIMAL_COUNTthe number of digits after the decimal separator
$DECIMAL_SEPARATORthe lang decimal separator, such as , or .
$IDthe order id
$IS_DEFAULTcheck if the current result is the default one
$LOCALElang locale, example : fr_FR
$POSITIONlang position
$THOUSANDS_SEPARATORthe lang thousangs separator
$TIME_FORMATthe lang time format
$TITLElang title
$URLthe lang URL, only if a specific URL is defined for each lang

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
alphaalpha_reversetitle
idid_reverseId
positionposition_reverseposition