Hi,
Please reply to individual mails, not to digests, since they make having a
conversation difficult.
Regarding your question, please have a look at the existing
guides/documentation on internationalizing XWiki applications [1] and, more
generally, by using the Localization Module [2].
In your particular case, in a JSX, you need to enable content parsing on
the JSX object ("Parse content: Yes") and then use a velocity call to the
Localization Script service [3].
Example:
alert("$services.localization.render('my.hello.world.key')");
...where 'my.hello.world.key' is a translation key registered in a
translation document or whatever you choose, according to the documentation
[4]
Thanks,
Eduard
----------
[1]
How I Can Internationalizing "Hello
World"?
------------------ Original ------------------
From: "devs-request@xwiki.org";<devs-request@xwiki.org>;
Date: Sun, Mar 8, 2015 08:00 PM
To: "devs"<devs(a)xwiki.org>vs@xwiki.org>;
Subject: devs Digest, Vol 93, Issue 12
Send devs mailing list submissions to
devs(a)xwiki.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xwiki.org/mailman/listinfo/devs
or, via email, send a message with subject or body 'help' to
devs-request(a)xwiki.org
You can reach the person managing the list at
devs-owner(a)xwiki.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of devs digest..."
Today's Topics:
1. Re: How Internationalizing UIExtension Module? (Eduard Moraru)
----------------------------------------------------------------------
Message: 1
Date: Sun, 8 Mar 2015 00:40:29 +0200
From: Eduard Moraru <enygma2002(a)gmail.com>
To: XWiki Developers <devs(a)xwiki.org>
Subject: Re: [xwiki-devs] How Internationalizing UIExtension Module?
Message-ID:
<
CADGDyYJAy5tz5EqUpeVmLT4ktJvKwN9iFDxs5t_xo+CxtMvEoQ(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
You would need to try to be more specific in your question. What is it that
you want to achieve, what did you try and did not work, etc.
Thanks,
Eduard
On Sat, Mar 7, 2015 at 11:02 AM, /xin?? <445686910(a)qq.com> wrote:
Hi?
I want to know How Internationalizing UIExtension Module??
Thanks?
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
Subject: Digest Footer
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
End of devs Digest, Vol 93, Issue 12
************************************
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs