DefaultTemplateLocale

Summary

Sets the default system locale.

Usage

DefaultTemplateLocale=<locale_name>

Note: the default setting is empty.

Description

This setting sets the locale for the entire PHP system to use for character manipulations when no locale is specified in the template.If you use a character set specific locale, for example "no_NO.UTF-8", make sure this character set matches the output character set of eZ Publish. The locale to use depends on your operating system, because different operating systems have different naming schemes for locales.  Therefore it is recommended to use multiple names in order for your installation to work on multiple platforms (for example developing on Windows and running Linux in production).When setting multiple locales the syntax is the following:

DefaultTemplateLocale=<locale_name>,<locale_name>,<locale_name>

Each locale is separated by a comma.  The first locale listed will be the fist locale used, then the second, and so on.By default this setting is left empty. This setting is case sensitive.

Examples

Example 1

DefaultTemplateLocale=de_DE.ISO-8859-1,german

This will tell PHP that if no locale is specified in the template, to first use the "de_DE.ISO-8859-1" locale, and if this is not available, then the "german" locale will be used.

Example 2

DefaultTemplateLocale=no_NO.UTF-8,no_NO,norwegian

Sets the Norwegian locale.  Each of the three listed elements, starting from the first, will be tried to be set as locale until success.  The locale that will be used depends on your operating system

Example 3

DefaultTemplateLocale=C

C is a special locale which means 7-bit ASCII

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.