Convert newlines \r\n to \n
Bug #709 reported by
Brian Sutherland
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Dafydd Harries |
Bug Description
Translations added through the web end up with newlines like \r\n rather than \n
Translations added through the web end up with newlines like \r\n rather than \n. Could rosetta please convert these newlines.
An excerpt frm our IRC logs:
jinty: "Segundo grupo, alguna descripción, este texto será descartado\r\n"
jinty: for the above translation
mgedmin: where do those \r's come from?
mgedmin: rosetta?
jinty the file was directly downloaded from rosetta
mgedmin: browsers do send CR LF characters when you add a newline to a web form
srichter: maybe someone on windows edited the file
mgedmin: I think rosetta should convert newlines to just \n
Changed in rosetta: | |
assignee: | nobody → daf |
status: | New → Fixed |
To post a comment you must log in.
This causes some translations to break msgfmt. The following tanslation was downloaded from rosetta:
#: src/schoolbell/ app/main. py:470
msgid ""
"\n"
"Perhaps another %s instance is using it?"
msgstr ""
"^M\n"
"Może inna instacja %s używja jej?"
and failed with:
src/schoolbell/ app/locales/ pl/LC_MESSAGES/ schoolbell. po:1766: `msgid' and `msgstr' entries do not both begin with '\n' app/locales/ pl/LC_MESSAGES/ schoolbell. po:1774: `msgid' and `msgstr' entries do not both begin with '\n' app/locales/ pl/LC_MESSAGES/ schoolbell. po:1790: `msgid' and `msgstr' entries do not both begin with '\n'
src/schoolbell/
src/schoolbell/
msgfmt: found 3 fatal errors