Go to the source code of this file.
Namespaces |
| namespace | tool |
Enumerations |
| enum | INSTALLATION_OF_SELECTED_LANG |
| enum | DELETION_OF_SELECTED_LANG |
| enum | UPDATE_ALL_LANG |
Functions |
| | is_installed_lang ($lang, $md5check) |
Variables |
| if(empty($CFG->langotherroot)) | $mode = optional_param('mode', 0, PARAM_INT) |
| | $pack = optional_param_array('pack', array(), PARAM_SAFEDIR) |
| | $uninstalllang = optional_param('uninstalllang', '', PARAM_LANG) |
| | $confirm = optional_param('confirm', 0, PARAM_BOOL) |
| | $purgecaches = optional_param('purgecaches', false, PARAM_BOOL) |
| | $notice_ok = array() |
| | $notice_error = array() |
| | $installedlangs = get_string_manager()->get_list_of_translations(true) |
| | $missingparents = array() |
foreach($installedlangs as
$installedlang=> $unused) | $installer = new lang_installer() |
| | $url = new moodle_url('/admin/tool/langimport/index.php', array('mode' => DELETION_OF_SELECTED_LANG)) |
| | if ($remote) |
| | $options = array() |
Enumeration Type Documentation
Function Documentation
checks the md5 of the zip file, grabbed from download.moodle.org, against the md5 of the local language file from last update
- Parameters:
-
| string | $lang | |
| string | $md5check | |
- Returns:
- bool
Definition at line 346 of file index.php.
Variable Documentation
| $missingparents = array() |
| foreach ($availablelangs as $alang) if(!empty($options)) |