django-rosetta 无法进行 django 翻译

标签 django translation django-rosetta

我已经安装了 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/

相关文章:

django - 自定义 Django Admin : Add More Than One Default Inline on Parent Add_View

django - 由于导入错误,无法运行 gunicorn

javascript - 使用ajax请求进行 Angular 翻译

button - 日语对话框可以接受英语 "OK"按钮吗?

xml - Metro 应用程序 - 翻译 UI 资源 - 从外部 xml 导入内容

Django i18n 与 jQuery Globalize 的消息一起用于单页应用程序

django - 表单集中每个表单中字段的不同标签

python - Django - Rosetta : Ignore . mo 文件问题

Django 通过另一个 related_name 使用 related_name 进行查询