Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Locale template fetch function

The "locale" fetch function has been added that allows a specific locale to be fetched. The function has "locale_code" parameter. If it is omitted current locale name will be used (site.ini[RegionalSettings].Locale)

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.9/added_locale_template_fetch_function.txt

*Title: Locale template fetch function

*Documentation:

The "locale" fetch function has been added that allows a specific locale to be fetched.
The function has "locale_code" parameter.
If it is omitted current locale name will be used (site.ini[RegionalSettings].Locale)

*Summary
Fetches the available locale by locale code (for instance nor-NO or eng-GB.)

*Returns
ezlocale object.

*Example

{def $current_locale = fetch( 'content', 'locale' )
     $rus_ru_locale  = fetch( 'content', 'locale', hash( 'locale_code', 'rus-RU' ) )}
     
{$current_locale.locale_code} : {$current_locale.country_name}
{$rus_ru_locale.locale_code}  : {$rus_ru_locale.country_name}

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors