Fix language if it is not found in the i18n. Reported by le_
This commit is contained in:
parent
4aa3529131
commit
c84cec9516
3 changed files with 15 additions and 4 deletions
5
base.php
5
base.php
|
@ -169,7 +169,10 @@ function localize($phrase, $count=-1) {
|
|||
$translations = array_merge ($translations_en, $translations);
|
||||
}
|
||||
}
|
||||
return $translations[$phrase];
|
||||
if (array_key_exists ($phrase, $translations)) {
|
||||
return $translations[$phrase];
|
||||
}
|
||||
return $phrase;
|
||||
}
|
||||
|
||||
function addURLParameter($urlParams, $paramName, $paramValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue