Hi,

> I want to ask everybody that speaks a non-English language natively to provide translations in their language.

I quickly translated nl.po to de.po, but when trying to import this through /admin/settings/locale, Drupal reported:

[!] Die Übersetzungsdatei de.po ist fehlerhaft: Die Pluralformel konnte nicht verarbeitet werden.
[i] Die Übersetzung wurde erfolgreich importiert. 35 übersetzte Zeichenketten wurden zur Übersetzung hinzugefügt, 1 Zeichenketten wurden aktualisiert.

That says first, that de.po is faulty, because the plural form couldn't be processed; then it says, that importing of 35 and updating of one string(s) was successfull.

I've never worked with *.po files, so it'd be nice if someone could have a look into the attachment. If I know what has to be corrected, I'll rework the translation.

Thanks & greetings, -asb

CommentFileSizeAuthor
#2 de.zip2.01 KBasb
de.zip2.06 KBasb

Comments

xano’s picture

Title: Translation » German translation

I guess you have made the translation using PoEdit? As far as I know that program (although easy to use) always creates the following (redundant) line in *.po files causing the error you have encountered. You should simply open the *.po file in your editor and delete the following line: "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

By the way: If you are the one fixing a certain issue you may assign the issue to yourself by selecting your username in the 'Assigned' Checkbox which you can find in the form to create or to respond to an issue. As you are the one that has provided the German translation you may assign yourself to this issue.

asb’s picture

Assigned: Unassigned » asb
StatusFileSize
new2.01 KB

Hi Xano,

thanks for the quick answer. No, I'm not using PoEdit, just a plain text editor. After removing "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n", import and updating of de.po worked fine.

I corrected a few strings and attached a new version; let's see how it looks in a production environment.

Greetings- asb

xano’s picture

Status: Active » Fixed

Added and committed to 5.x-1.x-dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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