Please or Register to create posts and topics.

Change standard forum labels ('Answers' to 'Replies')?

Hey guys,

we run our forum on our own site (antsle.com). Since most of our users are in IT and are used to a different terminology when navigating support forums, I was wondering if you can change the labels that come standard?

In the general post overview you can see ‘Post Title’, ‘Post Author’ and then ‘Answer(s)’. Since an answer in this community means that a problem was solved, I’d like to change it to ‘Reply’. Is that possible and if so how?

thanks,

Johannes

You can translate the plugin with the Loco Translate Plugin

Loco Translate

Its easy to use

Cheers!

As an alternative you can use also some code like this:

 

add_filter('ngettext', 'change_ntranslations', 20, 5);
add_filter('gettext', 'change_translations', 20, 3);

function change_translations($translated_text, $untranslated_text, $domain) {
  if ($domain === 'asgaros-forum') {
    switch ($translated_text) {
      case '%s Answers':
        $translated_text = '%s Replies';
      break;
      case '%s Answer':
        $translated_text = '%s Reply';
      break;	
    }
  }

  return $translated_text;
}

function change_ntranslations($translation, $single, $plural, $number, $domain) {
  if ($domain === 'asgaros-forum') {
    $translation = change_translations($translation, '', 'asgaros-forum');
  }

  return $translation;
}

Or the following plugin:

Say what?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Very helpful, thanks guys!