BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Translating wall plugin and saving php files in child theme

Viewing 15 posts - 1 through 15 (of 15 total)
  • Question

    #35603
    @milena

    hi @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

    #35604
    @milena

    Hi 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);

    #35856
    @milena
    #35888

    Deepak BuddyBoss
    Participant
    @deepak

    @milena forwarded to devs

    #39308
    @milena

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

    #39422
    @milena

    @tjchester, @michael

    #39434

    Deepak BuddyBoss
    Participant
    @deepak

    No update, sorry. This is a minor issue right now.

    #39864
    @michael

    @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”

    #40361
    @milena

    Hi @michael, did you mean Version: 1.1.8?

    #40362
    @michael

    @milena Correct, version 1.1.8 which is now available for download

    #40377
    @milena

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

    #41586
    @milena

    @tjchester

    #42335
    @michael

    @milena

    The next release has an admin option to switch between using “You” or just displaying the Username, which should provide a solution for this issue.

    #42514
    @milena

    @michael, this works! thank you so much.

    #42524

    Deepak BuddyBoss
    Participant
    @deepak

    Great, I'll close this one too!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The question ‘Translating wall plugin and saving php files in child theme’ is closed to new replies.