final public function parseRunningConcrete5($translations = null, $subParsersFilter = false)
    {
        if (!is_object($translations)) {
            $translations = new \Gettext\Translations();
        }
        $runningVersion = '';
        if (defined('\C5_EXECUTE') && defined('\APP_VERSION') && is_string(\APP_VERSION)) {
            $runningVersion = \APP_VERSION;
        }
        if ($runningVersion === '') {
            throw new \Exception('Unable to determine the current working directory');
        }
        $this->parseRunningConcrete5Do($translations, $runningVersion, $subParsersFilter);

        return $translations;
    }
final public function parseRunningConcrete5($translations = null, $subParsersFilter = false)
    {
        if (!is_object($translations)) {
            $translations = new \Gettext\Translations();
        }
        $runningVersion = '';
        if (defined('\C5_EXECUTE') && defined('\APP_VERSION') && is_string(\APP_VERSION)) {
            $runningVersion = \APP_VERSION;
        }
        if ($runningVersion === '') {
            throw new \Exception('Unable to determine the current working directory');
        }
        $this->parseRunningConcrete5Do($translations, $runningVersion, $subParsersFilter);

        return $translations;
    }
final public function parseRunningConcrete5 ( $ translations = null , $ subParsersFilter = false ) { if ( ! is_object ( $ translations ) ) { $ translations = new \ Gettext \ Translations ( ) ; } $ runningVersion = '' ; if ( defined ( '\C5_EXECUTE' ) && defined ( '\APP_VERSION' ) && is_string ( \ APP_VERSION ) ) { $ runningVersion = \ APP_VERSION ; } if ( $ runningVersion === '' ) { throw new \ Exception ( 'Unable to determine the current working directory' ) ; } $ this -> parseRunningConcrete5Do ( $ translations , $ runningVersion , $ subParsersFilter ) ; return $ translations ; }
Extracts translations from a running concrete5 instance.

@param \Gettext\Translations|null=null $translations     The translations object where the translatable strings will be added (if null we'll create a new Translations instance)
@param array|false                     $subParsersFilter A list of sub-parsers handles (set to false to use all the sub-parsers)

@throws \Exception Throws an \Exception in case of errors

@return \Gettext\Translations
Extracts translations from a running concrete5 instance .