![](/img/trans.png)
[英]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.