I’m creating a plugin and I’ve put:
define ('WPLANG', 'it_IT');
into wp-config.php
file.
After plugin Name in the Header of the Plugin declaration:
* Text Domain: endpoint
* Domain Path: /languages/
For the load domain:
add_action( 'plugins_loaded', 'myplugin_load_textdomain' );
function myplugin_load_textdomain() {
load_plugin_textdomain( 'endpoint', false, dirname( __FILE__ ) . '/languages/' );
}
In languages I created pot, po and mo file with this names: end-point.pot
, end-point-it_IT.po
and end-point-it_IT.mo
.
I switched to Italian but nothing is changed.
Any help?