我已经安装了 django-rosetta 进行翻译,通过 django 命令制作了 .po 和 .mo 文件
django-admin.py makemessages -l ar
并通过 django-rosetta 翻译所有单词,
现在,当我将语言从英语更改为阿拉伯语时,它会显示一些阿拉伯语单词和一些英语单词,尽管我已将所有这些单词翻译成阿拉伯语,
最佳答案
您是否重新启动了 Web 服务器?
This means your project's labels will be translated right away, unfortunately you'll still have to restart the webserver for the changes to take effect. (NEW: if your webserver supports it, you can force auto-reloading of the translated catalog whenever a change was saved. See the note regarding the ROSETTA_WSGI_AUTO_RELOAD variable in conf/settings.py.
-- http://code.google.com/p/django-rosetta/
关于django-rosetta 无法进行 django 翻译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6306561/