[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.babel] Re: XWT and i18n

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/examples

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@xxxxxxx> wrote in message 
news:h5jj81$ibl$1@xxxxxxxxxxxxxxxxxxxx
> 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