Skip to content
Snippets Groups Projects
Commit 986fc9c2 authored by Peter Rotich's avatar Peter Rotich
Browse files

i18n: Set UTF-8 as default locale

parent 3f8e9e65
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