From b9b2b0db99b6224e65490db346dfaa1c51c6f0c2 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 2 Apr 2014 12:29:59 +0200 Subject: use German as default language --- .../moa/id/configuration/config/ConfigurationProvider.java | 2 +- .../at/gv/egovernment/moa/id/configuration/helper/LanguageHelper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'id/ConfigWebTool/src/main/java') diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java index 2dce3534f..e4cf5367d 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java @@ -380,7 +380,7 @@ public class ConfigurationProvider { public String getDefaultLanguage() { try { - return props.getProperty("general.defaultlanguage").toLowerCase(); + return props.getProperty("general.defaultlanguage", "de").toLowerCase(); } catch (Exception ex) { return "de"; } 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 73b2708ae..62ba92539 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 @@ -75,11 +75,11 @@ public class LanguageHelper { } public static String getGUIString(String code, HttpServletRequest request) { - return guiRes_DE.getString(code); + return guiLanguage().getString(code); } public static String getGUIString(String code) { - return guiRes_DE.getString(code); + return guiLanguage().getString(code); } public static String getErrorString(String code, HttpServletRequest request) { -- cgit v1.2.3