• Resolved madmax4ever

    (@madmax4ever)


    It sounds strange but it’s real: the multi-line strings inside sprintf(__( <string> )) (see Upsell.php), even translated in an other language (weither the translated string is also multi-line or not), is not displayed in this other language.

    I turned those multi-line strings into single-line ones, updated the .pot and my translation files, translated those strings again (in single-line or multi-line, on this side, it doesn’t matter: it seems function __( $string ) doesn’t find a multi-line match whereas once the match is found, it can return a multi-line string) and it worked.

    Could you switch you multi-line strings to single-line ones?

    PS: I don’t know where is the limitation. Function __()? Files format? Carriage return used?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @madmax4ever,

    May I know which string that you try to translate but doesn’t work?

    According to the page you shared, it seems the Upsell part?

    It works fine for me:

    Original: https://snipboard.io/vjrZYt.jpg
    Translated: https://snipboard.io/QKxOfc.jpg

    Thread Starter madmax4ever

    (@madmax4ever)

    Hi @fauzanade,
    Becasue of your reply, I checked more things. And you’re absolutely right, it works!

    This “bug” is not yours at all, it’s a conflict with another plugin so I’ll post my discovery on the concerned plugin’s support.

    Sorry for that and thank you for the time you spent checking ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi-line strings are not replaced by translated strings’ is closed to new replies.