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 215 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

The Next time the same user visits the application,
Tapestry will check to see if such a locale-remembering cookie exists, and if it does,
the application will be displayed in the locale specified by the cookie, even if the
browser's preferred language is different.
Chapter 7
[ 177 ]
The First thing we need to do to enable multi-lingual support in a Tapestry
application is to edit the contributeApplicationDefaults method of the
AppModule class that was automatically generated for us by Maven in the very
beginning. If we decided to support two languages, English and German, the method
should look like this:
public static void contributeApplicationDefaults(
MappedConfiguration configuration)
{
configuration.add("tapestry.supported-locales", "en,de");
}
Next step is perhaps the most important part of internationalization??”providing the
appropriate message catalogs for the supported locales. In the previous chapters, we
have already created the application-wide message catalog, app.properties file.
Now it is the time to learn more about message catalogs.
Creating and Using Message Catalogs
Just to remind you??”a application-wide, or root, message catalog should be placed
into the WEB-INF directory.


Pages:
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6