[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 *Title: Locale template fetch function 2 3 *Documentation: 4 5 The "locale" fetch function has been added that allows a specific locale to be fetched. 6 The function has "locale_code" parameter. 7 If it is omitted current locale name will be used (site.ini[RegionalSettings].Locale) 8 9 *Summary 10 Fetches the available locale by locale code (for instance nor-NO or eng-GB.) 11 12 *Returns 13 ezlocale object. 14 15 *Example 16 17 {def $current_locale = fetch( 'content', 'locale' ) 18 $rus_ru_locale = fetch( 'content', 'locale', hash( 'locale_code', 'rus-RU' ) )} 19 20 {$current_locale.locale_code} : {$current_locale.country_name} 21 {$rus_ru_locale.locale_code} : {$rus_ru_locale.country_name}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |