[Answered ]-Django naturaltime Localization error

1👍

✅

Unfortunately translations for day = hari, week = minggu, month = bulan, year = tahun etc. are missing in the .../site-packages/django/contrib/humanize/locale/id/LC_MESSAGES/django.[mp]o gettext files.

You could add translations yourself.

1👍

Missing translations on full-path-to../django/conf/locale/id/LC_MESSAGES/django.po.

Search weeks, month and any other string you want to translate on that file, then translate at the line msgstr. Example,

#: utils/timesince.py:27
#, python-format
msgid "%d day"
msgid_plural "%d days"
msgstr[0] "%d hari"

After that, convert to django.mo using any tools (you can use online tools like http://po2mo.net). Don’t forget to restart django apps to see the changes. Good luck.

Leave a comment