Ticket #684 (closed malfunction: fixed)
multiline translation bugfix
|Reported by:||greg@…||Owned by:||raphael|
|Priority:||minor||Milestone:||ispCP ω 1.0 - RC3|
|Component:||Frontend (GUI)||Version:||ispCP ω nightly build|
|Severity:||Keywords:||language line break|
Translations are not working in the gui when the text includes "\n"
The line break is encoded as the two characters into the language text file and is imported as is into the sql database. Then the SQL query from the tr() function never match.
I have two solutions to submit :
- convert all "\n" to "
n" before doing the query (the \ character need to be escaped) and then convert all "
n" to "\n" in the result
- maybe better is to convert the text language file when inserting into the database ('\n' characters should become real "\n")
I have made a patch for each bugfix (based upon the 17/09/2007 nightly so r806 version)