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
061057ca04
commit
65eb9d2e1f
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user