aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2017-01-18 09:43:42 +0100
committerGitHub <noreply@github.com>2017-01-18 09:43:42 +0100
commitd1631f146b058f58a01115449d4f9cbc34578000 (patch)
treeb3d353f9dd3189f03326eedc097f26ff07bb0ffa
parent5349d4ee080ff6da892081eae871a195847353c1 (diff)
parentbb8e892ea07d1677cd93ac2f17aeb9c299926a7e (diff)
downloadrails-d1631f146b058f58a01115449d4f9cbc34578000.tar.gz
rails-d1631f146b058f58a01115449d4f9cbc34578000.tar.bz2
rails-d1631f146b058f58a01115449d4f9cbc34578000.zip
Merge pull request #27723 from HISAS/update_i18n_pluralization_links
update links of pluralization in i18n guide [ci skip]
-rw-r--r--guides/source/i18n.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index df5869f9ca..4db6e3e195 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -672,7 +672,7 @@ end
### Pluralization
-In English there are only one singular and one plural form for a given string, e.g. "1 message" and "2 messages". Other languages ([Arabic](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ar), [Japanese](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ja), [Russian](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#ru) and many more) have different grammars that have additional or fewer [plural forms](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html). Thus, the I18n API provides a flexible pluralization feature.
+In English there are only one singular and one plural form for a given string, e.g. "1 message" and "2 messages". Other languages ([Arabic](http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ar), [Japanese](http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ja), [Russian](http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html#ru) and many more) have different grammars that have additional or fewer [plural forms](http://cldr.unicode.org/index/cldr-spec/plural-rules). Thus, the I18n API provides a flexible pluralization feature.
The `:count` interpolation variable has a special role in that it both is interpolated to the translation and used to pick a pluralization from the translations according to the pluralization rules defined by CLDR: