django - how to make translation work?

前端 未结 9 1098
不知归路
不知归路 2020-12-13 04:00

I\'m trying to render a template in a different language using i18n. I did everything I could read about, from setting the language code, creating and compiling translation

9条回答
  •  庸人自扰
    2020-12-13 04:50

    I had very the same issue, i tried to switch my language and django said no go. No error, no warning, but django switched language to pl-pl (in my case). However removing all folders from locale and executing command: django-admin.py makemessages -l pl_PL (underscore instead of dash and capital letter for second PL, worked this issue out).

    I hope it helps some guys out there.

提交回复
热议问题