WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe to Comments
[resolved] Translation issue (4 posts)

  1. Iznogood1
    Member
    Posted 1 year ago #

    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 ?

  2. Iznogood1
    Member
    Posted 12 months ago #

    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.

  3. sam soul
    Member
    Posted 7 months ago #

    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.

  4. sam soul
    Member
    Posted 7 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic