• Resolved dana_cz

    (@dana_cz)


    Hi,
    the issue that I had before is still occuring in the new plugin versions. In the past I could fix it by the suggested fix in the other post after each update.

    I use TranslatePress and two select options fields. The label for both shows up as %s, therefore by changing one, the other one will be the same when translated.

    This is really frustrating that it’s still happening after almost two years and now I can’t even fix it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dana_cz

    (@dana_cz)

    Okay, so I figured that the frontend code changed, now the affected file is in the \templates\frontend\inputs\ and this line causes the problem:

    echo sprintf(__("%s", "ppom"), $fm->field_label())

    I switched it to:
    echo $fm->field_label()

    And now the labels are translated properly.

    Still I’d like to see a fix in the actual plugin that I don’t have to redo with every new update.

    • This reply was modified 3 years, 9 months ago by dana_cz.

    Hi @dana_cz,

    You RoCK!!

    Thanks for this info, I am going to add this fix right away.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t translate labels’ is closed to new replies.