gpt4 book ai didi

django-rosetta 无法进行 django 翻译

转载 作者:行者123 更新时间:2023-12-01 04:11:04 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com