I usejava.util.ResourceBundle
for i18n like this:
try {
resourceBundle = ResourceBundle.getBundle("Messages", locale);
} catch (MissingResourceException ex) {
logger.log(Level.SEVERE, ex.getMessage(), ex);
}
String localizedString = resourceBundle.getString("key");
I want to create the plural forms are well. Like:
one object
two objects
How can I define plural forms of localized Strings?
Here is how Java handles plural forms:
https://docs.oracle.com/javase/tutorial/i18n/format/choiceFormat.html