[wp-hackers] Plugin metadata internationalization

Nikolay Bachiyski nb at nikolay.bg
Tue Feb 3 20:00:42 GMT 2009


On Tue, Feb 3, 2009 at 19:08, Jennifer Hodgdon <yahgrp at poplarware.com> wrote:
> Could someone send me a quick summary of the right way to internationalize
> plugin header information, so that WP will recognize it, so that I can
> update the section of http://codex.wordpress.org/Writing_a_Plugin to contain
> this information?

Two simple things:

1. Add Text Domain: header to the main plugin file. For example:

Plugin Name: Templates for Posts
...
Text Domain: templates-for-posts

2. Generate a POT file, which contains the metadata. Here are two ways to do it:

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

Also, can you link in the appropriate place of Writing_a_Plugin to:

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

We should probably merge them and let one of them link to the other.

Happy hacking,
Nikolay.


More information about the wp-hackers mailing list