Given a language code of fr and a country code of FR, while file name represents a resource bundle file name that is not the default?

Given a language code of fr and a country code of FR, while file name represents a resource bundle file name that is not the default?

Given a language code of fr and a country code of FR, while file name represents a resource bundle file name that is not the default?

A.
MessageBundle_fr_FR.properties

B.
MessageBundle_fr_FR.Profile

C.
MessageBundle_fr_FR.Xml

D.
MessageBundle_fr_FR.Java

E.
MessageBundle_fr_FR.locale

Explanation:
A properties file is a simple text file. You can create and maintain a properties file with just about any text editor.
You should always create a default properties file. The name of this file begins with the base name of your ResourceBundle and ends with the .properties suffix.
To support an additional Locale, your localizers will create a new properties file that contains the translated values. No changes to your source code are required, because your program references the keys, not the values.
For example, to add support for the German language, your localizers would translate the values in LabelsBundle.properties and place them in a file named LabelsBundle_de.properties. Notice that the name of this file, like that of the default file, begins with the base name LabelsBundle and ends with the .properties suffix.
Reference: The Java Tutorials,Backing a ResourceBundle with Properties Files



Leave a Reply 0

Your email address will not be published. Required fields are marked *