You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@hugovk I moved on from this project and I postponed getting back to you until I forgot about it.
I saw #331 and #361 and to me they look like hacks that avoid the problem. I think Django does it right, however including the placeholder in all strings might be quite a sizeable change and you need to decide whether you'd accept that.
Thanks for letting me know about #331 and #361, glad we didn't merge them :) Let's keep this open, if someone wants to look into doing it the Django way we can evaluate it then.
Activity
alexei commentedon Oct 19, 2025
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
hugovk commentedon Oct 20, 2025
Thanks for the report, would you like to propose a fix?
alexei commentedon Sep 18, 2026
@hugovk I moved on from this project and I postponed getting back to you until I forgot about it.
I saw #331 and #361 and to me they look like hacks that avoid the problem. I think Django does it right, however including the placeholder in all strings might be quite a sizeable change and you need to decide whether you'd accept that.
hugovk commentedon Sep 18, 2026
Thanks for letting me know about #331 and #361, glad we didn't merge them :) Let's keep this open, if someone wants to look into doing it the Django way we can evaluate it then.
alexei commentedon Sep 18, 2026
@hugovk when I said the changeset would be quite sizeable, I meant #403
alexei commentedon Sep 18, 2026
I added Romanian translations in https://github.com/alexei/humanize/tree/add-romanian-translation but it looks like I can't stack them on top of #403 in this repo. I'm gonna stop and wait for that one.
Add Romanian translation (ro, ro_RO, ro_MD)