*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}
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).
Address: https://doc.exponential.earth/exphelp/viewer/features/3.9/added_locale_template_fetch_function.txt
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