title: GWT Internationalization (i18n) in server side
body: <p>I have a GWT application with internationalization support (in client side).</p>
  
  <p>I have a Messages class:</p>
  
  <pre><code>/**
   * 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();
  }
  </code></pre>
  
  <p>I have two properties Messages.properties and Messages_fr.properties.</p>
  
  <p>I also have this configuration :</p>
  
  <pre><code>&lt;inherits name="com.google.gwt.i18n.I18N" /&gt;
  &lt;extend-property name="locale" values="fr" /&gt;
  &lt;set-configuration-property name="locale.useragent" value="Y"/&gt;
  </code></pre>
  
  <p>And in client side i do this:</p>
  
  <pre><code>private final Messages messages = GWT.create(Messages.class);
  //...
  messages.NO(); 
  </code></pre>
  
  <p>Client side with internationalization is working but if I add theses follwoing lines in server side:</p>
  
  <pre><code>private final Messages messages = GWT.create(Messages.class);
  </code></pre>
  
  <p>I have an error, because GWT.create it's only for client side.</p>
  
  <p>Do you know how can I display internationalization messages in the server side?</p>
  
  <p>Thanks!</p>