[wp-hackers] Plugin i18n

Stephen Rider wp-hackers at striderweb.com
Mon Feb 9 18:06:24 GMT 2009


That codex page need some updating, since PLUGINDIR is outdated.   
Since WP 2.6 it's  better to use WP_PLUGIN_DIR instead. The textdomain  
function was changed to accommodate.

Stephen


-- 
Stephen Rider
http://striderweb.com/

On Feb 9, 2009, at 11:19 AM, Nikolay Bachiyski wrote:

> 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


More information about the wp-hackers mailing list