Automatically generating Piratespeak .po/gettext/translations for i18n testing?
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.
精彩评论