WordPress.org

Make WordPress Core

Ticket #10540: ngettext_with_context_patch.patch

File ngettext_with_context_patch.patch, 622 bytes (added by CalebKniffen, 10 years ago)
  • l10n.php

     
    253253function _nx($single, $plural, $number, $context, $domain = 'default') {
    254254        $translations = &get_translations_for_domain( $domain );
    255255        $translation = $translations->translate_plural( $single, $plural, $number, $context );
    256         return apply_filters( 'ngettext_with_context ', $translation, $single, $plural, $number, $context, $domain );
     256        return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, $domain );
    257257}
    258258
    259259/**