dont translate english to english

This commit is contained in:
iBNu Maksum 2024-11-21 18:10:24 +07:00
parent 40a39f0ced
commit 91e7caae80
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -24,10 +24,10 @@ class Lang
return $_L[$key];
} else {
$iso = Lang::getIsoLang()[$config['language']];
if (empty($iso) || $iso == 'en') {
if (empty($iso)) {
return $val;
}
if (!empty($iso) && !empty($val)) {
if (!empty($iso) && !empty($val) && $iso != 'en') {
$temp = Lang::translate($val, $iso);
if (!empty($temp)) {
$val = $temp;