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

Error on multiline plural-forms #20

Open
daroczig opened this issue Sep 21, 2022 · 0 comments
Open

Error on multiline plural-forms #20

daroczig opened this issue Sep 21, 2022 · 0 comments

Comments

@daroczig
Copy link

See e.g. the below header:

msgid ""
msgstr ""
"Project-Id-Version: R 4.2.0\n"
"Report-Msgid-Bugs-To: bugs.r-project.org\n"
"POT-Creation-Date: 2022-01-14 11:27\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"

The last two lines are the Plural-Forms definition broken into two lines as per the PO file def to fit 80 chars on a line, see e.g. https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html

Would it be possible to support reading these files? Currently it failed with There should be exactly one msgid found in each block. Are you missing a blank line? as per read.R.

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