diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-21 19:10:21 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-21 19:12:10 -0200 |
commit | ceecd29b53b7d570b56fb391a09abb71fe80566b (patch) | |
tree | a764684df84eb4a876c9d8dda490cf37f18e1100 /src/etc/inc/config.inc | |
parent | b50d30c3a6d29b02cc7f4fe66f3a16bc7a4ea1a6 (diff) | |
download | pfsense-ceecd29b53b7d570b56fb391a09abb71fe80566b.zip pfsense-ceecd29b53b7d570b56fb391a09abb71fe80566b.tar.gz |
Fix #5690:
- Remove parameters from set_language()
- Add a global variable for default language
- add env var for LANG, otherwise it won't work
Diffstat (limited to 'src/etc/inc/config.inc')
-rw-r--r-- | src/etc/inc/config.inc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/etc/inc/config.inc b/src/etc/inc/config.inc index 800312e..1f64b9a 100644 --- a/src/etc/inc/config.inc +++ b/src/etc/inc/config.inc @@ -229,17 +229,10 @@ if (isset($config['system']['timezone']) && } date_default_timezone_set("$timezone"); -/* Set the default interface language */ -if ($config['system']['language'] <> "") { - $g['language'] = $config['system']['language']; -} elseif ($g['language'] == "") { - $g['language'] = 'en_US'; -} - if (!function_exists('set_language')) { require_once("pfsense-utils.inc"); } -set_language($g['language']); +set_language(); if ($config_parsed == true) { /* process packager manager custom rules */ |