Skip to content

Commit 38ea048

Browse files
committed
;)
1 parent 063baf9 commit 38ea048

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The main properties of the `Gettext\Languages\Language` instances are:
9999
- `id`: can be (in this order) one of `zero`, `one`, `two`, `few`, `many` or `other`. The `other` case is always present.
100100
- `examples`: a representation of some values for which this plural case is valid (examples are simple numbers like `1` or complex ranges like `0, 2~16, 100, 1000, 10000, 100000, 1000000, …`)
101101

102+
102103
## Is this data correct?
103104

104105
Yes - as far as you trust the [Unicode CLDR](http://cldr.unicode.org) project.
@@ -121,6 +122,7 @@ The [CLDR specifications](https://unicode.org/reports/tr35/tr35-numbers.html#Lan
121122
- `t`: visible fractional digits in n, without trailing zeros (eg: `9.870` => `87`)
122123

123124
#### gettext
125+
124126
The [gettext specifications](https://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Plural-forms.html) define the following variables to be used in the gettext plural formulas:
125127
- `n`: unsigned long int
126128

@@ -136,6 +138,7 @@ The [gettext specifications](https://www.gnu.org/savannah-checkouts/gnu/gettext/
136138
| `t` | *empty* |
137139

138140

141+
139142
## Parenthesis in ternary operators
140143

141144
The generated gettext formulas contain some extra parenthesis, in order to avoid problems in some programming language.
@@ -150,3 +153,8 @@ So, in order to avoid problems, instead of a simple
150153
`a ? 0 : b ? 1 : 2`
151154
the resulting formulas will be in this format:
152155
`a ? 0 : (b ? 1 : 2)`
156+
157+
158+
## Support this project
159+
160+
You can offer me a [monthy coffee](https://github.com/sponsors/mlocati) or a [one-time coffee](https://paypal.me/mlocati) :wink:

0 commit comments

Comments
 (0)