Hi, I'm pretty new to module translations, however I think the German plural forms generation is not working correctly.

Whenever I create a German translation template the "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" is set to Plural-Forms: nplurals=0; plural=;\n instead of "Plural-Forms: nplurals=2; plural=(n!=1);\n" (according to German translations of other modules). Thus throwing an error when importing the file.

Comments

account-deletion-needed’s picture

Update: This only seems to happen on certain module translations, but not all the time.

gábor hojtsy’s picture

Category: bug » support
Status: Active » Closed (fixed)

You can export a half-translated template with potx which also exports the language plurals code properly from your site (if the language is installed), or you can just export a template for the specific language. All should have the right plural form, since the plural form Drupal knows about was imported before, so it should have been right. Fiddling with these formulas manually can get your to errors quickly.

Please reopen if this did not work out.