src/Pel.php
private static function dgettextWrapper($domain, $str)
    {
        if (self::$hasdgetext === null) {
            self::$hasdgetext = function_exists('dgettext');
            if (self::$hasdgetext === true) {
                bindtextdomain('pel', __DIR__ . '/locale');
            }
        }
        if (self::$hasdgetext) {
            return dgettext($domain, $str);
        } else {
            return $str;
        }
    }
private static function dgettextWrapper($domain, $str)
    {
        if (self::$hasdgetext === null) {
            self::$hasdgetext = function_exists('dgettext');
            if (self::$hasdgetext === true) {
                bindtextdomain('pel', __DIR__ . '/locale');
            }
        }
        if (self::$hasdgetext) {
            return dgettext($domain, $str);
        } else {
            return $str;
        }
    }
private static function dgettextWrapper ( $ domain , $ str ) { if ( self :: $ hasdgetext === null ) { self :: $ hasdgetext = function_exists ( 'dgettext' ) ; if ( self :: $ hasdgetext === true ) { bindtextdomain ( 'pel' , __DIR__ . '/locale' ) ; } } if ( self :: $ hasdgetext ) { return dgettext ( $ domain , $ str ) ; } else { return $ str ; } }
Warapper for dgettext.
The untranslated stub will be return in the case that dgettext is not available.

@param string $domain
@param string $str
@return string
Warapper for dgettext . The untranslated stub will be return in the case that dgettext is not available .