]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - demo/plugins/org.argeo.demo.i18n/src/main/java/org/argeo/demo/i18n/I18nDemoPlugin.java
Internationalization Demo - single sourcing.
[lgpl/argeo-commons.git] / demo / plugins / org.argeo.demo.i18n / src / main / java / org / argeo / demo / i18n / I18nDemoPlugin.java
index a1e53a7cd1bdf7a938385d8ac53c56f85076e0e5..a1a338376448566b41f0719d62d0d2c33c33f713 100644 (file)
@@ -25,6 +25,8 @@ public class I18nDemoPlugin extends AbstractUIPlugin {
         * The constructor
         */
        public I18nDemoPlugin() {
+               // Locale currentLocale = new Locale("fr");
+               // Locale.setDefault(currentLocale);
        }
 
        /*
@@ -37,7 +39,8 @@ public class I18nDemoPlugin extends AbstractUIPlugin {
        public void start(BundleContext context) throws Exception {
                super.start(context);
                plugin = this;
-               messages = ResourceBundle.getBundle("org.argeo.demo.i18n.messages");
+               messages = ResourceBundle.getBundle(ID + ".messages");
+               // messages = ResourceBundle.getBundle(ID + ".messages", currentLocale);
        }
 
        /*