Skip to content

Error on multiline plural-forms #20

@daroczig

Description

@daroczig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions