Skip to content
Snippets Groups Projects
Commit 0e26ed85 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #3184 from protich/issue/i18n-default-locale

i18n: Set UTF-8 as default locale
parents d04c9b79 986fc9c2
No related branches found
No related tags found
No related merge requests found
......@@ -490,6 +490,10 @@ class Internationalization {
TextDomain::setDefaultDomain($domain);
TextDomain::lookup()->setPath(I18N_DIR);
// Set the default locale to UTF-8. It will be changed by
// ::setLocaleForUser() later for web requests. See #2910
TextDomain::setLocale(LC_ALL, 'en_US.UTF-8');
// User-specific translations
function _N($msgid, $plural, $n) {
return TextDomain::lookup()->getTranslation()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment