[wp-hackers] Plugin i18n

Nikolay Bachiyski nb at nikolay.bg
Mon Feb 9 17:19:57 GMT 2009


On Mon, Feb 9, 2009 at 18:52, Eric Marden <wp at xentek.net> wrote:
> Someone sent me translations for a couple of my plugins. I have the .po and
> .mo files and would like to test it, but didn't find much information in the
> codex about plugin localization (except a link to a blog post that is 5
> years old). Do I have to define WP_LANG in my config file to test it? Do i
> need to store the translations in a special folder with in my plugin or
> anything like that?
>

Most plugin developers store their translations in the plugin folder
(see the Codex article below). If they become too many, you can move
them into a subdirectory of your plugin one, e.g. languages.

In order to test, set WP_LANG to the basename of the MO file you've
got and this should be enough.

http://codex.wordpress.org/I18n_for_WordPress_Developers#I18n_for_theme_and_plugin_developers

Happy hacking,
Nikolay.


More information about the wp-hackers mailing list