• Resolved mainosmies

    (@mainosmies)


    I translated Watu public visible strings to finnish but one button remains in english. I have selected “Correct Answer Display” and first button “Show answer” translates fine but after that, in screen where answer is visible, there stands button “Next” and I can’t figure where to change it. No “Next” in po-file without translate and no luck finding it in code. When everything else is in finnish this is a bit annoying…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bob

    (@prasunsen)

    I have added it in the .pot, you should be able to see “Next >” now

    Thread Starter mainosmies

    (@mainosmies)

    Wow, that was fast, thanks. I see “Next >” in pot now but even new translated .mo and .po files in server does not change the text in “Next >” button. I tested translating “show answer” with multiple ways and it changed everytime I uploaded updated files but Next > did not.

    Plugin Author Bob

    (@prasunsen)

    Cleanup your cache, maybe the Javascript is cached. I really don’t see how it’s possible not to get translated and have no idea what else to do.

    Thread Starter mainosmies

    (@mainosmies)

    No luck with cache. Can you tell which file has this problematic button code, if I try to hardcode translation. I also thought js to change value but input type & ID are same as “show answer” button so coudn’t target it.
    This is my inspect from “Show answer” button, value is translated ok
    <input type=”button” id=”show-answer” value=”Näytä vastaus”>
    and this is inspect after answer is shown and Next-button is visible
    <input type=”button” id=”show-answer” value=”Next >”>

    Plugin Author Bob

    (@prasunsen)

    script.js line 130:

    jQuery("#show-answer").val(watu_i18n.next_q);

    Thread Starter mainosmies

    (@mainosmies)

    Hardcoded now and works, a little bit extra work to change it with every update but worth it, thanks again.

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

The topic ‘Translation problem’ is closed to new replies.