First time here? Check out the FAQ!
I have a <grid>
which contains multiple ZK
objects like a<<static_text>>
, 2 to 3 <textbox>
objects, a <combobox>
object, etc.. and in the UI, when I populate the values, it looks like I'm filling up the blanks. They are in order in such a way that it makes perfect sense only in English, but the order of the contents of the <grid>
should vary based on the locale I select.
I know this can be achieved by manually writing code for another language and flexing based on the locale check done.
My question is - Is it possible to achieve this using a generic approach, instead of the approach that I've mentioned above? (Eg: like how we use properties file to define the message to be displayed with dynamic string values)
Hello AlwaysALearner,
As chillworld also suggested you could use templates as shown below:
http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/MVC/View/Template/Grid%20Template
I also found an interesting example using listboxes:
http://emrpms.blogspot.gr/2014/05/zk-mvvm-list-box-with-dynamic-template.html
Best Regards,
Darksu
Asked: 2015-05-08 11:12:26 +0800
Seen: 13 times
Last updated: May 10 '15
Missing default value for internationalization in zul [closed]
Locale problem in DoubleSpinner on IOS (Ipad, Iphone)
Table grand total internationalization
How to get a label value for all the different international label file?
Internationalization properties for custom component
you mean templates for each locale?
chillworld ( 2015-05-08 20:18:57 +0800 )edit