Java Reference
In-Depth Information
Properties Files
The strings used in the main interface are encapsulated into resource bundles to allow the
display of localized strings in multiple locales. Each of the properties files has locale-spe-
cific files appended with locale codes, containing the translated strings for each locale.
For example,
Messages_es.properties
contains the localized strings for Spanish
locales.
The
dukestutoring.util
package in the
dukes-tutoring-common
project has
the following resource bundle:
The
dukes-tutoring-war
project has the following resource bundles:
ValidationMessages.properties
Strings for the default locale used by the Bean Validation runtime to display valida-
tion messages. This file must be named
ValidationMessages.properties
and located in the default package as required by the Bean Validation specification.
Each supported locale has a property file of the form
ValidationMes-
sages_
locale prefix
.properties
containing the localized strings. For example,