Language and Messages

What the most efficient way to update the messages and language on a plug in or theme. For Example the plug in says:

"Subscribe to Our Newsletters" and I would like to say: "Subscribe"

  • mort3n

    Hi kometdog,

    For a plugin or theme ready for translation (most are) I think a good way to achieve this is to do the same as when you translate a plugin.

    Each plugin must provide its own translation of the strings that it brings to the site.

    If a plugin does not come with a translation into your language, then you can fairly easily make one yourself as follows.

    First the general answer, here

    http://codex.wordpress.org/Translating_WordPress

    Here's what I do when translating a plugin called myplugin:

    I use PoEdit. Make sure to go into File->Settings->Edit and check "Generate .mo file on save".

    In the myplugin folder there's a myplugin\languages subfolder. There you'll find the myplugin.po file.

    In PoEdit load the .po file.

    Save with the proper name for the language you need. You can find the naming conventions at http://codex.wordpress.org/WordPress_in_Your_Language

    For US English it would be myplugin-en_US.po

    Now translate each string in the catalogue.

    Save.

    You will now have the two files myplugin-en_US.po and myplugin-en_US.mo.

    FTP the files into the subfolder myplugin\languages on the server.

    Assuming your site language is set to US English the plugin strings should now appear in US English.

    Cheers
    Mort3n.

    PS. In most plugins the file to load initially is a .POT file. In that case you choose Create catalogue from .POT file in PoEdit and proceed as above.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.