On 01/24/2013 04:04 PM, Paul Libbrecht wrote:
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
That's a bug, it should be reported.
--
Sergiu Dumitriu
http://purl.org/net/sergiu