Filters the singular or plural form of a string with gettext context.
$translation, $single, $plural, $number, $context, $domain
Sortie :
@param string $translation Translated text. @param string $single The text to be used if the number is singular. @param string $plural The text to be used if the number is plural. @param int $number The number to compare against to use either the singular or plural form. @param string $context Context information for the translators. @param string $domain Text domain. Unique identifier for retrieving translated strings.
// Modifier la valeur avec le filtre 'ngettext_with_context'
add_filter('ngettext_with_context', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($translation) {
// Modifier la valeur
return $translation;
}
Chargement des actualités...