• Resolved mistvan

    (@mistvan)


    Hello,

    after recent wordpress and that plugin update it stopped translating string for me.

    I have translation config in:
    /wp-content/languages/plugins/wp-subscribe-sk_SK.po
    /wp-content/languages/plugins/wp-subscribe-sk_SK.mo

    So was there recently changed something that could broke my site please?

    Many thanks

    https://wordpress.org/plugins/wp-subscribe/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mistvan

    (@mistvan)

    I figured this out.

    I need to add loading text domain in your fuctions.php

    add_action( 'plugins_loaded', 'wpsubscribe_load_textdomain' );
    function wpsubscribe_load_textdomain() {
      load_plugin_textdomain( 'wp-subscribe', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    }

    And then in your Display widget section I use _e function with that text domain:
    <?php _e($instance[‘success_message’], ‘wp-subscribe’); ?>.

    Can you try to include that in your plugin for future updates please?

    Plugin Author MyThemeShop

    (@mythemeshop)

    Hi,
    Thank you for letting us know about the issue, we have fixed it and released an update.
    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not translated data’ is closed to new replies.