original_string: public function refresh($langcode = null)
      {
          $result = null;
          $this->hook->attach('translation.refresh.before', $langcode, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          gplcart_file_empty($this->getCompiledDirectory($langcode), array('csv'));
          gplcart_static_clear();
  
          $this->prepareFiles($langcode);
          $this->mergeModuleTranslations($langcode);
  
          $result = true;
          $this->hook->attach('translation.refresh.after', $langcode, $result, $this);
          return $result;
      }
code: public function refresh($langcode = null)
      {
          $result = null;
          $this->hook->attach('translation.refresh.before', $langcode, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          gplcart_file_empty($this->getCompiledDirectory($langcode), array('csv'));
          gplcart_static_clear();
  
          $this->prepareFiles($langcode);
          $this->mergeModuleTranslations($langcode);
  
          $result = true;
          $this->hook->attach('translation.refresh.after', $langcode, $result, $this);
          return $result;
      }
code_tokens: public function refresh ( $ langcode = null ) { $ result = null ; $ this -> hook -> attach ( 'translation.refresh.before' , $ langcode , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } gplcart_file_empty ( $ this -> getCompiledDirectory ( $ langcode ) , array ( 'csv' ) ) ; gplcart_static_clear ( ) ; $ this -> prepareFiles ( $ langcode ) ; $ this -> mergeModuleTranslations ( $ langcode ) ; $ result = true ; $ this -> hook -> attach ( 'translation.refresh.after' , $ langcode , $ result , $ this ) ; return $ result ; }
docstring: Removes cached translation files
  @param string|null $langcode
  @return bool
docstring_tokens: Removes cached translation files