Yes, I’ve tried the add_filter( 'gettext', 'change_continue_discussion_text', 20, 3 ); method, but that erased several text blocks from the panel, while doing nothing on the site, so I just edited the plugin. I’m not even shure if I can translate that part, since it hooks into the comments_number and overwrites it? Or do I just need to use discourse_comments_count?
/**
* Returns the comments number.
*
* If Discourse comments are enabled, returns the 'discourse_comments_count', otherwise
* returns the $count value. Hooks into 'comments_number'.
*
* @param int $count The comment count supplied by WordPress.
*
* @return mixed|string
*/
function comments_number( $count ) {
global $post;
if ( $this->use_discourse_comments( $post->ID ) ) {
$this->sync_comments( $post->ID );
$count = get_post_meta( $post->ID, 'discourse_comments_count', true );
if ( ! $count ) {
$count = 'Leave a reply';
} else {
$count = ( 1 === intval( $count ) ) ? '1 Reply' : $count . ' Replies';
}
}
return $count;
}
Also, thank you so much for your help and the quick fixes regarding the Emojis and {comment_url}!
Edit:
I’ve just noticed another problem with comments.js and links to YouTube. It seems unable to get the correct ID and replaces it with “undefined”:
<a href="https://www.youtube.com/watch?v=undefined" class="fancybox-youtube">https://www.youtube.com/watch?v=undefined</a>
This worked fine on 0.6.6…strange.