Django i18n: Common causes for translations not appearing

前端 未结 9 2107
心在旅途
心在旅途 2020-12-30 23:16

I am making a multilingual Django website. I created a messages file, populated and compiled it. I checked the site (the admin in this case,) in my wanted language (Hebrew)

9条回答
  •  执笔经年
    2020-12-30 23:44

    Another cause can be a wrong directory structure.

    Read well the manage command's error message about which directory to create before running the makemassages command for the app translation. (It must be locale for an app, not conf/locale.) Note that the management commands work fine even with the wrong directory structure.

提交回复
热议问题