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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"




And here is the possible content for Terms_de.tml:


Terms and Conditions in German


Same terms and conditions but in German.




Chapter 7
[ 189 ]
Finally, we need to add to one of the existing pages a link that will allow us to see the
Terms page. We could place this link somewhere at the bottom of the Start page:


Terms and Conditions


If you now run the application and click on the new link, if the current locale
is English you should see the text that you've put into the Terms.tml template.
However, if the current locale is German, you will see the text from the Terms_
de.tml template. This is because, while loading the template for a page, Tapestry
always tries to add the template that fits the current locale (and has an appropriate
file name suffix). If there is no such localized template, it uses the default one,
without any suffix.
Other Examples of Internationalization
If you remember, there is a drop-down list with country names on the Registration
page. How could we display the names of the countries in German? Nothing can be
easier.


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