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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

However, we don't need to know anything about this class as it is managed
by Tapestry behind the scenes. All we need to do as Tapestry developers is to create
a proper Locale and to provide resources for it.
Internationalization in Tapestry
Multi-lingual support works in Tapestry as follows:
If several locales are supported by a Tapestry web application and some user visits
the application for the first time, Tapestry checks for the preferred language of the
user's browser (you can set the preferred language in Internet Explorer by going
to Tools | Internet Options | General | Appearance | Languages, in Firefox, by
going to Preferences | Advanced | General | Languages). If the web application
supports the preferred language, Tapestry displays it in that language; otherwise the
application is displayed in the default language.
While doing this, Tapestry applies some reasonable logic. Say, if the preferred
language as set in the browser is either English (United Kingdom) or English (United
States) and the supported locales are defined as "en" and "de", Tapestry will display
the web application in the "en" locale.
If, while working with the application, the user switches the locale (you will see
soon how this can be done), Tapestry will remember the choice by setting a special
cookie into the user's browser.


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