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

Titel: Template-Fetch-Funktion locale

Die neue Fetch-Funktion "locale" ruft ein bestimmtes Locale ab. Sie hat den Parameter "locale_code". Fehlt er, wird der Name des aktuellen Locales verwendet (site.ini[RegionalSettings].Locale).

Download as PDF

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

This page is a translation. Read the English original

*Titel: Template-Fetch-Funktion locale

*Dokumentation:

Die neue Fetch-Funktion "locale" ruft ein bestimmtes Locale ab.
Sie hat den Parameter "locale_code".
Fehlt er, wird der Name des aktuellen Locales verwendet (site.ini[RegionalSettings].Locale).

*Zusammenfassung
Ruft das verfügbare Locale anhand des Locale-Codes ab (zum Beispiel nor-NO oder eng-GB).

*Rückgabe
ezlocale-Objekt.

*Beispiel

{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