Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Babel » XWT and i18n
XWT and i18n [message #479027] Sat, 08 August 2009 06:15 Go to next message
Werner Keil is currently offline Werner Keil
Messages: 1081
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 #479892 is a reply to message #479027] 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 #579605 is a reply to message #479027] 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:Possible Problem caused by Babel
Next Topic:Re: WikiText - new nanguage
Goto Forum:
  


Current Time: Sun Apr 20 04:17:13 EDT 2014

Powered by FUDForum. Page generated in 0.11863 seconds