Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

extended example

  • Loading branch information...
commit d881e2f8e041e75d37e27505d28314af64714fb8 1 parent fd6b9f3
@cnaize cnaize authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 guides/source/i18n.textile
View
5 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:
Please sign in to comment.
Something went wrong with that request. Please try again.