mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +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 (!$defaulttext)
|
||||
return "Error getting Text: " . $key . " (" . $lang . ")";
|
||||
else
|
||||
if (!$defaulttext) {
|
||||
$tmpText = $LANG[$settings->_language][$key];
|
||||
// return "Error getting Text: " . $key . " (" . $lang . ")";
|
||||
} else
|
||||
$tmpText = $defaulttext;
|
||||
} else
|
||||
$tmpText = $LANG[$lang][$key];
|
||||
|
|
Loading…
Reference in New Issue
Block a user