From d9972ca54f02da0bb4ff89db6615b7805482039b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Wed, 3 Aug 2016 13:02:59 +0200 Subject: [PATCH] fix: translate empty string always to empty string ...and not to pootle versioning information fixes #104 Change-Id: I398f1942b0c0ea1672b137a02bdb3993ae111cb9 --- src/org/cacert/gigi/localisation/Language.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/cacert/gigi/localisation/Language.java b/src/org/cacert/gigi/localisation/Language.java index 95971120..4caaa79b 100644 --- a/src/org/cacert/gigi/localisation/Language.java +++ b/src/org/cacert/gigi/localisation/Language.java @@ -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; -- 2.39.2