Skip to content

Commit

Permalink
Merge pull request #706 from nextcloud/fix/translation-tool
Browse files Browse the repository at this point in the history
fix(translationtool): Fallback to English plural form
  • Loading branch information
susnux authored Jan 14, 2025
2 parents 4ec011a + 5c01ad3 commit 073b746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translations/translationtool/src/translationtool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Binary file modified translations/translationtool/translationtool.phar
Binary file not shown.

0 comments on commit 073b746

Please sign in to comment.