original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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 ) )
docstring_tokens: Get translations from file