Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble with translation


  • Lars Henriksen
    Participant

    @adjunkten

    Hello BP-developers

    Thank you for maintaining and developing Buddypress!

    I have an issue with translating some site messages and labels, i.e. ‘members-only area’ + ‘This community area is accessible to logged-in members only.’ , text in buttons like ‘view group’ and some time stamps like ‘a month ago’

    I use Loco Translate, and I update the strings, but the translations don’t show.

    Here is a link to a group, which redirects to ‘private community’

    WP 6.6.1
    BP 14.0.0

Viewing 8 replies - 1 through 8 (of 8 total)

  • capexpe
    Participant

    @capexpe

    Hello BP-developers,

    I also want to thank you for maintaining and developing Buddypress!
    We have been using it for almost 10 years and never had issues when updating to a new version.

    Passing to 14.0.0 was different. Thanks for the BP Classic that fixes many issues for us but as Lars we still cannot have the translation working yet.

    We used to use the buddypress-fr_FR.mo file to change the by default translation of “groupe” (French word for group) in “Expé” for expédition on our site. But changing the buddypress-fr_FR and re-uploading to wp-content/languages/plugins as we were used to do at each update, does not seem to work.

    Here is a link to our website with both public and registered users : where the blue button close to the title should be “Créer une Expé” instead of “Créer un groupe” and the other blue buttons next to each group “Rejoindre l’Expé” instead of “Rejoindre le groupe”.

    Thanks for your help.

    WP 6.6.1
    BP 14.0.0
    Theme : a minimally customed child version of Boss


    Lars Henriksen
    Participant

    @adjunkten

    @capexpe , did you find a solution ?


    capexpe
    Participant

    @capexpe

    Hello Lars

    No I haven’t found any workaround yet and haven’t heard from the buddypress team yet. They might be in vacation, so I’m Still waiting.

    I’ll keep you and the community posted.

    Dom


    capexpe
    Participant

    @capexpe

    Still not fixed with the new version BP 14.1.0 on my side.
    Any idea what to do ?


    wbcomdesigns
    Participant

    @wbcomdesigns

    @adjunkten for this string, we are able to translate easily

    Video link ah seems used different account to post the response.


    wbcomdesigns
    Participant

    @wbcomdesigns

    @capexpe try to resync the strings with latest pot file, any screenshot will be help to double check if those specific strings are getting translated or not

    Hi @capexpe

    I believe we’ve improved this part actually in 14.0, see https://buddypress.trac.wordpress.org/changeset/13936.

    You shouldn’t put your custom language into /wp-content/languages/plugins because it will be replaced by the official translation after it has been updated by the Polyglots team.

    Custom language files for BuddyPress should be in one of the locations we are looking for:
    /wp-content/languages/plugins/buddypress
    /wp-content/languages/buddypress
    /wp-content/languages

    More informations are available from this documentation page: https://github.com/buddypress/buddypress/blob/master/docs/user/advanced/texts.md

    I’ve just tested renaming “Groupes” with “Expé” in custom fr_FR translation files I’ve included in the /wp-content/languages/plugins/buddypress folder:
    /wp-content/languages/plugins/buddypress/buddypress-fr_FR.po
    /wp-content/languages/plugins/buddypress/buddypress-fr_FR.mo

    And it’s behaving the way it should, see screenshot below:
    Screenshot


    @adjunkten
    I have no idea how Loco translate deals with translation files, but if you put their generated alternative language files at one of the three locations I listed above making sure they respect the WordPress default way of naming these, it should also fix your issue. Here’s the translated message for the “members-only” login page.

    Restriced area


    capexpe
    Participant

    @capexpe

    But Mathieu for your info, if I put the buddypress-fr_FR.mo file in /wp-content/languages/plugins/ as I did before, it does not work.

    Here is what we get

    with .mo file in /wp-content/languages/plugins

    While we should have

    Corret result (see blue button) with .mo file in /wp-content/languages/

    I haven’t tried to put the .mo file in /wp-content/languages/plugins/buddypress/

    Thanks for your help and reactivity. It now works for me, as I said before, when I simply put the .mo file in /wp-content/languages/
    We can close this thread

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar