};
List<Locale> availableLanguages = I18n.findAvailableLanguages();
for (final Locale locale: availableLanguages) {
- System.out.println("adding locale “" + locale.getLanguage() + "”");
I18nAction languageAction = new I18nAction("general.language." + locale.getLanguage()) {
@SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent e) {
- System.out.println("changing locale to: " + locale);
changeLanguage(locale, this);
}
};
- System.out.println("locale: " + locale + ", i18n: " + I18n.getLocale());
if (I18n.getLocale().getLanguage().equals(locale.getLanguage())) {
languageAction.setEnabled(false);
}