title: An example for plural forms in a Yaml translation file for Rails i18n API
body: <p>Can someone please provide an example on how to use plural forms in a Yaml translation file for Rails i18n API. Basically this is about moving from a gettext based app to Rails.</p>
  
  <p>Plural forms for a18n in Rails is documented here  <a href="http://guides.rubyonrails.org/i18n.html#pluralization" rel="noreferrer">http://guides.rubyonrails.org/i18n.html#pluralization</a> but with limited detail.</p>
  
  <p>Say for example I have this sample from a gettext .po file that uses plural forms:</p>
  
  <pre><code>msgid "found %d fatal error"
  msgid_plural "found %d fatal errors"
  msgstr[0] "s'ha trobat %d error fatal"
  msgstr[1] "s'han trobat %d errors fatals"
  </code></pre>
  
  <p>How would that look in a .yml file for the Rails i18n API. I understand that Rails i18n uses unique id keys rather than the messages themselves for translation keys - so lets say the key for the above plural messages is found_x_fatal_error.</p>
  
  <p>The other thing is the plural forms selection formula, where does it go in the .yml file and how does it look - say for example we have this selection formula from a gettext .po file header:</p>
  
  <pre><code>Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;
  </code></pre>
  
  <p>How would it look in the YAML file.</p>