BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Translating wall plugin and saving php files in child theme
Tagged: wall-hooks.php
- This topic has 14 replies, 3 contibutors, and was last updated 9 years, 4 months ago by Alyssa.
Question
February 8, 2015 at 6:16 am #35603@milenahi @tjchester,
this is an old issue that remained unresolved (https://www.buddyboss.com/support-forums/topic/how-change-tab-label-new-feed/page/3/), and i need to address it now, since i want to keep using and updating the wall plugin.
to remind you, there was a problem with my custom translation, since in my site’s language i cannot use “you” posted an update”, grammar wise. (the translation for “you” and “he/she” “posted” is different)
you told me to change a few lines in the original buddyboss-wall/includes/wall-hooks.php file.
i did and it worked.since then i wrote and waited for a response on saving the wall-hooks.php file in the child theme, or telling the theme to use this file instead of the original in parent theme.
i tried putting in buddyboss-child/ ,and buddyboss-child/buddyboss-wall/ and buddyboss-child/buddyboss-wall/includes/-
nothing works, the theme just read the original file and i had to edit that one (buddyboss-wall/includes/wall-hooks.php)now there is an update to the plugin since December and i cannot use it because one of the files that was updated is wall-hooks.php (https://www.buddyboss.com/release-notes/buddyboss-wall-1-1-2/).
i read the release notes, but it doesn’t say what was edited exactly, so there is no way i can update and save my translations.how can we solve this one?
the wall was one of the reasons i purchased this theme in the first place.
can these functions have a condition for rtl languages?thank you
Answers
February 8, 2015 at 6:52 am #35604@milenaHi again,
I just went through the entire thread to find the exact changes you told me to make within wall-hooks.php. Maybe these can be taken care of forever and ever in my child theme’s functions.php?
1.
$bbwall_action = str_replace( $to_replace, $you_text, $action );
replace with:
$bbwall_action = $action;2.
$action = str_replace($myprofile_link, __( ‘You’, ‘buddyboss-wall‘ ), $action);`
replace with:
$action = $action;3.
$action = str_replace( ‘%INITIATOR%’, __( ‘You’, ‘buddyboss-wall‘ ), $action);
replace with:
$action = str_replace( ‘%INITIATOR%’, bp_core_get_userlink( bp_loggedin_user_id()), $action);February 12, 2015 at 8:31 am #35856@milenaany news on this one @tjchester?
same as here https://www.buddyboss.com/support-forums/topic/french-translation-issue/#post-35855February 12, 2015 at 9:48 pm #35888April 23, 2015 at 11:19 pm #39308@milenaHi @tjchester, how are you? I am still waiting for a solution for this issue. Cannot use the wall plugin – and update it to solve other things – without it.
April 26, 2015 at 12:51 am #39422@milena@tjchester, @michael
April 26, 2015 at 9:22 am #39434@alyssa-buddyboss
AlyssaParticipantNo update, sorry. This is a minor issue right now.
May 5, 2015 at 11:05 pm #39864@
Anonymous@milena @tjchester
For next release, we added “you posted an update” as a translatable string. Now you guys will have two string to translate “you posted an update” and “posted an update”
May 18, 2015 at 2:19 pm #40361@milenaHi @michael, did you mean Version: 1.1.8?
May 18, 2015 at 2:25 pm #40362@
Anonymous@milena Correct, version 1.1.8 which is now available for download
May 19, 2015 at 1:37 am #40377@milenaHi @michael,
I updated the plugin, and tested the translation- I found only this string :
“%s posted an update”.
Since %s is still being translated differently (as “you” if you are looking at own profile) the translation issue remains.
I tried changing the lines TJ originally gave me in wall-hooks.php, and that does not work either anymore, since the file has changed.June 24, 2015 at 8:55 am #41586@milena@tjchester
July 9, 2015 at 3:15 am #42335@
AnonymousThe next release has an admin option to switch between using “You” or just displaying the Username, which should provide a solution for this issue.
July 12, 2015 at 3:18 am #42514@milena@michael, this works! thank you so much.
July 12, 2015 at 9:07 am #42524@alyssa-buddyboss
AlyssaParticipantGreat, I’ll close this one too!
- The question ‘Translating wall plugin and saving php files in child theme’ is closed to new replies.