django internationalization and translations issue

前端 未结 7 1774
傲寒
傲寒 2020-12-09 18:52

I have a problem with django translations.

Problem 1 - I updated string in django.po file, but the change does not appear on the webpage.

Problem 2 - I have

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 19:38

    Translation files (PO) are loaded in memory only one time, changes to the PO files are not picked up by Django. In order to load the new translation files you need to restart Django (eg. stop/start runserver, Apache or NGINX).

提交回复
热议问题