-
Author
-
December 13, 2014 at 05:28 #38983
lovewp
Participant@sharmstr Can you please tell me what files this typo is in, I’ve seen a couple now with the same typo “Oh bother! No topics were found here!”
Thanks, I’m sure this has been asked before, I did search, It came back with a ton of results, better to just ask, thanks again
December 14, 2014 at 01:45 #39027lovewp
Participant@sharmstr this doesn’t look like a valid answer.. can you please help me out. thank you.
// Message replacement function
function youruniqueprefix_filter_gettext( $translated, $original, $domain ) {
//get topic title to supress unwated string later
//$topic_title = bp_get_the_topic_title();// This is an array of original strings
// and what they should be replaced with$strings = array(
âOh bother! No topics were found here!â => âSelect one of the topics above to participate.â,
âThe forum â%sâ is closed to new topics and replies.â=>â,
// âYou must be logged in to create new topics.â => âPlease â . âLog Inâ; . â to create new topics.â,
//Add some more strings here,
);// See if the current string is in the $strings array
// If so, replace itâs translation
if ( isset( $strings[$original] ) ) {
// This accomplishes the same thing as __()
// but without running it through the filter again
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}return $translated;
}add_filter( âgettextâ, âyouruniqueprefix_filter_gettextâ, 10, 3 );
// message replacement function ends
December 18, 2014 at 20:00 #39616Abe
KeymasterHi, that comes from bbPress plugin. the file is located here: wp-content/themes/kleo/bbpress/feedback-no-forums.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 18, 2014 at 21:17 #39639lovewp
Participant@Abe I found the file above and fixed the error, there is still one more page(attached) that contains the same error.
December 19, 2014 at 16:37 #39694Abe
KeymasterFrom that screenshot I definitely can’t guess what page is it on. You can do a search in bbpress files for the string to find it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.