function gettext($string)
    {
        global $PPHP;
        $req = grab('request');

        $default = $PPHP['config']['global']['default_lang'];
        $current = $req['lang'];

        $res = $string;
        try {
            if (self::$_gettext !== null) {
                $res = self::$_gettext->gettext($string);
            };
        } catch (\Exception $e) {
            echo $e->getMessage();
        };
        return $res;
    }
function gettext($string)
    {
        global $PPHP;
        $req = grab('request');

        $default = $PPHP['config']['global']['default_lang'];
        $current = $req['lang'];

        $res = $string;
        try {
            if (self::$_gettext !== null) {
                $res = self::$_gettext->gettext($string);
            };
        } catch (\Exception $e) {
            echo $e->getMessage();
        };
        return $res;
    }
function gettext ( $ string ) { global $ PPHP ; $ req = grab ( 'request' ) ; $ default = $ PPHP [ 'config' ] [ 'global' ] [ 'default_lang' ] ; $ current = $ req [ 'lang' ] ; $ res = $ string ; try { if ( self :: $ _gettext !== null ) { $ res = self :: $ _gettext -> gettext ( $ string ) ; } ; } catch ( \ Exception $ e ) { echo $ e -> getMessage ( ) ; } ; return $ res ; }
Simple no-plurals translation lookup in config.ini

@param string $string String

@return string Translated string in current locale
Simple no - plurals translation lookup in config . ini