phPo Translator – Online PO Translator

One of the great things about being a programmer is that when I have a problem, it’s pretty easy to solve it myself[1].

I recently began to seriously support i18n (internationalization) in the Countdown Timer. It’s actually a pretty slick system. Everywhere I have some text that’s output in the plugin, I wrap it in a WordPress defined function that handles the translation. Then I generate a PO file using poEdit and make a MO (which is just a binary/machine object file of the PO file, which is human readable).

The issue is, if someone wanted to translate the PO file, they’d have to download poEdit, figure out how to use it, grab the PO file, translate it, make the MO file, and then send the MO file to me. This works pretty well if the users is a computer guru. But that’s not often the case.

I was hoping there would be an online PO translator, but I couldn’t find one. So I decided to make my own. Thus I present, in the form of clever titles that mash two words together, phPo Translator (or just phPo for short).

I basically wrote the code over lunch today and then decided that I should version control it. So I threw it up on Google Code, which I knew about but had never, up until this point, actually used.

Google Code is simply amazing. It took less then a minute to register and it uses SVN, which I already have installed on my computer. So I upload the code, create the tag, and away we go!

In any event, you can:

See it in action: Translate afdn_countdownTimer.po
Download phPo Translator v0.1.1
View phPo Translator Google Code page

  1. Granted, most of my problems are probably caused because I am a programmer []
This entry was posted in Programming and tagged , , , , , , , , , , . Bookmark the permalink.

12 Responses to phPo Translator – Online PO Translator

  1. Peter says:

    that was a really well written post Ferg.

  2. Henk Poley says:

    *grin* your website shows up in the top-10 for “po google translate”. Have you thought about integrating automatic translation? I’ve been surprised about the quality lately.

  3. @Henk Poley:
    It would be nice to have automatic translation, but I can’t confirm how well Google’s API translation would work.

  4. igor says:

    hello , its a very cool and nice script, i was searching for a online based po editor , and i found your little script. But why user cant DIRECTLY edit the po file online ? instead of mail a lot of translation strings.

  5. Markus says:

    yeah, this is the closest to what I’m looking for and yet it’s far far away from an online po editor. Do you happen to have any plans to continue with this project? Thanks for the script, though!

    • @Markus

      I do want to continue with the project, especially since I still use it. I just haven’t had the time recently (I’m finishing up my engineer degree).

      • Markus says:

        I thought it would be great to integrate something like that with the Zend_Translate gettext adapter and extend it in a way that for admin users, the translations are directly saved to the po file while for a lower users the translations would be stored in a db table and commited to the po by the admin. What I would like to achieve is to give my customers the possibility to translate their own website contents online while still using gettext.

  6. c_schmitz says:

    Launchpad has a great internal tool to translate po files online. Very strong!

    The best thing is that Launchpad will be open source by next month.

  7. umpirsky says:

    http://translate.umpirsky.com/ will translate your po file to any choosen language :)

    • nihcap says:

      Although the translation is not perfect (no machine makes a 100% accurate translation), it really saves a lot of time. Thank you very much!

  8. Sourena says:

    How one can install and us it? Is it a WordPress plugin?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Code: To include code, bracket it with [code language="php"] and [/code].
Example: [code language="php"] echo "Hello, World!"; [/code]

Plugin Help: If your requesting help about a plugin, please provide as much information as possible. At the very least, include your WordPress Version and the Plugin Version!