From 3920301c2b9843e2fa91a8e726ec913d5f8e4416 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 30 Oct 2013 12:14:19 +0400 Subject: [PATCH] Added note about "Inconsistent types declared for an argument: U_ARGUMENT_TYPE_MISMATCH" ICU error to i18n docs --- docs/guide/i18n.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/guide/i18n.md b/docs/guide/i18n.md index de1c80d..33f7758 100644 --- a/docs/guide/i18n.md +++ b/docs/guide/i18n.md @@ -232,6 +232,13 @@ for Russian: In the above it worth mentioning that `=1` matches exactly `n = 1` while `one` matches `21` or `101`. +Note that if you are using placeholder twice and one time it's used as plural another one should be used as number else +you'll get "Inconsistent types declared for an argument: U_ARGUMENT_TYPE_MISMATCH" error: + +``` +Total {count, number} {count, plural, one{item} other{items}}. +``` + To learn which inflection forms you should specify for your language you can referer to [rules reference at unicode.org](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html).