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

Unable to parse po files with multiline translations #35

Closed
msierks opened this issue Feb 9, 2015 · 3 comments
Closed

Unable to parse po files with multiline translations #35

msierks opened this issue Feb 9, 2015 · 3 comments

Comments

@msierks
Copy link

msierks commented Feb 9, 2015

When parsing msgid's and msgstr's with multiple lines, the result is an empty string.

https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

@pherrymason
Copy link
Owner

Could you provide the .po file you're having problems with?

@BenjaminPiette
Copy link

Something like this won't work:

msgid "myid"
msgstr "line1"
"line2"
"line"

Online "line1" is retrieved, but the other lines are lost.

EDIT: Sorry, that works for me. Just forgot to read other indexes than index 0 from the returned "entry".

@pherrymason
Copy link
Owner

Should be fixed in #68

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

No branches or pull requests

3 participants