Author: buildbot
Date: Mon Jun 2 02:19:36 2014
New Revision: 910829
Log:
Production update by buildbot for tapestry
Modified:
websites/production/tapestry/content/cache/main.pageCache
websites/production/tapestry/content/localization.html
Modified: websites/production/tapestry/content/cache/main.pageCache
==
Binary files - no diff available.
Modified: websites/production/tapestry/content/localization.html
==
--- websites/production/tapestry/content/localization.html (original)
+++ websites/production/tapestry/content/localization.html Mon Jun 2 02:19:36
2014
@@ -166,7 +166,7 @@ public String getDisplayLanguage() {
return persistentLocale.get().getDisplayLanguage();
}
]]/script
-/div/divpOnce a persistent locale is set, you will see the locale name
as the first virtual folder in page render and component event requests URLs.
In this way, a persistent locale will, in fact, persist from request to
request, or in a user's bookmarks./ppYou will see the new locale take
effect on the next request. If it is changed in a component event request
(which is typical), the new locale will be used in the subsequent page render
request./ppNote that the locale for a page is fixed (it can't change once
the page instance is created). In addition, a page may only be attached to a
request once. In other words, if code in your page changes the persistent
locale, you won't see a change to the page's locale (or localized messages)
emin that request/em./ph2 id=Localization-Built-inLocalesBuilt-in
Locales/h2pWhile your application can support any locale (and thus any
language) that you want, Tapestry provides only a limited set of translations
for its ow
n built-in messages. As of Tapestry 5.3, the following locales have
translations provided:/pdiv class=table-wraptable
class=confluenceTabletbodytrtd colspan=1 rowspan=1
class=confluenceTdpen (English)/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspanel (Greek)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdpspanit (Italian)/span/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpspanpl
(Polish)/span/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspanvi (Vietnamese)/span/p/td/trtrtd
colspan=1 rowspan=1 class=confluenceTdpbg (Bulgarian)/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpspanes
(Spanish)/span/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspanja (Japanese)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdpspanpt (Portuguese)/span/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpspanzh (Chinese)/sp
an/p/td/trtrtd colspan=1 rowspan=1 class=confluenceTdpcs
(Czech)sup1/sup/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspanfi (Finnish)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdpspanmk (Macedonian)/span/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpspanru
(Russian)/span/p/tdtd colspan=1 rowspan=1
class=confluenceTdp#160;/p/td/trtrtd colspan=1 rowspan=1
class=confluenceTdpspanda (Danish)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdpspanfr (French)/span/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpspannl
(Dutch)/span/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspansr (Serbian)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdp#160;/p/td/trtrtd colspan=1
rowspan=1 class=confluenceTdpspande (German)/span/p/tdtd
colspan=1 rowspan=1 class=confluenceTdpsp
anhr (Croatian)/span/p/tdtd colspan=1 rowspan=1
class=confluenceTdpspanno (Norwegian)/span/p/tdtd colspan=1
rowspan=1 class=confluenceTdpspansv (Swedish)/span/p/tdtd
colspan=1 rowspan=1
class=confluenceTdp#160;/p/td/tr/tbody/table/divpsup1#160;/supspan
style=line-height: 1.4285715;as of Tapestry 5.3.8/span/ph3
id=Localization-ProvidingtranslationsforTapestrybuilt-inmessagesProviding
translations for Tapestry built-in messages/h3pFortunately, Tapestry uses
all the same mechanisms for its own locale support as it provides for your
application. So, to support other locales, just translate the built-in message
catalog (property) files yourself:/pp#160;/pstyle
type=text/csstable.sectionMacro { width: auto; }/style
+/div/divpOnce a persistent locale is set, you will see the locale name
as the first virtual folder in page render and component event requests URLs.
In this way, a persistent locale will, in fact, persist from request to
request, or in a user's bookmarks./ppYou will see the new locale take
effect on the next request. If it is changed in a component event request
(which is typical), the new locale will be used in the subsequent page render
request./ppNote that the locale for a page is fixed (it can't change once
the page instance is created). In addition, a page may only be attached to a
request once. In other words, if code in your page changes the persistent
locale, you won't see a change to the page's locale (or localized messages)
emin that request/em./ph2