README.md in rails-i18n-4.0.0.pre vs README.md in rails-i18n-4.0.0.pre2
- old
+ new
@@ -7,15 +7,17 @@
## Gem installation
Add to your Gemfile:
- gem 'rails-i18n'
+ gem 'rails-i18n', '~> 4.0.0.pre' # For 4.0.x
+ gem 'rails-i18n', '~> 3.0.0.pre' # For 3.x
or run this command:
- gem install rails-i18n
+ gem install rails-i18n -v '~> 4.0.0.pre' # For 4.0.x
+ gem install rails-i18n -v '~> 3.0.0.pre' # For 3.x
Note that your rails version must be 3.0 or higher if you want to install `rails-i18n` as a gem. For rails 2.x, install it manually as described below.
## Configuration
@@ -44,26 +46,27 @@
## Available Locales
Available locales are:
-> af, ar, az, bg, bn, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en, en-AU, en-CA, en-GB, en-IN, en-NZ, eo,
+> af, ar, az, bg, bn, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en, en-AU, en-CA, en-GB, en-IN, en-NZ, en-IE, eo,
> es, es-419, es-AR, es-CL, es-CO, es-MX, es-PE, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, gl,
> he, hi, hi-IN, hr, hu, id, is, it, it-CH, ja, kn, ko, lo, lt, lv, mk, mn, nb,
> ne, nl, nn, or, pl, pt, pt-BR, rm, ro, ru, sk, sl, sr, sv, sw, th,
> tl, tr, uk, uz, vi, wo, zh-CN, zh-HK, zh-TW
Following locales are complete:
-> af, ar, az, bg, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en, en-AU, en-CA, en-GB, en-IN, en-NZ, eo,
-> es, es-419, es-AR, es-CL, es-CO, es-MX, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, he, hi, hi-IN,
-> hr, hu, is, it, it-CH, ja, kn, ko, lv, mk, mn, nb, ne, nl, or, pl, pt, pt-BR, ro, ru, sk, sr, sv, sw,
-> th, tl, tr, uk, uz, vi, wo, zh-CN, zh-HK, zh-TW
+> bs, da, en, hr, is, ja, sr
Following locales have some missing translations or pluralizations:
-> bn, es-PE, gl, id, lo, lt, nn, rm, sl
+> af, ar, az, bg, bn, ca, cs, cy, da, de, de-AT, de-CH, el, en-AU, en-CA, en-GB, en-IN, en-NZ, en-IE, eo,
+> es, es-419, es-AR, es-CL, es-CO, es-MX, es-PE, es-VE, et, eu, fa, fi, fr, fr-CA, fr-CH, gl,
+> he, hi, hi-IN, hu, id, is, it, it-CH, kn, ko, lo, lt, lv, mk, mn, nb,
+> ne, nl, nn, or, pl, pt, pt-BR, rm, ro, ru, sk, sl, sv, sw, th,
+> tl, tr, uk, uz, vi, wo, zh-CN, zh-HK, zh-TW
We always welcome your contributions!
## How to contribute
@@ -81,11 +84,11 @@
* Get a github account and Git program if you haven't. See [Help.Github](http://help.github.com/) for instructions.
* Fork `svenfuchs/rails-i18n` repository and clone it into your PC.
### Create or edit your locale file
-* Have a look in `rails/locale/en-US.yml`, which can be used as the base of your translation.
+* Have a look in `rails/locale/en.yml`, which should be used as the base of your translation.
Note that we use `&errors_messages` and `<<: *errors_messages` to anchor and merge a part of translation data.
* Create or edit your locale file.
Please pay attention to save your files as UTF-8.
### Test your locale file
@@ -96,12 +99,13 @@
Make sure you have included all translations with:
rake i18n-spec:completeness rails/locale/en.yml rails/locale/YOUR_NEW_LOCALE.yml
-You can list all complete locales:
+You can list all complete and incomplete locales:
thor locales:complete
+ thor locales:incomplete
Also, you can list all available locales:
thor locales:list