Multi-line strings are not replaced by translated strings
-
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]
- The topic ‘Multi-line strings are not replaced by translated strings’ is closed to new replies.