Go to the source code of this file.
|
| __ ($original) |
| Returns the translation of a string. More...
|
|
| n__ ($original, $plural, $value) |
| Returns the singular/plural translation of a string. More...
|
|
| p__ ($context, $original) |
| Returns the translation of a string in a specific context. More...
|
|
| d__ ($domain, $original) |
| Returns the translation of a string in a specific domain. More...
|
|
| dp__ ($domain, $context, $original) |
| Returns the translation of a string in a specific domain and context. More...
|
|
| np__ ($context, $original, $plural, $value) |
| Returns the singular/plural translation of a string in a specific context. More...
|
|
| dnp__ ($domain, $context, $original, $plural, $value) |
| Returns the singular/plural translation of a string in a specific domain and context. More...
|
|
| __e () |
| Prints function result. More...
|
|
| n__e () |
| Prints function result. More...
|
|
| p__e () |
| Prints function result. More...
|
|
| d__e () |
| Prints function result. More...
|
|
| dp__e () |
| Prints function result. More...
|
|
| dnp__e () |
| Prints function result. More...
|
|
◆ __()
Returns the translation of a string.
- Parameters
-
- Returns
- string
Definition at line 12 of file translator_functions.php.
References $current, and $text.
16 if (func_num_args() === 1) {
20 $args = array_slice(func_get_args(), 1);
22 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
◆ __e()
◆ d__()
d__ |
( |
|
$domain, |
|
|
|
$original |
|
) |
| |
Returns the translation of a string in a specific domain.
- Parameters
-
string | $domain | |
string | $original | |
- Returns
- string
Definition at line 76 of file translator_functions.php.
References $current, $domain, and $text.
80 if (func_num_args() === 2) {
84 $args = array_slice(func_get_args(), 2);
86 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
if(!array_key_exists('domain', $_REQUEST)) $domain
◆ d__e()
◆ dnp__()
dnp__ |
( |
|
$domain, |
|
|
|
$context, |
|
|
|
$original, |
|
|
|
$plural, |
|
|
|
$value |
|
) |
| |
Returns the singular/plural translation of a string in a specific domain and context.
- Parameters
-
string | $domain | |
string | $context | |
string | $original | |
string | $plural | |
string | $value | |
- Returns
- string
Definition at line 145 of file translator_functions.php.
References $context, $current, $domain, and $text.
149 if (func_num_args() === 5) {
153 $args = array_slice(func_get_args(), 5);
155 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
if(!array_key_exists('domain', $_REQUEST)) $domain
◆ dnp__e()
◆ dp__()
dp__ |
( |
|
$domain, |
|
|
|
$context, |
|
|
|
$original |
|
) |
| |
Returns the translation of a string in a specific domain and context.
- Parameters
-
string | $domain | |
string | $context | |
string | $original | |
- Returns
- string
Definition at line 98 of file translator_functions.php.
References $context, $current, $domain, and $text.
102 if (func_num_args() === 3) {
106 $args = array_slice(func_get_args(), 3);
108 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
if(!array_key_exists('domain', $_REQUEST)) $domain
◆ dp__e()
◆ n__()
n__ |
( |
|
$original, |
|
|
|
$plural, |
|
|
|
$value |
|
) |
| |
Returns the singular/plural translation of a string.
- Parameters
-
string | $original | |
string | $plural | |
string | $value | |
- Returns
- string
Definition at line 34 of file translator_functions.php.
References $current, and $text.
38 if (func_num_args() === 3) {
42 $args = array_slice(func_get_args(), 3);
44 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
◆ n__e()
◆ np__()
np__ |
( |
|
$context, |
|
|
|
$original, |
|
|
|
$plural, |
|
|
|
$value |
|
) |
| |
Returns the singular/plural translation of a string in a specific context.
- Parameters
-
string | $context | |
string | $original | |
string | $plural | |
string | $value | |
- Returns
- string
Definition at line 121 of file translator_functions.php.
References $context, $current, and $text.
125 if (func_num_args() === 4) {
129 $args = array_slice(func_get_args(), 4);
131 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
◆ p__()
p__ |
( |
|
$context, |
|
|
|
$original |
|
) |
| |
Returns the translation of a string in a specific context.
- Parameters
-
string | $context | |
string | $original | |
- Returns
- string
Definition at line 55 of file translator_functions.php.
References $context, $current, and $text.
59 if (func_num_args() === 2) {
63 $args = array_slice(func_get_args(), 2);
65 return vsprintf(
$text, is_array($args[0]) ? $args[0] : $args);
◆ p__e()