• Resolved qwertysimo

    (@qwertysimo)


    Hi, I have finished Slovak translation but there is a problem. Some strings remain in English on live site although they are translated in po/mo file. To be specific, these remain in English:

    – plugin description
    – descriptions of both widgets
    – substituted {ACTION} in notification email

    I tried reactivate the plugin but no help. Any idea what to try? Thanks.

    http://ww.wp.xz.cn/extend/plugins/subscribe2/

Viewing 7 replies - 31 through 37 (of 37 total)
  • @qwertysimo,

    This was fixed until you installed and activated the Polylang plugin, this is therefore a conflict between the two plugins. Something in this plugin is stopping mo files being loaded so you need to raise this with the authors of Polylang.

    @qwertysimo,

    Handling of other plugin mo files seems to be less than optimal in Polylang:

    http://ww.wp.xz.cn/support/topic/polylang-integration-with-types-plugin?replies=7

    Thread Starter qwertysimo

    (@qwertysimo)

    OK, thanks for explanation. Have a nice day.

    Thread Starter qwertysimo

    (@qwertysimo)

    Hi, I found solution for the latest issue above. It was neccessary to modify Subscribe2 plugin, not the Polylang.

    In subscribe2.php find this code:

    if ( is_admin() ) {
    	require_once( S2PATH . 'classes/class-s2-admin.php' );
    	global $mysubscribe2;
    	$mysubscribe2 = new s2_admin;
    	$mysubscribe2->s2init();
    } else {
    	require_once( S2PATH . 'classes/class-s2-frontend.php' );
    	global $mysubscribe2;
    	$mysubscribe2 = new s2_frontend;
    	$mysubscribe2->s2init();
    }

    and add two lines at the end of else section:

    remove_action('init', array(&$mysubscribe2, 'load_strings'));
    add_action('wp', array(&$mysubscribe2, 'load_strings')); // after Polylang

    From this moment all Subscribe2 messages show up translated. Solution found in this post. Thanks Chouby.

    @qwertysimo,

    That fix isn’t working for me, I’ve tried it the way described above and I’ve also just amended the line in the class-s2-core.php file from:
    add_action('plugins_loaded', array(&$this, 'load_strings'));
    To:
    add_action('wp', array(&$this, 'load_strings'));

    Which should essentially do the same thing. Did you change anything else?

    @qwertysimo,

    It’s okay, forget that last post, I figured something else out and got it working. I’ll get this fixed in 9.0 but some of the strings are also changing so you’ll need to update you po and mo files when it is released.

    @qwertysimo,

    Hmm, I’ve noticed a side effect of the ‘fix’ for polylang – the translation strings load too late for the admin menus now so they are blank in some places.

    Another fix is needed.

Viewing 7 replies - 31 through 37 (of 37 total)

The topic ‘[Plugin: Subscribe2] Localization problems’ is closed to new replies.