Haoyu Qiu
e882e42e1b
Add default plural rules
...
This makes the PO loader correctly handle the situation where the optional
`Plural-Forms` header field does not exist.
The `Translation` class and its subclasses always have access to valid plural
rules via `_get_plural_rules()`. Plural rules are prioritized:
1. `Translation.plural_rules_override`
2. `TranslationServer.get_plural_rules(locale)`
3. The English plural rules: `nplurals=2; plurals=(n != 1)`
Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com >
2025-09-26 10:51:57 +08:00
..
2025-09-22 11:23:15 -03:00
2025-09-18 12:42:30 -05:00
2025-08-19 20:48:20 +02:00
2025-08-19 20:48:20 +02:00
2025-08-19 20:48:20 +02:00
2025-09-22 08:50:11 -05:00
2025-09-11 18:45:02 +03:00
2025-09-11 14:59:07 +02:00
2025-09-19 10:45:16 +02:00
2025-09-18 03:27:13 -04:00
2025-09-18 03:27:13 -04:00
2025-08-18 23:44:01 +02:00
2025-09-17 11:43:20 +12:00
2025-09-17 11:43:20 +12:00
2025-09-17 11:43:20 +12:00
2025-09-17 11:43:20 +12:00
2025-09-15 18:11:53 -04:00
2025-09-15 18:11:53 -04:00
2025-09-19 13:43:29 -03:00
2025-09-18 12:42:30 -05:00
2025-08-18 09:23:31 +03:00
2025-08-21 11:39:16 +03:00
2025-08-16 04:16:43 +02:00
2025-09-19 13:07:18 -05:00
2025-09-22 11:23:15 -03:00
2025-09-22 11:23:15 -03:00
2025-09-11 14:59:07 +02:00
2025-08-15 23:53:45 +08:00
2025-09-15 18:11:53 -04:00
2025-09-23 12:08:46 -05:00
2025-09-01 11:14:12 -05:00
2025-09-10 16:50:44 +02:00
2025-09-22 08:50:11 -05:00
2025-09-17 14:21:53 +02:00
2025-08-14 14:05:09 -04:00
2025-08-14 14:05:09 -04:00
2025-09-10 16:50:44 +02:00
2025-08-14 18:58:36 +02:00
2025-08-14 18:58:36 +02:00
2025-08-14 18:58:36 +02:00
2025-08-14 18:58:36 +02:00
2025-09-21 11:38:28 +02:00
2025-09-25 20:18:18 +02:00
2025-09-15 18:11:53 -04:00
2025-09-23 12:08:51 -05:00
2025-09-15 18:11:53 -04:00
2025-08-21 11:39:16 +03:00
2025-09-22 08:50:11 -05:00
2025-08-22 19:41:48 +02:00
2025-09-22 08:50:01 -05:00
2025-09-16 12:37:07 -07:00
2025-09-21 07:32:30 +03:00
2025-09-26 10:51:57 +08:00
2025-09-26 10:51:57 +08:00
2025-09-12 01:04:14 +02:00
2025-09-22 08:50:11 -05:00
2025-09-15 18:11:53 -04:00
2025-09-20 21:11:12 +02:00
2025-09-15 18:11:53 -04:00
2025-09-15 18:11:53 -04:00
2025-09-15 18:11:53 -04:00
2025-09-15 18:11:53 -04:00
2025-08-21 00:14:58 +03:00