Viewing 8 replies - 1 through 8 (of 8 total)
  • Same issue here. Translations don’t work

    Thread Starter FXB

    (@fxbe)

    I founded the way to fix it.

    In subscribe-to-comments.php line 822 change the function with this

    function sg_subscribe_start() {
    global $sg_subscribe;

    if ( !$sg_subscribe ) {
    load_plugin_textdomain(‘subscribe-to-comments’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );
    $sg_subscribe = new sg_subscribe();
    }
    }

    Create a languages folder and put your translations inside

    Thanks.. This worked!

    Thread Starter FXB

    (@fxbe)

    You’re welcome, enjoy your plugin

    Which name did you put it? I tried with es_ES.mo and subscribe-to-comments_es-ES.mo and it doesn’t get it.

    Thread Starter FXB

    (@fxbe)

    If you followed my instructions, in your “languages” folder sitting in the root of the plugin, your file should be called :

    subscribe-to-comments-es_ES.po and subscribe-to-comments-es_ES.mo and not
    subscribe-to-comments_es-ES.mo, beware of the order between – and _

    Enjoy

    Yes, I understood.

    But, with /languages/subscribe-to-comments-es_ES.mo file it doesn’t get the file.

    Thread Starter FXB

    (@fxbe)

    I don’t know what to say more, it’s working fine on my site

    Did you changed that line :

    load_plugin_textdomain(‘subscribe-to-comments’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );

    The es_ES.po file is complete ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Subscribe to Comments] Translation not working’ is closed to new replies.