[英]Is there any way to execute custom makemessages command by running “django-admin makemessages -l ja”?
[英]is there any work around for “django-admin makemessages” not to make changes to already updated translations?
几个月前我为我的网络应用添加了一个翻译,但现在添加了一些新的更改。 我还需要进行翻译。 但它们是Django消息和通知等变量。 我尝试在现有的PO文件中添加它们的翻译并进行编译。 但没有得到翻译。 那么我需要使用make messages命令生成新的po文件吗? 我尝试过这个。 但它也带来了已翻译文件的更改。 有什么解决方法可以解决这个问题吗?
您需要运行django-admin compilemessages
来生成新的.mo
文件。 像这样:
django-admin compilemessages --locale=pt_BR
可以在documentation
找到更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.