automatic transalation of django.po files using google translator

为君一笑 提交于 2021-02-05 07:16:36

问题


I am having a very big django.po file with all msgids populated. Now i need to substitute msgstr with the equivalent translated string.Every time i need to copy the string to google translator get the translated string and paste it to the file. Is there any too that can get the target language and populate all the msgstr's with the translated string?


回答1:


You can try django-rosetta app. It has automatic ajax-based bing translation as an option.

https://github.com/mbi/django-rosetta




回答2:


It's late but it might help someone else :)

You can try the module django-autotranslate.

Hope this helps :)




回答3:


Use hirak.cc/translate alernative google translation toolkit ( auto translation of po files )




回答4:


I had the same issue, and I'd already started doing it manually, I searched and found django-autotranslate check it out here https://pypi.org/project/django-autotranslate/ Its usage is explained in the same webpage. It worked for me, and I believe it'll work for you.



来源:https://stackoverflow.com/questions/11541541/automatic-transalation-of-django-po-files-using-google-translator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!