Ticket #11404: 11404.diff
File 11404.diff, 2.5 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/dashboard.php
260 260 261 261 // Approved Comments 262 262 $num = '<span class="approved-count">' . number_format_i18n($num_comm->approved) . '</span>'; 263 $text = _n c( 'Approved|Right Now', 'Approved', $num_comm->approved);263 $text = _nx( 'Approved', 'Approved', $num_comm->approved, 'Right Now' ); 264 264 if ( current_user_can( 'moderate_comments' ) ) { 265 265 $num = "<a href='edit-comments.php?comment_status=approved'>$num</a>"; 266 266 $text = "<a class='approved' href='edit-comments.php?comment_status=approved'>$text</a>"; -
wp-includes/deprecated.php
1801 1801 * 1802 1802 * @since 2.2.0 1803 1803 * @deprecated 2.9.0 1804 * @deprecated Use _x() 1805 * @see _x() 1804 1806 * 1805 1807 * @param string $text Text to translate 1806 1808 * @param string $domain Optional. Domain to retrieve the translated text … … 1810 1812 _deprecated_function(__FUNCTION__, '2.9', '_x' ); 1811 1813 return translate_with_context( $text, $domain ); 1812 1814 } 1815 1816 /** 1817 * A version of _n(), which supports contexts. 1818 * Strips everything from the translation after the last bar. 1819 * 1820 * @since 2.7.0 1821 * @deprecated 2.9.0 1822 * @deprecated Use _nx() 1823 * @see _nx() 1824 * @see _n() For parameters. 1825 * @see _c() For parameters. _c() is deprecated. 1826 * 1827 */ 1828 function _nc( $single, $plural, $number, $domain = 'default' ) { 1829 _deprecated_function(__FUNCTION__, '2.9', '_nx' ); 1830 return before_last_bar( _n( $single, $plural, $number, $domain ) ); 1831 } 1813 1832 ?> 1833 No newline at end of file -
wp-includes/l10n.php
239 239 } 240 240 241 241 /** 242 * @see _n() A version of _n(), which supports contexts -- 243 * strips everything from the translation after the last bar 242 * A hybrid of _n() and _x(). It supports contexts and plurals. 244 243 * 244 * @see _n() 245 * @see _x() 246 * 245 247 */ 246 function _nc( $single, $plural, $number, $domain = 'default' ) {247 return before_last_bar( _n( $single, $plural, $number, $domain ) );248 }249 250 248 function _nx($single, $plural, $number, $context, $domain = 'default') { 251 249 $translations = &get_translations_for_domain( $domain ); 252 250 $translation = $translations->translate_plural( $single, $plural, $number, $context );