setLanguage(language);
}
- @Override
- public String getString(StringId id) {
- return getString(id, (Object[]) null);
- }
-
/**
* Translate the given {@link StringId} into user text.
*
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();
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.
*
return locale;
}
+
}