In "Add Locales" what type of 'locale codes' are they referring to?
Answered
Hi,
I've create the Resource Bundle name, and now have the Add Locales dialog. It's asking me to input locale codes.
But I don't know what code represents English. What type of code are they asking for? Is there a numeric code that represents English?
I'm just trying to write the ResourceBundle.getBundle( "appName", Local.ENGLISH ) line. But it's telling me that it can't find a bundle for the base name "appName", which I guess makes sense since the properties file is empty. The appName.Properties file has already been created, but I'm not clear on what to add in the Add Locales dialog box.
Please sign in to leave a comment.
I went ahead and just added the property manually.
I still don't know what 'codes' mean, I searched around for the term in a Resource/Locale context. But at least we have a working properties file, populated manually.
You can try using en_US to indicate English locale. Please see a complete list of Java locales at https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html
Thanks, Egor.