Introduce check-osgi profile
[lgpl/argeo-commons.git] / demo / plugins / org.argeo.demo.i18n.rcp / src / main / java / org / argeo / demo / i18n / specific / NLSHelperImpl.java
index 81c54156f372c55703ebc9516b59b1446b58eb47..091d5cdf8b799c4ec83285511906f4514f23b23f 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.demo.i18n.specific;
 
 import java.lang.reflect.Constructor;
@@ -15,12 +30,12 @@ public class NLSHelperImpl extends NLSHelper {
 
                ClassLoader loader = clazz.getClassLoader();
                // test
-               Locale currentLocale = new Locale("fr");
-               ResourceBundle bundle = ResourceBundle.getBundle(bundleName,
-                               currentLocale, loader);
-               // test end
+               // Locale currentLocale = new Locale("fr");
                // ResourceBundle bundle = ResourceBundle.getBundle(bundleName,
-               // Locale.getDefault(), loader);
+               // currentLocale, loader);
+               // test end
+               ResourceBundle bundle = ResourceBundle.getBundle(bundleName,
+                               Locale.getDefault(), loader);
                return internalGet(bundle, clazz);
        }