translations
-
Great plugin very useful for my users !
However, i needed to make some little changes in your code to make it translatable ready in order to let the plugin “Loco Translate” work fine.i.e.
1/ added the following lines to “magicloginmail.php” :
function magic_login_mail_load_textdomain() {
load_plugin_textdomain( ‘magic-login-mail’, false, dirname( plugin_basename(__FILE__) ) . ‘/languages’ );
}
add_action( ‘plugins_loaded’, ‘magic_login_mail_load_textdomain’ );
2/added a “languages” directory in the directory of the plugin containing a “magic-login-mail.pot” fileI ‘m not a specialist in WP and php coding at all, that ‘s the reason why i ‘d be glad if you could review my code and incorporate it or something equivalent in yours.
Kind regards,
Jean-Michel H.
The page I need help with: [log in to see the link]
- The topic ‘translations’ is closed to new replies.