开发者

Automatically generating Piratespeak .po/gettext/translations for i18n testing?

开发者 https://www.devze.com 2023-02-14 15:17 出处:网络
I am working on translating our django webapp. I\'d like to test that our system is set up correctly before paying a translator to do the actual translation.

I am working on translating our django webapp. I'd like to test that our system is set up correctly before paying a translator to do the actual translation.

Is there anyway, given a .po file, to automatically generate some new tra开发者_运维问答nslations? And just for fun, is there anyway to do this to pirate speak? :) (Or some other command line text munglying tool?)


Turns out no-one has done this before. So I wrote a python script to do it myself to piratify a .po file


I tweeked existing auto translators to use microsoft's service instead of google's after google translation became paid service

You can find python code here -

http://djangosnippets.org/snippets/2679/

With the just effort of 1 hour I wrote this django app to translate the po file online. You can find the website here -

http://potranslate.prabhatgupta.com/

I hoope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号