original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Return the translations for the given resource and language