django - how to make translation work?

前端 未结 9 1103
不知归路
不知归路 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:41

    I had the same issue. I explained it with details in this link under another similar question.

    Briefly, my problem has been solved by reloading the server with this code:

    sudo /etc/init.d/uwsgi reload
    

    Now, everytime I change the phrases and after compiling language files, I reload the server too to see the changes.

提交回复
热议问题