check this:
i18n Tutorial for Spring Framework[
^]
a self developed attempt could look something like this:
public final class MultiLanguageSupport {
public static ResourceBundle oMap = ResourceBundle.getBundle("resource/language/language");
private static Logger oLogger = Logger.getLogger(MultiLanguageSupport.class);
static {
}
public static final String getString(final String strKey) {
final String strReturn = MultiLanguageSupport.oMap.getString(strKey);
if ((null == strReturn) || (strReturn.length() == 0)) {
}
return strReturn;
}
}
The Map is filled as soon as this class is called. you can then get your Strings with
MultiLanguageSupport.getString(KEY)
.
You should also check out this tool: http://sourceforge.net/projects/eclipse-rbe/
Works fine for me and gives you better control on the language files.