When I add the Dutch language I get the following errors:

The language Dutch has been created and can now be used. More information is available on the help screen.
7 translation files imported for the enabled modules.
The translation file theme.nl.po contains an error: the plural formula could not be parsed.
The translation file includes.nl.po contains an error: the plural formula could not be parsed.
The translation file date_api.nl.po contains an error: the plural formula could not be parsed.
The translation file general.nl.po contains an error: the plural formula could not be parsed.

they all seem to be date module translation files. With another language, like French for example, I don't get these errors.

(PHP Version 5.2.9)

CommentFileSizeAuthor
#4 date.patch2.46 KBseutje

Comments

Herman Hiddema’s picture

Each of those .nl.po files contains the following line:
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

Which should be:
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

(Compare other translations).

karens’s picture

Status: Active » Fixed

Fix committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

seutje’s picture

StatusFileSize
new2.46 KB

it was probably my PO editor that screwed it up.

I grabbed the DRUPAL-6--2 and noticed it was set to (n>1) so I changed it to (n != 1) so plurals apply for 0 (zero) values aswell

once again, sorry my po editor screwed that up, and even more sorry I didn't notice till now :x

seutje’s picture

Title: Error when enabling Dutch translation. » Plural-Forms incorrect in Dutch translation.
Status: Closed (fixed) » Needs review

changing status and title

karens’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -i18n

Automatically closed -- issue fixed for 2 weeks with no activity.