mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-21 17:11:38 +00:00
if after all no translation could be found, take the language in the settings
This commit is contained in:
parent
114b51ebc5
commit
5a3c2d9d4b
|
@ -73,9 +73,10 @@ function getMLText($key, $replace = array(), $defaulttext = "", $lang="") { /* {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($LANG[$lang][$key])) {
|
if(!isset($LANG[$lang][$key])) {
|
||||||
if (!$defaulttext)
|
if (!$defaulttext) {
|
||||||
return "Error getting Text: " . $key . " (" . $lang . ")";
|
$tmpText = $LANG[$settings->_language][$key];
|
||||||
else
|
// return "Error getting Text: " . $key . " (" . $lang . ")";
|
||||||
|
} else
|
||||||
$tmpText = $defaulttext;
|
$tmpText = $defaulttext;
|
||||||
} else
|
} else
|
||||||
$tmpText = $LANG[$lang][$key];
|
$tmpText = $LANG[$lang][$key];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user