Permalink
Browse files

Merge branch 'master' of https://github.com/twitter/twitter-cldr-rb i…

…nto nfd-normalizer
  • Loading branch information...
2 parents d559bed + ed0c061 commit e7b66d26cd074ddb0f797fda143cb4763deff85c @timothyandrew committed Apr 17, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -49,8 +49,8 @@ Fixnum, Bignum, and Float objects are supported. Here are some examples:
# currencies, default USD
1337.localize(:es).to_currency.to_s # $1.337,00
-1337.localize(:es).to_currency.to_s(:currency => "EUR") # €1.337,00
-1337.localize(:es).to_currency.to_s(:currency => "Peru") # S/.1.337,00
+1337.localize(:es).to_currency.to_s(:currency => "EUR") # 1.337,00
+1337.localize(:es).to_currency.to_s(:currency => "Peru") # S/. 1.337,00
# percentages
1337.localize(:es).to_percent.to_s # 1.337%
@@ -84,7 +84,7 @@ TwitterCldr::Shared::Currencies.currency_codes # ["LTL", "PHP" ... ]
TwitterCldr::Shared::Currencies.for_country("Canada") # { :currency => "Dollar", :symbol => "$", :code => "CAD" }
# data for a specific currency code
-TwitterCldr::Shared::Currencies.for_code("CAD") # { :currency => "Dollar", :symbol => "$", :code => "CAD" }
+TwitterCldr::Shared::Currencies.for_code("CAD") # { :currency => "Dollar", :symbol => "$", :country => "Canada"}
```
### Dates and Times
@@ -150,7 +150,7 @@ You can use the localize convenience method on language code symbols to get thei
```ruby
:es.localize(:es).as_language_code # "español"
-:ru.localize(:es).as_langauge_code # "ruso"
+:ru.localize(:es).as_language_code # "ruso"
```
Behind the scenes, these convenience methods are creating instances of LocalizedSymbol. You can do the same thing if you're feeling adventurous:

0 comments on commit e7b66d2

Please sign in to comment.