arrow
arrow copied to clipboard
i18n issue with noun suffixes for .humanize(only_distance=True)
The current i18n implementation doesn't allow enough granularity for languages with noun suffixes like Hungarian. In Hungarian, "17 years" would be translated as "17 év". However, "17 years ago" is translated as "17 évvel ezelőtt", and calling .humanize()
with only_distance=True
returns a construct that makes no sense by itself:
>>> arrow.get('2000-01-01').humanize(locale='hu_HU', only_distance=True)
'17 évvel'
I get this when building from master.
>>> arrow.get('2000-01-01').humanize(locale='hu_HU', only_distance=True)
'18 évvel'
Looks like the problem still exists, @nyuszika7h interested in fixing this?
@systemcatch is this similar to https://github.com/crsmithdev/arrow/pull/576? If so, we may need to add a few more keys to the locale dictionary to allow translations of only_distance cases.