Fix language if it is not found in the i18n. Reported by le_

This commit is contained in:
Sébastien Lucas 2013-07-29 10:10:54 +02:00
parent 4aa3529131
commit c84cec9516
3 changed files with 15 additions and 4 deletions

View file

@ -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) {