XWT and i18n [message #479027] |
Sat, 08 August 2009 06:15  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.28307 seconds