Commit 1751d30a authored by Ad Schellevis's avatar Ad Schellevis

move set_language into guiconfig.inc

parent 96f8a78c
......@@ -66,6 +66,14 @@ if($config['system']['language'] <> "") {
$g['language'] = 'en_US';
}
function set_language($lang = 'en_US', $encoding = "UTF-8") {
putenv("LANG={$lang}.{$encoding}");
setlocale(LC_ALL, "{$lang}.{$encoding}");
textdomain("pfSense");
bindtextdomain("pfSense","/usr/local/share/locale");
bind_textdomain_codeset("pfSense","{$lang}.{$encoding}");
}
set_language($g['language']);
/* used by progress bar */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment