Plural localization of decimal numbers
Posted: Wed Nov 08, 2023 3:14 pm
Copied from https://crowdin.com/project/factorio/discussions/228
Hello! I am implementing plural localization support for decimal numbers. I want to add another option to `plural_for_parameter` - `decimal`. If specified, all plurals of decimal numbers would translate to `decimal`; otherwise, to `rest`. This covers translations for languages I know (which is likely not good enough).
Linked bug report: 109521
Proposed usage: `__1__ __plural_for_parameter_1_{1=ton,rest=tons,decimal=tons}` (`decimal` is optional)
Examples:
Does your language need any special rules? How would you translate the examples? Please let me know if you have any questions.
Hello! I am implementing plural localization support for decimal numbers. I want to add another option to `plural_for_parameter` - `decimal`. If specified, all plurals of decimal numbers would translate to `decimal`; otherwise, to `rest`. This covers translations for languages I know (which is likely not good enough).
Linked bug report: 109521
Proposed usage: `__1__ __plural_for_parameter_1_{1=ton,rest=tons,decimal=tons}` (`decimal` is optional)
Examples:
Code: Select all
0.01 tons
0.1 tons
0.5 tons
1.5 tons
2.3 tons
3.18 tons
12.5 tons
17.4 tons
20.5 tons