From 7acc653f1982f2f839aadfe49f4277b160c94390 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:21:33 +0000 Subject: Only use configured locales git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@279 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java index 1e628342..ee44dad2 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java @@ -66,8 +66,8 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { private String defaultPassword = STRING_EMPTY; - private Locale locale = Locale.getDefault(); - private Locale signLocale = Locale.getDefault(); + private Locale locale = Messages.getDefaultLocale(); + private Locale signLocale = this.locale; private String emblem = STRING_EMPTY; @@ -593,7 +593,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { @Override public void setLocale(Locale locale) { if(locale == null) { - this.locale = Locale.getDefault(); + this.locale = Messages.getDefaultLocale(); } else { this.locale = locale; Locale.setDefault(locale); @@ -607,7 +607,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator { @Override public void setSignLocale(Locale locale) { if(locale == null) { - this.signLocale = Locale.getDefault(); + this.signLocale = Messages.getDefaultLocale(); } else { this.signLocale = locale; } -- cgit v1.2.3