1
0
Fork 0
godot/tests/core/string
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
..
test_fuzzy_search.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
test_node_path.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
test_string.h Use Grisu2 algorithm in String::num_scientific to fix serializing 2025-05-22 09:13:16 -07:00
test_translation.h Add default plural rules 2025-09-26 10:51:57 +08:00
test_translation_server.h Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00