Problem

String ID 1989743 (!cnt vote / !cnt votes) cannot be translated as seen in the attached image.

This string is used only in fivestar.theme.inc file and the code is:

...
      // We don't directly substitute $votes (i.e. use '@count') in format_plural,
      // because it has a span around it which is not translatable.
      $votes_str = format_plural($votes, '!cnt vote', '!cnt votes', array(
        '!cnt' => '<span ' . $rating_count_microdata . '>' . intval($votes) . '</span>'));
...

Also imho votes_str should better be defined not as
format_plural($votes, '!cnt vote', '!cnt votes'...
but as
format_plural($votes, '1 vote', '!cnt votes'...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sahin created an issue. See original summary.

cosolom’s picture

Status: Active » Needs review
FileSize
854 bytes

We can't use
format_plural($votes, '1 vote', '!cnt votes'....
because we will lost microdata info in this case.
More right will be replace this (in fivestar.theme.inc)

$votes_str = format_plural($votes, '1 vote', '!cnt votes', array(
        '!cnt' => '<span ' . $rating_count_microdata . '>' . intval($votes) . '</span>'));

with this
$votes_str = '<span ' . $rating_count_microdata . '>' . intval($votes) . '</span> ' . format_plural($votes, 'vote', 'votes');
Here is patch for the latest dev