Restore full local name in settings

- Fallback to two-letter language code for translation if locale isn't found
- Rename L10n::langToString to L10n::localeToLanguageString
- Use setlocale() with the selected locale
This commit is contained in:
Hypolite Petovan 2018-11-18 10:38:17 -05:00
commit e8752c7631
7 changed files with 75 additions and 11 deletions

View file

@ -19,8 +19,8 @@ $settings = [
'displayErrorDetails' => false, // set to false in production
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
'i18n' => [
'locales' => ['en', 'fr', 'cs'],
'default' => 'en',
'locales' => ['en_US', 'fr_FR', 'cs_CZ'],
'default' => 'en_US',
'path' => __DIR__ . '/lang'
],
// Escaper settings