Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-22 10:05:55 +0000
committerTom Schindl2014-05-22 10:05:55 +0000
commit6e41c0f31ba99b9d8f7b3c75dff766293e91fd3e (patch)
tree9db29f4ba86c9cde5199aeb6cc282cd3a4d8cb1d
parente4bb9def6b1c4152d6ecea1f16315712ca239880 (diff)
downloadorg.eclipse.rap.incubator.e4-6e41c0f31ba99b9d8f7b3c75dff766293e91fd3e.tar.gz
org.eclipse.rap.incubator.e4-6e41c0f31ba99b9d8f7b3c75dff766293e91fd3e.tar.xz
org.eclipse.rap.incubator.e4-6e41c0f31ba99b9d8f7b3c75dff766293e91fd3e.zip
Bug 435495 - [e4] Application does not pick up correct browser locale
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
index 86c3c90..472ccfe 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
@@ -22,7 +22,6 @@ import java.io.IOException;
import java.io.OutputStream;
import java.net.URL;
import java.util.List;
-import java.util.Locale;
import java.util.Properties;
import java.util.UUID;
import org.eclipse.core.databinding.observable.Realm;
@@ -555,7 +554,7 @@ public class E4Application implements IApplication {
});
// translation
- String locale = Locale.getDefault().toString();
+ String locale = RWT.getLocale().toString();
appContext.set(TranslationService.LOCALE, locale);
TranslationService bundleTranslationProvider = TranslationProviderFactory
.bundleTranslationService(appContext);

Back to the top