mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
Correct example for adding a new locale.
This commit is contained in:
parent
27208655b9
commit
1289b76482
@ -444,7 +444,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 (Österreich)');
|
||||
|
||||
This should e.g. enable you to use `$Locale.Nice` in template code.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user