• Resolved JerryYuan

    (@jerryyuan)


    I have found some problems when I try to translate it into Simplified Chinese. Even that I have put the .mo file into the language directory, it still display in English. I try to modify the WordPress’s code and output the middle values, I find that WP-SMTP has transport the wrong path to the load_plugin_textdomain at src/Core.php:65 and wp_mail_smtp.php:856.I change the second parameter into “/wp-mail-smtp/languages” and the translate began to work.

Viewing 1 replies (of 1 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    Putting your custom translation in the /wp-content/plugins/wp-mail-smtp/languages directory is a bad idea, as those files will be removed on next plugin upgrade. Same for editing plugin core files.

    If you put your translation files in /wp-content/languages/plugins/ directory – they will work as expected out of the box (no plugin source code editing) and will preserver upon future plugin updates.

Viewing 1 replies (of 1 total)

The topic ‘WP-SMTP’s localization’ is closed to new replies.