]> WPIA git - gigi.git/commitdiff
fix: translate empty string always to empty string
authorFelix Dörre <felix@dogcraft.de>
Wed, 3 Aug 2016 11:02:59 +0000 (13:02 +0200)
committerFelix Dörre <felix@dogcraft.de>
Wed, 3 Aug 2016 21:14:39 +0000 (23:14 +0200)
...and not to pootle versioning information

fixes #104

Change-Id: I398f1942b0c0ea1672b137a02bdb3993ae111cb9

src/org/cacert/gigi/localisation/Language.java

index 95971120f39df4151e997ff2af1d4694cd1bfcee..4caaa79beb698533b0bb8de4f26f4aeb12945a67 100644 (file)
@@ -99,6 +99,9 @@ public class Language {
     }
 
     public String getTranslation(String text) {
+        if (text == null || text.equals("")) {
+            return text;
+        }
         String string = translations.get(text);
         if (string == null || string.equals("")) {
             return text;