title: GWT i18n - Plural Forms doesn't work at all?
body: <p>I'm using GWT internationalization Messages. The <a href="http://code.google.com/webtoolkit/doc/latest/DevGuideI18nPluralForms.html" rel="nofollow noreferrer">documentation for Plural Forms</a> says this should work:</p>
  
  <pre><code>@DefaultMessage("{0} {1,number} hours {2}")
  @PluralText({"one", "an hour"})
  String hours(String prefix, @PluralCount int count, String suffix);
  </code></pre>
  
  <p>Well, it doesn't. Whatever value of <code>count</code> it still delivers <code>DefaultMessage</code> (e.g. "1 hours ago"). Same if I use a .properties file:</p>
  
  <pre><code>hours[one]=an hour
  hours[few]=some hours
  hours={0} {1,number} hours {2}
  </code></pre>
  
  <p>Is there a bug in the docs or in GWT (I'm using GWT 2.0.3) or in me? If any of the two former, anyone knows of a workaround?</p>
  
  <p><strong>EDIT</strong>: More clues to this mystery. I can get plural handling to work if I don't rely on default locale handling. That is, I need:</p>
  
  <ul>
  <li><p>In my module's gwt.xml file:</p>
  
  <p><code>&lt;extend-property name="locale" values="en"/&gt;</code></p></li>
  <li><p>In my Messages extentsion:</p>
  
  <p><code>@DefaultLocale("en")</code></p>
  
  <p><code>public interface MyMessages extends Messages { ...</code></p></li>
  <li><p>Explicitly load the "en" locale by appending to the URL </p>
  
  <p><code>&amp;locale=en</code></p></li>
  </ul>
  
  <p>See <a href="http://groups.google.com/group/google-web-toolkit/browse_thread/thread/80ae300213cc6adb" rel="nofollow noreferrer">http://groups.google.com/group/google-web-toolkit/browse_thread/thread/80ae300213cc6adb</a> where I have cross posted this question.</p>
  
  <p><strong>EDIT 2:</strong> The reason I entered this GWT plurals land is that I'm creating a "GWT HUman Readable Relative Timestamps" module. Open sourced at GitHub: <a href="http://github.com/PEZ/GWT-Relative-Time" rel="nofollow noreferrer">http://github.com/PEZ/GWT-Relative-Time</a> Please check it out. It'll very soon have correct singular forms and support for some languages. =)</p>