# Translating the comment section

**URL:** https://meta.discourse.org/t/translating-the-comment-section/50318
**Category:** WordPress
**Created:** [September 19, 2016, 8:14am UTC](https://meta.discourse.org/t/translating-the-comment-section/50318 "2016-09-19T08:14:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![daneriksson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daneriksson/32/114835_2.png) [@daneriksson](https://meta.discourse.org/u/daneriksson)
#### Post date: [September 19, 2016, 8:14am UTC](https://meta.discourse.org/t/translating-the-comment-section/50318/1 "2016-09-19T08:14:26Z")

</div>

So, I’ve finally decided to get rid of Disqus and use Discourse also to display comments on my blog.

I’ve been searching this part of the forum, but I can’t really find out how to translate the text that’s displayed under my blog posts. For example “Notable replies” and “Continue the discussion at…”

Is there anyone who can explain to me in a pedagogic way? 🙂

Thanks in advance.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 19, 2016, 8:29am UTC](https://meta.discourse.org/t/translating-the-comment-section/50318/2 "2016-09-19T08:29:51Z")

</div>

I’m working right now to make it all the user facing text configurable from the admin section. I think that can be ready soon - later this week - if it gets approval. There’s also an issue on the plugin’s github page about it: [https://github.com/discourse/wp-discourse/issues/251](https://github.com/discourse/wp-discourse/issues/251)

For now you can do something like this:

```php
add_filter( 'gettext', 'change_notable_replies_text', 20, 3 );
function change_notable_replies_text( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    // The text content you want to change.
    case 'Notable Replies' : 
            // What you want to change that text to.
            $translated_text = __( 'Our Favourite Replies', 'wp-discourse' );
        break;
    }

    return $translated_text;
}

```

I can add more detail if this isn’t clear. See this for more detail about the `gettext` hook:

> **[gettext – Hook | Developer.WordPress.org](https://developer.wordpress.org/reference/hooks/gettext/)**
>
> Filters text with its translation.
