Skip to content

Commit 8d36395

Browse files
committed
fixed global functions #86
1 parent 6162ad2 commit 8d36395

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/translator_functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function p__($context, $original)
7575
*/
7676
function d__($domain, $original)
7777
{
78-
$text = BaseTranslator::dgettext($domain, $original);
78+
$text = BaseTranslator::$current->dgettext($domain, $original);
7979

8080
if (func_num_args() === 2) {
8181
return $text;
@@ -97,7 +97,7 @@ function d__($domain, $original)
9797
*/
9898
function dp__($domain, $context, $original)
9999
{
100-
$text = BaseTranslator::dpgettext($domain, $context, $original);
100+
$text = BaseTranslator::$current->dpgettext($domain, $context, $original);
101101

102102
if (func_num_args() === 3) {
103103
return $text;
@@ -121,7 +121,7 @@ function dp__($domain, $context, $original)
121121
*/
122122
function dnp__($domain, $context, $original, $plural, $value)
123123
{
124-
$text = BaseTranslator::dnpgettext($domain, $context, $original, $plural, $value);
124+
$text = BaseTranslator::$current->dnpgettext($domain, $context, $original, $plural, $value);
125125

126126
if (func_num_args() === 5) {
127127
return $text;

0 commit comments

Comments
 (0)