Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In modules/views_comment.inc, line 250:
$comments .= l(t('@num new', array('@num' => $new)), "node/$data->nid", NULL, NULL, 'new');
should be:
$comments .= l(format_plural($new, '1 new', '@count new'), "node/$data->nid", NULL, NULL, 'new');
In Italian it's different! E.g.: 1 new = 1 nuovo; 2 new = 2 nuovi!
From the api documentation:
Please make sure it is clear this is singular, to ease translation (e.g. use "1 new comment" instead of "1 new"). Do not use @count in the singular string.
Comment | File | Size | Author |
---|---|---|---|
#1 | views_new_comments_plurals.patch | 571 bytes | neochief |
Comments
Comment #1
neochief CreditAttribution: neochief commentedsubscribing too
for Russian is the same trouble. I've prepared the patch to fix this
Comment #2
Magnus CreditAttribution: Magnus commentedThis is still a issue in 6.x and the function is very different from 1.6 so I haven't been abled to use this patch. I think the handler for this functions lies within modules/comment/views_handler_field_node_new_comments.inc, but I haven't been abled to make any progress to fix this.
This issue could be handled through #317653.
Comment #3
dawehnerCurrently the new comments is just a number, and not a text.
So this is a feature request.
Comment #4
esmerel CreditAttribution: esmerel commentedComment #5
merlinofchaos CreditAttribution: merlinofchaos commentedSince this has gone two years and it's really just a number, I think this is never going to get fixed.