Permalink
Browse files

Also set default locale (if extension is available)

  • Loading branch information...
flack committed Aug 25, 2018
1 parent b31eac8 commit e4e4b46598fa0f3f093a0d7c7bfd065b88086855
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/midcom/services/i18n/main.php
@@ -210,6 +210,9 @@ public function set_language($lang)
$this->_current_language = $lang;
setlocale(LC_ALL, $lang);
if (Intl::isExtensionLoaded()) {
Locale::setDefault($lang);
}
foreach ($this->_obj_l10n as $object) {
$object->set_language($lang);

0 comments on commit e4e4b46

Please sign in to comment.