I don't think treeview.vm was changed recently, so you should have had this
issue before no ?
2013/1/24 Paul Libbrecht <paul(a)hoplahup.net>
Hello fellow XWikiers,
Yesterday we released Curriki 1.13.1 and realized that one of our cluster
nodes was actually speaking French for the subjects tree. This really felt
like... a french-speaking-guy saved the wrong thing, I was under high
suspicion! ;-).
I dug the code for quite a while then found it: the subjects display
simply uses doc.display(field). So it all happens internally. After a
while, I realized that caching was quite intensive, which explains why it's
working well. However, I also saw that this caching was actually implying
that these tree-lists are monolingual, because treeview.vm uses item.value
to express the labels.
Is there a reason to not use i18n objects, in javascript or in velocity,
there?
thanks in advance
Paul
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Founder and CEO
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost