|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | editor |
Enumerations | |
| enum | CLI_SCRIPT |
Functions | |
| editor_tinymce_encode_stringline ($key, $value) | |
| ============ Utility functions ======================== | |
| editor_tinymce_parse_xml_lang ($file) | |
| editor_tinymce_get_all_strings ($lang) | |
Variables | |
| if(!debugging('', DEBUG_DEVELOPER)) | $langconversion |
| $targetlangdir = "$CFG->dirroot/lib/editor/tinymce/extra/tools/temp/langs" | |
| $tempdir = "$CFG->dirroot/lib/editor/tinymce/extra/tools/temp/tinylangs" | |
| $enfile = "$CFG->dirroot/lib/editor/tinymce/lang/en/editor_tinymce.php" | |
| if(!file_exists("$tempdir/en.xml")) | $old_strings = editor_tinymce_get_all_strings('en') |
| first update English lang pack | |
| $tweaked = array() | |
| $parsed = editor_tinymce_parse_xml_lang("$tempdir/en.xml") | |
| foreach($parsed as $key=> $value) if(!$handle=fopen($enfile, 'w')) | $header |
| $en_strings = editor_tinymce_get_all_strings('en') | |
| if(!file_exists($targetlangdir)) | $xmlfiles = new DirectoryIterator($tempdir) |
| enum CLI_SCRIPT |
Definition at line 27 of file update_lang_files.php.
| editor_tinymce_encode_stringline | ( | $ | key, |
| $ | value | ||
| ) |
============ Utility functions ========================
Definition at line 201 of file update_lang_files.php.
| editor_tinymce_get_all_strings | ( | $ | lang | ) |
| editor_tinymce_parse_xml_lang | ( | $ | file | ) |
Definition at line 205 of file update_lang_files.php.
| $en_strings = editor_tinymce_get_all_strings('en') |
Definition at line 128 of file update_lang_files.php.
Definition at line 46 of file update_lang_files.php.
<<<EOT <?php EOT
Definition at line 77 of file update_lang_files.php.
| if (!debugging('', DEBUG_DEVELOPER)) $langconversion |
array( 'nb' => 'no', 'sr' => 'sr_lt', 'ch' => false, 'zh' => false, )
Definition at line 34 of file update_lang_files.php.
| if (!file_exists("$tempdir/en.xml")) $old_strings = editor_tinymce_get_all_strings('en') |
first update English lang pack
Definition at line 53 of file update_lang_files.php.
| $parsed = editor_tinymce_parse_xml_lang("$tempdir/en.xml") |
Definition at line 60 of file update_lang_files.php.
| $targetlangdir = "$CFG->dirroot/lib/editor/tinymce/extra/tools/temp/langs" |
Definition at line 44 of file update_lang_files.php.
Definition at line 45 of file update_lang_files.php.
| $tweaked = array() |
Definition at line 57 of file update_lang_files.php.
Definition at line 133 of file update_lang_files.php.