• Resolved becung

    (@becung)


    Would you consider adding the WordPress translate function to the comment anchor-link/ID (that I get when clicking the link icon) so that instead of “comment” it is in my site’s language? I use loco translate and I see that in wpdiscuz plugin, this string is hard-coded.
    Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi @becung,

    Thank you for using wpDiscuz and for contacting us.

    I’m really sorry, but this feature cannot be added in wpDiscuz plugin. This requires very large changes in plugin core.

    Thread Starter becung

    (@becung)

    Hello gVectors Support,

    I’ve added this feature locally with two small changes in class.WpdiscuzWalker.php:

    Line 75:
    $commentLink = $args[‘post_permalink’] . ‘#’ . __(‘comment’, ‘wpdiscuz’) . ‘-‘ . $comment->comment_ID;

    Line 205:
    $commentOutput .= ‘<div id=”‘ . __(‘comment’, ‘wpdiscuz’ ) . ‘-‘ . $comment->comment_ID . ‘” class=”wc-comment-right’ . $commentRightClass . ‘”>’;’

    Please consider including this.

    Thank you

    Plugin Support gVectors Support

    (@gvectorssupport)

    @becung,

    This is working partly.

    It just translates the phrase in the alert box. However, the URL in the address bar is still not translated. Besides this doesn’t work correctly the URL is not linked to the comment. i.e. it doesn’t go to certain comment.

    Thread Starter becung

    (@becung)

    Oh ok, I see. Thanks anyway, and great plugin!

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

The topic ‘Translate Comment Link Slug’ is closed to new replies.