From 5d1bbe135b0d8d9ff0d8934f9d0a4311b61f46fb Mon Sep 17 00:00:00 2001 From: Bojan Suzic Date: Wed, 2 Apr 2014 15:22:18 +0200 Subject: language+ --- .../gv/egovernment/moa/id/configuration/helper/LanguageHelper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'id/ConfigWebTool') diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/helper/LanguageHelper.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/helper/LanguageHelper.java index b207e7118..c743036aa 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/helper/LanguageHelper.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/helper/LanguageHelper.java @@ -46,10 +46,9 @@ public class LanguageHelper { try { ConfigurationProvider configurationProvider = ConfigurationProvider.getInstance(); if (configurationProvider.getDefaultLanguage().equals("en")) { - Logger.trace("Returning EN error message"); return errorRes_EN.getString(code); } else { - Logger.trace("Returning DE error message"); + return errorRes_DE.getString(code); } } catch (ConfigurationException e) { Logger.error("Configuration exception while getting ConfigurationProvider instance"); @@ -59,7 +58,6 @@ public class LanguageHelper { Logger.error("General exception while returning translated message"); return errorRes_DE.getString(code); } - return errorRes_DE.getString(code); } private static String guiLanguage(String code) { @@ -67,10 +65,8 @@ public class LanguageHelper { try { ConfigurationProvider configurationProvider = ConfigurationProvider.getInstance(); if (configurationProvider.getDefaultLanguage().equals("en")) { - Logger.trace("Returning EN gui message: " + guiRes_EN.getString(code)); return guiRes_EN.getString(code); } else { - Logger.trace("Returning DE gui message: " + guiRes_DE.getString(code) + " /en>" + guiRes_EN.getString(code)); return guiRes_DE.getString(code); } } catch (ConfigurationException e) { -- cgit v1.2.3