Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT and i18n
XWT and i18n [message #479026] Sat, 08 August 2009 06:15 Go to next message
Werner Keil is currently offline Werner Keil
Messages: 1083
Registered: July 2009
Senior Member
Hi,

I noticed, XWT from the same vendor who already works with Eclipse and
Silverlight seems to become a commonly used technology for E4.
All demos and samples so far put UI messages mostly into the XML directly.

So how does i18n work there?
If Eclipse shall use that at least from E4 as a standard, then I guess all
the translation efforts, primarily undertaken by the Babel Project shall
also apply to UI elements created with XWT just as they do with normal SWT
components?

Werner
Re: XWT and i18n [message #479891 is a reply to message #479026] Wed, 12 August 2009 18:44 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
Thie simple i18n is supported. But the variables aren't yet supoorted. There
is an example in the tests plugin
org.eclipse.e4.xwt.tests/src/org.eclipse.e4.xwt.tests.i18n

It is already used in e4 contact demo. Uou can find the source
dev.eclipse.org:/cvsroot/eclipse/e4/org.eclipse.e4.xwt/examp les

In fact, it uses XAML's xStatic extension keyword to get the value of static
field defined in resource bundle class

<Button Text="{x:Static java:Messages.title}" />

Best regards
Yves YANG
-----
Soyatec http://www.soyatec.com

"Werner Keil" <werner.keil@gmx.net> wrote in message
news:h5jj81$ibl$1@build.eclipse.org...
> Hi,
>
> I noticed, XWT from the same vendor who already works with Eclipse and
> Silverlight seems to become a commonly used technology for E4.
> All demos and samples so far put UI messages mostly into the XML directly.
>
> So how does i18n work there?
> If Eclipse shall use that at least from E4 as a standard, then I guess all
> the translation efforts, primarily undertaken by the Babel Project shall
> also apply to UI elements created with XWT just as they do with normal SWT
> components?
>
> Werner
Re: XWT and i18n [message #562312 is a reply to message #479026] Wed, 12 August 2009 18:44 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
Thie simple i18n is supported. But the variables aren't yet supoorted. There
is an example in the tests plugin
org.eclipse.e4.xwt.tests/src/org.eclipse.e4.xwt.tests.i18n

It is already used in e4 contact demo. Uou can find the source
dev.eclipse.org:/cvsroot/eclipse/e4/org.eclipse.e4.xwt/examp les

In fact, it uses XAML's xStatic extension keyword to get the value of static
field defined in resource bundle class

<Button Text="{x:Static java:Messages.title}" />

Best regards
Yves YANG
-----
Soyatec http://www.soyatec.com

"Werner Keil" <werner.keil@gmx.net> wrote in message
news:h5jj81$ibl$1@build.eclipse.org...
> Hi,
>
> I noticed, XWT from the same vendor who already works with Eclipse and
> Silverlight seems to become a commonly used technology for E4.
> All demos and samples so far put UI messages mostly into the XML directly.
>
> So how does i18n work there?
> If Eclipse shall use that at least from E4 as a standard, then I guess all
> the translation efforts, primarily undertaken by the Babel Project shall
> also apply to UI elements created with XWT just as they do with normal SWT
> components?
>
> Werner
Previous Topic:Create your first E4 application - Tutorial
Next Topic:Why does XWT use SWT?
Goto Forum:
  


Current Time: Wed Aug 20 16:28:31 EDT 2014

Powered by FUDForum. Page generated in 0.01535 seconds