Change standard forum labels ('Answers' to 'Replies')?
Quote from JD_antsle on July 3, 2018, 12:40 amHey 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
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
Quote from N3k0 on July 3, 2018, 5:21 pmYou can translate the plugin with the Loco Translate Plugin
https://wordpress.org/plugins/loco-translate/
Its easy to use
Cheers!
You can translate the plugin with the Loco Translate Plugin
Its easy to use
Cheers!
Quote from Asgaros on July 5, 2018, 9:39 amAs 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:
https://wordpress.org/plugins/say-what/
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: