← Back to team overview

mahara-contributors team mailing list archive

[Bug 1958085] [NEW] Translation issue when there is more than one plural form

 

Public bug reported:

For example, Czech has two plural forms that have been translated, but
only the first one is (1) picked up in Mahara no matter how many posts
there are in a journal for example, where all plural forms have been
translated. Plural forms were implemented in bug #901051.

The plural rules for Czech: "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n":
i.e. use plural 1 for 2-4 and plural 2 for 0, 5 and more.


langpacks/cs.utf8/artefact/blog/lang/cs.utf8/artefact.blog.php

$string['nposts'] = array(

                 0 => 'Jeden příspěvek',
                 1 => '%s příspěvky,',
                 2 => '%s příspěvků'
);

$string['youhavenblog'] = array(

                 0 => 'Máte jeden deník.',
                 1 => 'Máte %d deníky.',
                 2 => 'Máte %d deníků.'

** Affects: mahara
     Importance: High
         Status: Confirmed


** Tags: translations

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1958085

Title:
  Translation issue when there is more than one plural form

Status in Mahara:
  Confirmed

Bug description:
  For example, Czech has two plural forms that have been translated, but
  only the first one is (1) picked up in Mahara no matter how many posts
  there are in a journal for example, where all plural forms have been
  translated. Plural forms were implemented in bug #901051.

  The plural rules for Czech: "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n":
  i.e. use plural 1 for 2-4 and plural 2 for 0, 5 and more.

  
  langpacks/cs.utf8/artefact/blog/lang/cs.utf8/artefact.blog.php

  $string['nposts'] = array(

                   0 => 'Jeden příspěvek',
                   1 => '%s příspěvky,',
                   2 => '%s příspěvků'
  );

  $string['youhavenblog'] = array(

                   0 => 'Máte jeden deník.',
                   1 => 'Máte %d deníky.',
                   2 => 'Máte %d deníků.'

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1958085/+subscriptions



Follow ups