diff --git a/translations/translationtool/src/translationtool.php b/translations/translationtool/src/translationtool.php index 3a91924..eba7e7f 100644 --- a/translations/translationtool/src/translationtool.php +++ b/translations/translationtool/src/translationtool.php @@ -145,7 +145,7 @@ public function createNextcloudFiles(): void { $translations = Gettext\Translations::fromPoFile($poFile); $strings = []; - $plurals = $translations->getHeader('Plural-Forms'); + $plurals = $translations->getHeader('Plural-Forms') ?? 'nplurals=2; plural=(n != 1);'; foreach ($translations as $translation) { if (!$translation->hasTranslation()) { diff --git a/translations/translationtool/translationtool.phar b/translations/translationtool/translationtool.phar index 22fcfaf..3f6c4d8 100755 Binary files a/translations/translationtool/translationtool.phar and b/translations/translationtool/translationtool.phar differ