Hi Evelina, On Jun 28, 2007, at 3:18 PM, [email protected] wrote:
Hello all,
What is $msg variable, and where can I read more about it? (is not in xwikivars.vm...) And how does $msg.get() works?
Please, I really need some help. I want to include support for languages in my datepicker and Sergiu told me to put the strings in ApplicationRessources.properties and now I'm trying to get them in a js file with $msg.get ("core.datepicker.somethingdefinedbymehere"), but it seems that the server does not know how $msg is, but it knows who $xwiki, $context and all other are....
The ApplicationResources files are used for templates and skin properties. However if you're developing an XWiki application (XAR) then you should use a page in your application to contain the translations as described on http://www.xwiki.org/xwiki/bin/view/ DevGuide/InternationalizingApplications Note that I don't know what you're developing... BTW this means that we need to create a translation page for the default wiki and put all translations in there and NOT in the ApplicationResources files.
So please, please, I would like to know more about this variable or how to get the strings from ApplicatonRessources.
See http://www.xwiki.org/xwiki/bin/view/DevGuide/ InternationalizingApplications -Vincent
I'd really appreciate some help because I'm stuck on this....
Thank you very much,
Evelina