From b892e1941848db601fb699692a34736774bf5b63 Mon Sep 17 00:00:00 2001 From: benselme Date: Thu, 8 Jan 2015 14:49:14 -0500 Subject: [PATCH] Add link to rules spec in PluralRule doc --- babel/plural.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/babel/plural.py b/babel/plural.py index 144a0dc0..91147575 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -18,7 +18,7 @@ _fallback_tag = 'other' class PluralRule(object): """Represents a set of language pluralization rules. The constructor - accepts a list of (tag, expr) tuples or a dict of CLDR rules. The + accepts a list of (tag, expr) tuples or a dict of `CLDR rules`_. The resulting object is callable and accepts one parameter with a positive or negative number (both integer and float) for the number that indicates the plural form for a string and returns the tag for the format: @@ -33,6 +33,8 @@ class PluralRule(object): other where other is an implicit default. Rules should be mutually exclusive; for a given numeric value, only one rule should apply (i.e. the condition should only be true for one of the plural rule elements. + + .. _`CLDR rules`: http://www.unicode.org/reports/tr35/tr35-33/tr35-numbers.html#Language_Plural_Rules """ __slots__ = ('abstract', '_func') -- 2.47.2