mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-18 08:38:29 +02:00
dont translate english to english
This commit is contained in:
parent
40a39f0ced
commit
91e7caae80
1 changed files with 2 additions and 2 deletions
|
@ -24,10 +24,10 @@ class Lang
|
||||||
return $_L[$key];
|
return $_L[$key];
|
||||||
} else {
|
} else {
|
||||||
$iso = Lang::getIsoLang()[$config['language']];
|
$iso = Lang::getIsoLang()[$config['language']];
|
||||||
if (empty($iso) || $iso == 'en') {
|
if (empty($iso)) {
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
if (!empty($iso) && !empty($val)) {
|
if (!empty($iso) && !empty($val) && $iso != 'en') {
|
||||||
$temp = Lang::translate($val, $iso);
|
$temp = Lang::translate($val, $iso);
|
||||||
if (!empty($temp)) {
|
if (!empty($temp)) {
|
||||||
$val = $temp;
|
$val = $temp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue