Description
Currently the XWikiMessageTool utility cannot be accessed from Groovy scripts, only from Velocity's. Can i add the code below to XWikiGroovyRenderer.prepareContext?
ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources", new Locale(language));
if (bundle == null)
bundle = ResourceBundle.getBundle("ApplicationResources");
XWikiMessageTool msg = new XWikiMessageTool(bundle);
context.put("msg", msg);