Correct example for adding a new locale.

This commit is contained in:
drzax 2013-01-07 17:18:22 +10:00
parent 061057ca04
commit 65eb9d2e1f

View File

@ -441,7 +441,7 @@ The `i18n` logic has lookup tables for common locales in i18n::$common_locales,
If your locale is not present here, you can simply add it through `mysite/_config.php`:
:::php
i18n::$common_locales['de_AT'] = 'Deutsch (Oestereich)';
i18n::$common_locales['de_AT'] = array('German (Austria)', 'Deutsch (Oestereich)');
This should e.g. enable you to use `$Locale.Nice` in template code.