filtrod 2.8.0
ngettext_with_context
Opis — z kodu źródłowego
Filters the singular or plural form of a string with gettext context.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$translation | string | Translated text. |
$single | string | The text to be used if the number is singular. |
$plural | string | The text to be used if the number is plural. |
$number | int | The number to compare against to use either the singular or plural form. |
$context | string | Context information for the translators. |
$domain | string | Text domain. Unique identifier for retrieving translated strings. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ngettext_with_context', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ngettext_with_context', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii