SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 231 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

Currently, the English labels for this drop-down list are defined in the root
message catalog like this:
Country.GERMANY=Germany
country.uk=United Kingdom
COUNTRY.USA=United States
We can create a separate message catalog for the Registration page if we wish so and
move these entries there, or leave everything as it is in case the same messages might
be needed for some other page. To provide the countries labels in German, all we
need is to create an appropriate German message catalog, with German values for
the labels.
Let's create a new file, app_de.properties in WEB-INF directory. We could
translate all the contents of the app.properties file, put the translations into the
new message catalog and then internationalize all the labels of the Registration page.
However, you already know how to do that, so let's leave that work as an exercise
for you. For now, let's just provide German labels for the Country enumeration,
like this:
country.germany=Deutschland
country.uk=Grossbritannien
country.usa=Staaten von Amerika
Internationalization and Localization
[ 190 ]
Run the application and at the Start page change the locale to German and then
proceed to the Registration page.


Pages:
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6