mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Fix setting locale
This commit is contained in:
parent
11ac9b2507
commit
3a61bc5fce
@ -64,10 +64,12 @@ class ControllerRoot extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$locale = $lang . '.UTF-8';
|
||||
bind_textdomain_codeset('OPNsense', $locale);
|
||||
return new ViewTranslator(array(
|
||||
'directory' => '/usr/local/share/locale',
|
||||
'defaultDomain' => 'OPNsense',
|
||||
'locale' => $lang . '.UTF-8',
|
||||
'locale' => $locale,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user