]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add link to rules spec in PluralRule doc
authorbenselme <benselme@gmail.com>
Thu, 8 Jan 2015 19:49:14 +0000 (14:49 -0500)
committerbenselme <benselme@gmail.com>
Thu, 8 Jan 2015 19:49:14 +0000 (14:49 -0500)
babel/plural.py

index 144a0dc020123f320f5a5b544b94cd813d8b0073..9114757507014ee18bf8fb93e3c2b02ce09b9390 100644 (file)
@@ -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')