mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 23:40:23 +00:00
docs(ngPluralize): improve wording
This commit is contained in:
parent
89c8c93b9a
commit
32e440cffc
1 changed files with 4 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
|||
* @description
|
||||
* # Overview
|
||||
* `ngPluralize` is a directive that displays messages according to en-US localization rules.
|
||||
* These rules are bundled with angular.js and the rules can be overridden
|
||||
* These rules are bundled with angular.js, but can be overridden
|
||||
* (see {@link guide/i18n Angular i18n} dev guide). You configure ngPluralize directive
|
||||
* by specifying the mappings between
|
||||
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
|
||||
|
|
@ -21,8 +21,8 @@
|
|||
*
|
||||
* While a pural category may match many numbers (for example, in en-US locale, "other" can match
|
||||
* any number that is not 1), an explicit number rule can only match one number. For example, the
|
||||
* explicit number rule for "3" matches the number 3. You will see the use of plural categories
|
||||
* and explicit number rules throughout later parts of this documentation.
|
||||
* explicit number rule for "3" matches the number 3. There are examples of plural categories
|
||||
* and explicit number rules throughout the rest of this documentation.
|
||||
*
|
||||
* # Configuring ngPluralize
|
||||
* You configure ngPluralize by providing 2 attributes: `count` and `when`.
|
||||
|
|
@ -32,8 +32,7 @@
|
|||
* Angular expression}; these are evaluated on the current scope for its bound value.
|
||||
*
|
||||
* The `when` attribute specifies the mappings between plural categories and the actual
|
||||
* string to be displayed. The value of the attribute should be a JSON object so that Angular
|
||||
* can interpret it correctly.
|
||||
* string to be displayed. The value of the attribute should be a JSON object.
|
||||
*
|
||||
* The following example shows how to configure ngPluralize:
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue