# 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:** 1\
**Showing post:** 2

<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.

---

_[View the full topic](https://meta.discourse.org/t/translating-the-comment-section/50318)._
