src/Graviton/I18nBundle/Listener/I18nRqlParsingListener.php
private function getAllPossibleTranslatableStrings()
    {
        $matchingTranslations = [];

        // is it a glob?
        if ($this->node->getValue() instanceof \Xiag\Rql\Parser\DataType\Glob) {
            $userValue = $this->node->getValue()->toRegex();
            $useWildcard = true;
        } else {
            $userValue = $this->node->getValue();
            $useWildcard = false;
        }

        $matchingTranslatables = $this->intUtils->findMatchingTranslatables(
            $userValue,
            $this->getClientSearchLanguage(),
            $useWildcard
        );

        foreach ($matchingTranslatables as $translatable) {
            $originalString = $translatable->getOriginal();
            if (!empty($originalString)) {
                $matchingTranslations[] = $originalString;
            }
        }

        return array_unique($matchingTranslations);
    }
private function getAllPossibleTranslatableStrings()
    {
        $matchingTranslations = [];

        // is it a glob?
        if ($this->node->getValue() instanceof \Xiag\Rql\Parser\DataType\Glob) {
            $userValue = $this->node->getValue()->toRegex();
            $useWildcard = true;
        } else {
            $userValue = $this->node->getValue();
            $useWildcard = false;
        }

        $matchingTranslatables = $this->intUtils->findMatchingTranslatables(
            $userValue,
            $this->getClientSearchLanguage(),
            $useWildcard
        );

        foreach ($matchingTranslatables as $translatable) {
            $originalString = $translatable->getOriginal();
            if (!empty($originalString)) {
                $matchingTranslations[] = $originalString;
            }
        }

        return array_unique($matchingTranslations);
    }
private function getAllPossibleTranslatableStrings ( ) { $ matchingTranslations = [ ] ; // is it a glob? if ( $ this -> node -> getValue ( ) instanceof \ Xiag \ Rql \ Parser \ DataType \ Glob ) { $ userValue = $ this -> node -> getValue ( ) -> toRegex ( ) ; $ useWildcard = true ; } else { $ userValue = $ this -> node -> getValue ( ) ; $ useWildcard = false ; } $ matchingTranslatables = $ this -> intUtils -> findMatchingTranslatables ( $ userValue , $ this -> getClientSearchLanguage ( ) , $ useWildcard ) ; foreach ( $ matchingTranslatables as $ translatable ) { $ originalString = $ translatable -> getOriginal ( ) ; if ( ! empty ( $ originalString ) ) { $ matchingTranslations [ ] = $ originalString ; } } return array_unique ( $ matchingTranslations ) ; }
Looks up all matching Translatables and returns them uniquified

@return array matching english strings
Looks up all matching Translatables and returns them uniquified