Browse files

Updated README.textile

  • Loading branch information...
1 parent 1afc215 commit c15e8f8c0f4c288a89a193e32c418500f9e70619 Paul Engel committed Jul 21, 2010
Showing with 28 additions and 1 deletion.
  1. +28 −1 README.textile
View
29 README.textile
@@ -17,7 +17,7 @@ Install the Rich-pluralization gem:
sudo gem install rich_pluralization
</pre>
-Add rich_pluralization in environment.rb as a gem dependency:
+Add rich_pluralization in @environment.rb@ as a gem dependency:
<pre>
config.gem "rich_pluralization"
@@ -31,6 +31,33 @@ Install the Rich-pluralization plugin:
./script/plugin install git://github.com/archan937/rich_pluralization.git
</pre>
+Install i18n if you haven't already:
+
+<pre>
+ sudo gem install i18n
+</pre>
+
+h3. Testing Rich-pluralization out-of-the-box
+
+Set the default locale to @:nl@ in @environment.rb@:
+
+<pre>
+ config.i18n.default_locale = :nl
+</pre>
+
+Run the Rails console:
+
+<pre>
+ ./script/console
+</pre>
+
+Start pluralizing in Dutch:
+
+<pre>
+ >> "Academicus".pl
+ => "Academici"
+</pre>
+
h2. Usage
Just call the @pl@ method on string or symbols to pluralize.

0 comments on commit c15e8f8

Please sign in to comment.