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

get_po_messages should be robust to "corrupted" plural specification #293

Open
MichaelChirico opened this issue Apr 25, 2022 · 0 comments
Open

Comments

@MichaelChirico
Copy link
Owner

MichaelChirico commented Apr 25, 2022

Currently, the R-tr.po file is "corrupted" -- nplural=1; plural=0 for Turkish, but many (empty) msgstr[1] entries exist, e.g.:

https://github.com/r-devel/r-svn/blob/b7d9620c65e1924553c2e270f464cf185fb02ab4/src/library/base/po/R-tr.po#L1763-L1766

Apparently this doesn't trip up the rest of gettext as that msgstr[1] is just ignored; get_po_messages() should do the same.

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

No branches or pull requests

1 participant