humanize
humanize copied to clipboard
Impossible to translate to Romanian
I was checking out the package to use it in a project. I'd need to translate it to Romanian, however a summary look reveals that would be a challenging task. For example the ordinal seems to make a map of suffixes for numbers 0-9, but that doesn't work in Romanian:
- 0th
- to my knowledge doesn't exist, but maaaybe among friends you could say "al 0-lea" (m); maybe; no (f) though;
- 1st
- "prima" (f); "primul" (m);
- 2nd
- "a 2-a" (f); "al 2-lea" (m);
- 3rd
- "a 3-a" (f); "al 3-lea" (m);
- 23rd
- "a 23-a" (f); "al 23-lea" (m).
So to give it a chance to translate at least the possible strings, they would need to interpolate the value.
For the record, see how Django does it:
https://github.com/django/django/blob/d506e4a52847ed4fb80754175d76b6b83ff90929/django/contrib/humanize/locale/ro/LC_MESSAGES/django.po#L29-L82
Thanks for the report, would you like to propose a fix?