使用Google翻译器自动翻译django.po文件 [英] automatic transalation of django.po files using google translator

查看:135
本文介绍了使用Google翻译器自动翻译django.po文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的django.po文件,其中填充了所有msgids.现在我需要用等效的翻译后的字符串替换msgstr.每次我都需要将字符串复制到google转换器中,然后获取翻译后的字符串并将其粘贴到文件中.还有什么可以获取目标语言并使用翻译后的字符串填充所有msgstr的内容吗?

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?

推荐答案

您可以尝试django-rosetta应用.它可以自动选择基于Ajax的bing转换.

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

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

这篇关于使用Google翻译器自动翻译django.po文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆