Permalink
Browse files

Merge pull request #112 from cnaize/master

extended example
  • Loading branch information...
2 parents fd6b9f3 + d881e2f commit bf15169c483c087c01dae602fc1534caa54e56dd @cnaize cnaize committed Sep 7, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 guides/source/i18n.textile
@@ -575,11 +575,14 @@ The +:count+ interpolation variable has a special role in that it both is interp
<ruby>
I18n.backend.store_translations :en, :inbox => {
- :one => '1 message',
+ :one => 'one message',
:other => '%{count} messages'
}
I18n.translate :inbox, :count => 2
# => '2 messages'
+
+I18n.translate :inbox, :count => 1
+# => 'one message'
</ruby>
The algorithm for pluralizations in +:en+ is as simple as:

0 comments on commit bf15169

Please sign in to comment.