original_string: public function is_installed_lang($lang, $md5check) {
          global $CFG;
          $md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
          if (file_exists($md5file)) {
              return (file_get_contents($md5file) == $md5check);
          }
          return false;
      }
code: public function is_installed_lang($lang, $md5check) {
          global $CFG;
          $md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
          if (file_exists($md5file)) {
              return (file_get_contents($md5file) == $md5check);
          }
          return false;
      }
code_tokens: public function is_installed_lang ( $ lang , $ md5check ) { global $ CFG ; $ md5file = $ CFG -> dataroot . '/lang/' . $ lang . '/' . $ lang . '.md5' ; if ( file_exists ( $ md5file ) ) { return ( file_get_contents ( $ md5file ) == $ md5check ) ; } return false ; }
docstring: checks the md5 of the zip file, grabbed from download.moodle.org,
  against the md5 of the local language file from last update
  @param string $lang language code
  @param string $md5check md5 to check
  @return bool true if installed
docstring_tokens: checks the md5 of the zip file grabbed from download . moodle . org against the md5 of the local language file from last update