I have a GWT application with internationalization support (in client side).
I have a Messages class:
/**
* Interface to represent the messages contained in resource bundle:
*/
public interface Messages extends com.google.gwt.i18n.client.Messages {
/**
* Translated "No".
*
* @return translated "No"
*/
@DefaultMessage("No")
@Key("NO")
String NO();
}
I have two properties Messages.properties and Messages_fr.properties.
I also have this configuration :
<inherits name="com.google.gwt.i18n.I18N" />
<extend-property name="locale" values="fr" />
<set-configuration-property name="locale.useragent" value="Y"/>
And in client side i do this:
private final Messages messages = GWT.create(Messages.class);
//...
messages.NO();
Client side with internationalization is working but if I add theses follwoing lines in server side:
private final Messages messages = GWT.create(Messages.class);
I have an error, because GWT.create it's only for client side.
Do you know how can I display internationalization messages in the server side?
Thanks!