[xwiki-devs] internationalization of DBTreeList
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
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
I don't think treeview.vm was changed recently, so you should have had this issue before no ? 2013/1/24 Paul Libbrecht <[email protected]>
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 [email protected] 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
thanks, it seems indeed to be comparable. However, I wonder if I have a way to do without an internationalization bundle. Do I? Loading documents? Paul Le 24 janv. 2013 à 22:40, Ludovic Dubost a écrit :
I don't think treeview.vm was changed recently, so you should have had this issue before no ?
2013/1/24 Paul Libbrecht <[email protected]>
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 [email protected] 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 _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
Ludovic Dubost -
Paul Libbrecht -
Sergiu Dumitriu