public function getTranslations($lang)
    {
        $path = $this->getTranslationPathBaseDirectory('lang', $lang);

        if (!is_readable($path)) {
            return array();
        }

        $data = file_get_contents($path);
        $translations = json_decode($data, true);

        return $translations;
    }
public function getTranslations($lang)
    {
        $path = $this->getTranslationPathBaseDirectory('lang', $lang);

        if (!is_readable($path)) {
            return array();
        }

        $data = file_get_contents($path);
        $translations = json_decode($data, true);

        return $translations;
    }
public function getTranslations ( $ lang ) { $ path = $ this -> getTranslationPathBaseDirectory ( 'lang' , $ lang ) ; if ( ! is_readable ( $ path ) ) { return array ( ) ; } $ data = file_get_contents ( $ path ) ; $ translations = json_decode ( $ data , true ) ; return $ translations ; }
Get translations from file

@param  string $lang ISO 639-1 alpha-2 language code
@throws Exception
@return array   Array of translations ( plugin => ( key => translated string ) )
Get translations from file