I have a plugin to be translated. I have done following tasks:
Loaded the TextDomain:
$my_td = 'mysignup';
function my_signup_textdomain_init() {
global $my_td;
load_plugin_textdomain( $my_td, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action('plugins_loaded', 'my_signup_textdomain_init');
Added language files(po, pot, mo) in wp_plugin_folder\my_signup\languages (for Bengali bn_BD):
- mysignup.pot
- mysignup.mo
- bn_BD.po
- bn_BD.mo
Changed the language code in wp_config.php file:
define('WPLANG', 'bn_BD');
But problem is nothing is changed. I am not sure what i have done as mistake. I already read lots of articles and answers. Still i need help to know how can i test everything is fine that i have done and how can i solve the issue.
Please help me. Thanks in advance.