Automated translation for your Qt applications
-
wrote on 21 Jan 2012, 15:41 last edited by
Dear all,
you may have heard of Pepipopum: a php script that batch translates PO files using Google translate. The author, Paul Dixon, says:
[quote] This may not be a ‘release quality’ translation, but does speed up the job of a real translator, who can simply proof read and correct the machine-translated entries.[/quote]
A few months ago I started modding it so it could accept TS files.
Unfortunately in the meantime Google decided to discontinue their free translation service.
So this week I tuned the script to work with Bing engine. You can try it here: http://maille.tk/translate/index-curl.phpPlease use short .ts files as it currently works with my Bing api key that is limited to 2000tx per month.
I carefully checked that strings containing html code and %1, %2 placeholders are not broken.
If you have exotic strings that results in invalid TS files, please let me know.
Source code is available, so if you modify this script, kindly share your enhancements in this topic.Thanks for watching!
Merci pour votre attention !
感谢收看!
Danke fürs Zuschauen! -
wrote on 23 Jan 2012, 13:16 last edited by
Known issues:
- the script won't translate strings with carriage return.
- Japanese sometimes generate % symbole in place of %
(I think that moving this thread in the showcase section will unfortunately result in far less replies that in the General section)
-
wrote on 23 Jan 2012, 13:42 last edited by
[quote author="Julien M" date="1327324573"](I think that moving this thread in the showcase section will unfortunately result in far less replies that in the General section)[/quote]
I am disagreeing with your statement. In my opinion it is more of a promotion. Whoever likes to use your script may have problems finding it in the general section lateron.
From my point it is nice idea to do auto-translation. Unfortunately, I have no use of it at the time being. I am simply doing all in English. But this opens an opportunity for my future projects.
-
wrote on 2 Dec 2012, 02:09 last edited by
Hello Julien,
Thank you for your nice utility. It works nicely for me.
One suggestion: I believe that some of the users of your script (including me) will want to run it via the command line (as part of some external script (ie ant)). So I think it would be a nice idea to add some command line handling.
Thanks again
Dimitris -
wrote on 11 Dec 2012, 17:18 last edited by
I don't undestand how I could interface this online script with the command line. Do you have any clue how to do this?