Make WordPress Core


Ignore:
Timestamp:
10/29/2010 01:12:14 PM (15 years ago)
Author:
nbachiyski
Message:

Introduce and use translate_nooped_plural(). Fixes #13996

  • _n_noop() and _nx_noop() now return associative arrays for greater clarity
  • translate_nooped_plural() takes one such associative array and translates it
  • it works on both the result from _n_noop() and from _nx_noop()
  • this breaks backwards compatibility, but I doubt any plugin uses it (I will do a global grep to confirm)
  • translate_nooped_plural() is applied where applicable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/list-table-comments.php

    r16061 r16073  
    150150            */
    151151            $status_links[$status] = "<li class='$status'><a href='$link'$class>" . sprintf(
    152                 _n( $label[0], $label[1], $num_comments->$status ),
     152                translate_nooped_plural( $label, $num_comments->$status ),
    153153                number_format_i18n( $num_comments->$status )
    154154            ) . '</a>';
Note: See TracChangeset for help on using the changeset viewer.