public function getTranslations($resource, $language, $raw = false)
    {
        if ($this->resourceExists($resource)) {
            $apiPath = 'project/' . $this->projectSlug . '/resource/' . $resource . '/translation/' . $language . '/?mode=onlytranslated&file';
            return $this->getApiResults($apiPath, $raw);
        }
        return null;
    }
public function getTranslations($resource, $language, $raw = false)
    {
        if ($this->resourceExists($resource)) {
            $apiPath = 'project/' . $this->projectSlug . '/resource/' . $resource . '/translation/' . $language . '/?mode=onlytranslated&file';
            return $this->getApiResults($apiPath, $raw);
        }
        return null;
    }
public function getTranslations ( $ resource , $ language , $ raw = false ) { if ( $ this -> resourceExists ( $ resource ) ) { $ apiPath = 'project/' . $ this -> projectSlug . '/resource/' . $ resource . '/translation/' . $ language . '/?mode=onlytranslated&file' ; return $ this -> getApiResults ( $ apiPath , $ raw ) ; } return null ; }
Return the translations for the given resource and language

@param string $resource e.g. piwik-base, piwik-plugin-api,...
@param string $language e.g. de, pt_BR, hy,...
@param bool $raw if true plain response wil be returned (unparsed json)
@return mixed
@throws AuthenticationFailedException
@throws Exception
Return the translations for the given resource and language