This is wrong:

format_plural(count($failed_emails), 'The following recipient is already a member:', 'The following recipients are already members:');

should be:

if (count($failed_emails) == 1) {
  t('The following recipient is already a member:');
}
else {
  t('The following recipients are already members:');
}

The problem is that for example in Russian language when the $failed_emails == 21 or 31 .. the singular text 'The following recipient is already a member' will be displayed (translated into Russian).

for example here
http://localize.drupal.org/translate/languages/ru/translate?search=1%20i...
you can see than '1 invitation' is translated as '@count приглашение'
so the singular form does not mean that the count equals 1, it means the first type of formatting for texts with numeric values

Comments

pasqualle’s picture

also colon should not be part of t()
use:

t('The following recipient is already a member') . ':';

but that is just a recommendation not a real bug.

pasqualle’s picture

andypost’s picture

+1 I think that singular form should contain @count as well

andypost’s picture

Issue summary: View changes

fix wrong example

ryan osītis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)