More i18n, v1.0 ready
[jvcard.git] / src / be / nikiroo / jvcard / resources / bundles / TransBundle.java
index 4fe7c4b55ac82cfef32aaf662e4089635d823f9f..c79b0b69b62734d7b308ed07a50247fa15b7188e 100644 (file)
@@ -42,11 +42,6 @@ public class TransBundle extends Bundle<StringId> {
                setLanguage(language);
        }
 
-       @Override
-       public String getString(StringId id) {
-               return getString(id, (Object[]) null);
-       }
-
        /**
         * Translate the given {@link StringId} into user text.
         * 
@@ -105,6 +100,23 @@ public class TransBundle extends Bundle<StringId> {
                this.utf = utf;
        }
 
+       /**
+        * Initialise the translation mappings for the given language.
+        * 
+        * @param language
+        *            the language to initialise, in the form "en-GB" or "fr" for
+        *            instance
+        */
+       private void setLanguage(String language) {
+               locale = getLocaleFor(language);
+               map = getBundle(Target.resources, locale);
+       }
+
+       @Override
+       public String getString(StringId id) {
+               return getString(id, (Object[]) null);
+       }
+
        @Override
        protected File getUpdateFile(String path) {
                String code = locale.toString();
@@ -136,18 +148,6 @@ public class TransBundle extends Bundle<StringId> {
                StringId.writeHeader(writer, name);
        }
 
-       /**
-        * Initialise the translation mappings for the given language.
-        * 
-        * @param language
-        *            the language to initialise, in the form "en-GB" or "fr" for
-        *            instance
-        */
-       private void setLanguage(String language) {
-               locale = getLocaleFor(language);
-               map = getBundle(Target.resources, locale);
-       }
-
        /**
         * Return the {@link Locale} representing the given language.
         * 
@@ -180,4 +180,5 @@ public class TransBundle extends Bundle<StringId> {
 
                return locale;
        }
+
 }