poedit, invalid nplurals value
| Project: | Translation templates for Drupal core |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | killes@www.drop.org |
| Status: | closed |
Jump to:
I am not really sure if it's a bug with the pot-files or with poedit but I thought I would report it so that someone more knowledgeable can dismiss or confirm it.
I was looking into doing a translation, since I use winxp I downloaded the latest version (1.3.1) of poedit (http://poedit.sf.net/). I can open files fine but when trying to save I get this message "invalid nplurals value", for all files.
It seams poedit has something against the lines 6 and 7 with empty values for "msgid" and "msgstr", since it works if I delete those rows. Is this a problem with poedit or with the pot-files?

#1
Are you talking about this line?
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
Or which lines 6 and 7?
#2
Lines 6 and 7 of the pot-files contains msgid="" and msgstr="", but as I don't know if this is normal or not but poedit doesn't seem to like it (or I am doing something else wrong).
# LANGUAGE translation of Drupal (modules/book.module)# Copyright YEAR NAME <EMAIL@ADDRESS>
# $Id: book-module.pot,v 1.1 2004/08/26 17:23:00 killes Exp $
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2004-08-25 18:42+0200\n"
#3
RTFM failure was the cause of the trouble.
#4
Great, mind to share the solution with the other no-brainers like me ? :)
#5
The answer is that comment #1 is correct, he most likely has an unset plural form in the header
#2 is wrong by deleting those lines he essentially deleted the header of the file, which somehow made poEdit not complain but list all header infromation.
This list of Gettext plural forms would be where to find the missing settings for the header.