WordPress.org

Support

Support » Plugins and Hacks » Subscribe to Comments » [Resolved] Translation issue

[Resolved] Translation issue

  • To be able to use a .mo file, I have modified the line 826

    load_plugin_textdomain(‘subscribe-to-comments’);

    to

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

    Then I have created the .mo file in the plugin directory.
    The mo file is called

    subscribe-to-comments-fr_FR.mo

    If I add an instruction

    _e(‘Notify me of followup comments via e-mail’,’subscribe-to-comments’)

    the text is actually translated, but
    the same text “Notify me of followup comments via e-mail” in front of the check box is not translated…

    Any idea ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here the solution I’ve found :

    Line 27, replace

    echo $sg_subscribe->not_subscribed_text;

    by

    _e($sg_subscribe->not_subscribed_text,’subscribe-to-comments’)

    Do the same line 39 and 49 with other texts (sg_subscribe->auhtor_text and $sg_subscribe->subscribed_text)

    And of course LEAVE THE 3 DEFAULT MESSAGES of the plugin.

    Bonjour,
    est-ce que tu pourrais m’aider ? Mon plugin est bien traduit (la page d’abonnements est en français) mais suite à une màj j’ai toujours “Notify me of followup comments via e-mail” ou “you are the author of this …” qui restent en anglais et je ne sais pas comment le traduire.
    Merci.

    je suis bête…c’est dans les réglages de l’extension dans l’administration de WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Translation issue’ is closed to new replies.
Skip to toolbar