• Resolved maksanse

    (@maksanse)


    Hello,
    I just noticed your translation files may not be working correctly anymore. Are you aware of any trouble with it ?

    More details about my situation (I use last versions of your plugin & bbpress) :

    1. I use LocoTranslate to customize my website language
    2. In the past, I was working with bbpress translation files directly, and everything was working fine when editing bbpress-fr_FR.po in custom location
    3. About 1 year ago, your translation files took over the bbpress one (we discussed that in this support topic and you told me it was because your plugin modifies some template files)
      -> I made the necessary changes in your .po file at this time
    4. Today, I noticed the “Notify me of follow-up replies via email” is not translated anymore with your file (and the fallback translation seems to be bbpress translation files (but in system location instead of custom location which should be prioritary used here).

    Is there anything I can do to have either your translation file or bbpress one (in custom location) work again ?

    Thank you for your help ??
    Kind regards

Viewing 15 replies - 16 through 30 (of 40 total)
  • Plugin Author Robin W

    (@robin-w)

    thanks, I have set up a test site like yours and I can replicate the problem you have.

    Now I just have to work out why ??

    Thread Starter maksanse

    (@maksanse)

    Thank you ??
    I hope it will be as easy as possible for you to find a solution ??

    Best regards

    Plugin Author Robin W

    (@robin-w)

    ok, I have spent nearly 3 hours looking at this problem, and changing code within my plugin to try and identify what is causing the issue, but with no success.

    Given that I do not know why loco chooses one file over another (custom vs system) and what stops that happening, I cannot go any further.

    What you might want to do to at least have a workaround is to generate your copy, but then delete the original system and copy your custom across to system. That way you have the same file in both places. If bbpress gets updated (and that is rare) it is a simple case to copy your custom back to system to get back to where you were

    That is the best I can suggest – sorry

    Thread Starter maksanse

    (@maksanse)

    Ok, thank you for your time ??

    I will try to find another workaround directly with LocoTranslate to avoid the manual task through time.

    Will keep you updated if any idea come up on that topic.

    Kind regards

    Plugin Author Robin W

    (@robin-w)

    quite happy to help them or you if they need Further info or testing

    Thread Starter maksanse

    (@maksanse)

    The author gave me this info :

    If it’s requesting a “bbpress” translation?before Loco Translate has loaded, then the?LoadHelper?will not run. This may cause later (well behaved) translation requests to skip the loading stage.

    Does that give ideas of what the issue could be ?

    Thread Starter maksanse

    (@maksanse)

    Hello Robin,
    Hope you and the lambs are good ??

    Did you get a chance to have a look to my above answer ?

    (The “author” I mentioned above is LocoTranslate Plugin’s author, and he says that if a plugin request bbpress translation earlier than LocoTranslate, it may break the normal translation process).

    Kind regards

    Plugin Author Robin W

    (@robin-w)

    sorry, completely missed this, let me take a look

    Plugin Author Robin W

    (@robin-w)

    ok, so are you able to modify and ftp files? It would be far quicker for you to try something for me, than for me to refamiliarise myself with how to do the tests.

    Thread Starter maksanse

    (@maksanse)

    I totally can make a test / replace a source file and tell you the result ??

    Plugin Author Robin W

    (@robin-w)

    ok, so go to

    wp-content/plugins/bbp-stype-pack/bbp-style-pack.php

    copy this file to your computer

    go to line 85 and find

    function bbp_style_pack_init() {
            load_plugin_textdomain('bbp-style-pack', false, basename( dirname( __FILE__ ) ) . '/languages' );
            //load the plugin stuff
            bsp_load_plugin() ;
    }

    change this to

    function bbp_style_pack_init() {
    		//load the plugin stuff
    		bsp_load_plugin() ;
            load_plugin_textdomain('bbp-style-pack', false, basename( dirname( __FILE__ ) ) . '/languages' );
     }

    and then upload it back

    and see if this makes a difference

    Thread Starter maksanse

    (@maksanse)

    Thank you for the code.
    I did test the change and the issue persists ??

    Plugin Author Robin W

    (@robin-w)

    thanks, you can put it back as it was.

    Is it just this phrase that is not working, or is it other ones as well?

    Thread Starter maksanse

    (@maksanse)

    Thank YOU for your work !

    All bbpress translations have this issue (I focus on this one because I have different kind of notifications for my forum).

    Thread Starter maksanse

    (@maksanse)

    Hello Robin,

    I come back to you about this translation issue because I am stucked here.
    I was hoping deleting the bbpress “system” po file for the translation would force the system to use the “custom” translation file until the next bbpress update (what is rare as you said).

    But this system file is actually automatically recreated by wordpress, which makes me loose my translation every time.

    Would it be possible to use YOUR translation file again as it was working in the past ?

    Best regards ??

Viewing 15 replies - 16 through 30 (of 40 total)
  • The topic ‘Translation issue’ is closed to new replies.