Create a Messages instance that reads all message files that match the file name and extension from all jar files on the classpath.
Create a Messages instance that reads all message files that match the file name and extension from all jar files on the classpath. Message files that match the supplied locale are concatenated and form the first tier of messages. Message files that have no locale are concatenated and form the backup tier. When a key is selected, the first tier is used. If the key is missing from the first tier, the backup tier is used. Note: message files on the same tier should never have the same key. It is undefined which value will be selected if the same key appears in more than one file in a tier.
Example:
Files in jar1 "conf/": messages.txt messages_fr.txt messages_us.txt
Files in jar2 "conf/": messages.txt messages_us.txt
For locale US, First tier: jar1:conf/messages_us.txt jar2:conf/messages_us.txt Backup tier: jar1:conf/messages.txt jar2:conf/messages.txt
For locale FR, First tier: jar1:conf/messages_fr.txt Backup tier: jar1:conf/messages.txt jar2:conf/messages.txt
the locale used to select messages for the first tier
the base resource directory to select message files from. Note: this must not be empty, currently a bug in the class loader only allows loading multiple resources when they are located in a sub-directory.
the base file name for message files
the file extension for message files
messages that returns keys from the first tier or if the key is not present in the first tier, from the backup tier.
An object for constructing Messages based on Java-style UTF8 MessageFormat resource bundles