There is a little mistake on the format_plural() page. At the example with additional replacements is a unnecessary bracket.
array('%old-type' => $info->old_type, '%new-type' => $info->new_type)));
fixed:
array('%old-type' => $info->old_type, '%new-type' => $info->new_type));
http://api.drupal.org/api/drupal/includes%21common.inc/function/format_p...
The failure is also on the drupal 6 http://api.drupal.org/api/drupal/includes%21common.inc/function/format_p... and drupal 8
http://api.drupal.org/api/drupal/core%21includes%21common.inc/function/f... site
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | format_plural-1783348-3.patch | 615 bytes | jfhovinne |
Comments
Comment #1
Anonymous (not verified) commentedSo, this needs fixed in the 8.x-dev version and backported once resolved.
Comment #2
jhodgdonThanks! Just needs a patch...
Comment #3
jfhovinne commentedHere it is.
Comment #4
lucascaro commentedSeems legit, RTBC?
Comment #5
javi-er commentedThe patch seems fine.
Comment #6
jhodgdonThanks! Committed to 8.x and 7.x.