Skip to:
Content
Pages
Categories
Search
Top
Bottom

Customized Translation files


  • brunov99
    Participant

    @brunov99

    Hi everyone,

    I change some translated strings in my bbprress-XX-po/mo files located in the wp/language dir. to suit my non-geek audience.
    How can these files not be overwritten during bbPress next updates?

    Thank you.
    bV

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

  • Robin W
    Moderator

    @robin-w

    hmmm… quite a puzzle

    so you could try putting your customised file here

    wp-content/languages/plugins/bbpress-fr_FR.mo

    plugins load code from only two places, but no idea which loads first, but looks like that location loads last, so it might work. but again might be overwritten by WordPress updates


    brunov99
    Participant

    @brunov99

    Thanks Robin,

    I tried the method you mentioned first (as a hack) but the files located in plugins/bbpress were not taken into account at all. So I decided to change the main po/mo files.

    Nervermind as I know now how it works I will keep my “precious” translated files in a safe place.
    bV


    Robin W
    Moderator

    @robin-w

    great – not an issue that WordPress seems to have considered – I did try and see if there was an easy way to bypass, but could not find one 🙂


    brunov99
    Participant

    @brunov99

    Thanks for trying.

    The important thing is to know how it works after we adapt. But it’s true that the WordPress team could take this into consideration which would allow for many creative alternatives. A bit like when you create a child theme without touching the original.
    bV


    Robin W
    Moderator

    @robin-w

    you can use ‘gettext’ if you haven’t too many

    gettext – The Most Useful Filter in WordPress

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