* configclients.jsp: Fix add-new-client feature

* Translate: Catch empty string
This commit is contained in:
zzz
2010-01-18 14:51:39 +00:00
parent b1151f82b5
commit 27a5793fd0
3 changed files with 9 additions and 4 deletions

View File

@@ -36,6 +36,9 @@ public abstract class Translate {
return key;
else if (lang.equals(TEST_LANG))
return TEST_STRING;
// shouldnt happen but dont dump the po headers if it does
if (key.equals(""))
return key;
ResourceBundle bundle = findBundle(bun, lang);
if (bundle == null)
return key;