Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR line endings are escaped from PO files #44

Closed
julen opened this issue Oct 26, 2016 · 0 comments
Closed

CR line endings are escaped from PO files #44

julen opened this issue Oct 26, 2016 · 0 comments
Labels

Comments

@julen
Copy link
Contributor

julen commented Oct 26, 2016

Take a PO file such as:

msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "Foo\r"
msgstr ""

msgid "Bar\r\n"
msgstr ""

and place it in a job's source_dir, specify the parse_pot parser and define some destination_language.

Run serge localize to run a localization step, hence generating the resources to be translated, as well as the localized resources.

Both the translated and the localized resources will contain escaped \r characters, i.e. \\r, while \n characters are kept as they are. One would expect \r characters to be kept as they are too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant