Skip to content

Commit

Permalink
fixed global functions #86
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Nov 11, 2015
1 parent 6162ad2 commit 8d36395
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/translator_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function p__($context, $original)
*/
function d__($domain, $original)
{
$text = BaseTranslator::dgettext($domain, $original);
$text = BaseTranslator::$current->dgettext($domain, $original);

if (func_num_args() === 2) {
return $text;
Expand All @@ -97,7 +97,7 @@ function d__($domain, $original)
*/
function dp__($domain, $context, $original)
{
$text = BaseTranslator::dpgettext($domain, $context, $original);
$text = BaseTranslator::$current->dpgettext($domain, $context, $original);

if (func_num_args() === 3) {
return $text;
Expand All @@ -121,7 +121,7 @@ function dp__($domain, $context, $original)
*/
function dnp__($domain, $context, $original, $plural, $value)
{
$text = BaseTranslator::dnpgettext($domain, $context, $original, $plural, $value);
$text = BaseTranslator::$current->dnpgettext($domain, $context, $original, $plural, $value);

if (func_num_args() === 5) {
return $text;
Expand Down

0 comments on commit 8d36395

Please sign in to comment.