Hi, Evelina.
evelyne24(a)gmail.com wrote:
What is $msg variable, and where can I read more about
it? (is not in xwikivars.vm...) And how does $msg.get() works?
As I know, $msg == java context.get("msg") == XWikiMessageTool class
You can read about it in javadocs in
xwiki-platform-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java
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....
As I know, external javascript files(<script src=..>) do not parsed by
xwiki velocity/groovy parsers (as .vm files), so xwiki variables won't
work here.
Perhaps you need to create vm file with your javascripts and include it
to somewhere by #template(yourfile.vm)
Sorry I don't know else more about it :)
--
Artem Melentyev