Hi,

GWT has a built-in support for internationalization.
If you only want to write translated messages, use
com.google.gwt.i18n.client.Constants (see
http://code.google.com/webtoolkit/doc/latest/DevGuideI18nConstants.html) or
com.google.gwt.i18n.client.Messages if you need to substitute parameters
into the translated messages (see
http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html ).
This two classes are quite similar to Properties Files.

For more informations, see
http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html

Alexandre

2011/9/5 Markus Unger <markus.unger1...@googlemail.com>

> Hello!
>
> I am new at GWT and I try to develop an simple login form. So the
> basic is working (RPC, Submit Button and so on). Now i will add a
> properties File to load different languages. In struts there is a
> simple Properties File like this:
>
> title = my title
> version = 0.1
>
> How can I use a Propertie File?
>
> I tried it with da DataResource and a ClientBundle
>
>
> public interface MessageBundle extends DataResource {
>
>        String title();
>
> }
>
> public interface ResourceBundle extends ClientBundle {
>
>        public static final ResourceBundle INSTANCE =
> GWT.create(ResourceBundle.class);
>
>        @Source("messages/Messages.properties")
>        MessageBundle messageBundle();
>
> }
>
> I get the following error: "Type mismatch: cannot convert from new
> DataResource(){} to MessageBundle"
>
> Does anybody use Propertie File in GWT?
>
> Thanks for help!
>
> Regards,
>
> Markus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to