I have translated my site into german. Therefor I exported the language file "de.po" and edited it with poEdit. After importing the data the translation für some strings e.g. "%count day", "%count week" are lost.

Comments

killes@www.drop.org’s picture

Does the PO file have a plural formula?
--
Drupal services
My Drupal services

B.GARBE’s picture

This are examples for such issues:

#: includes/common.inc:0
msgid "%count years"
msgstr ""

#: includes/common.inc:0
msgid "%count weeks"
msgstr ""

#: modules/user.module:594;597
msgid "%count guests"
msgstr ""

it's independent from poEdit, same behavior when I edit the po-file directly. after importing the po-file this translations are lost. after translation in drupal it's ok, then exporting - and translations are empty, see example.

Sanctus’s picture

I have the same problem. If I export the po file from Drupal, I can't find the plural forms (I have 3 different ones). For that I have a backup of .po file that I edit with notepad.

If I merely take po file of another exported translation, all plurals are lost :( I had to redo all localization once...

Sanctus

zorac’s picture

I sent the patch fixed this issue.
see http://drupal.org/node/73487

This patch has been tested with following Plural-Forms:

Plural-Forms: nplurals=2; plural=(n!=1);

In this case, it seems to work well.