Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/editor/tinymce/extra/tools/update_lang_files.php File Reference

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)

Enumeration Type Documentation

enum CLI_SCRIPT

Definition at line 27 of file update_lang_files.php.


Function Documentation

editor_tinymce_encode_stringline ( key,
value 
)

============ Utility functions ========================

Definition at line 201 of file update_lang_files.php.

Definition at line 227 of file update_lang_files.php.

Here is the call graph for this function:

Definition at line 205 of file update_lang_files.php.


Variable Documentation

$en_strings = editor_tinymce_get_all_strings('en')

Definition at line 128 of file update_lang_files.php.

$enfile = "$CFG->dirroot/lib/editor/tinymce/lang/en/editor_tinymce.php"

Definition at line 46 of file update_lang_files.php.

foreach ($parsed as $key=> $value) if (!$handle=fopen($enfile, 'w')) $header
Initial value:
 <<<EOT
<?php


















EOT

Definition at line 77 of file update_lang_files.php.

if (!debugging('', DEBUG_DEVELOPER)) $langconversion
Initial value:
 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.

$tempdir = "$CFG->dirroot/lib/editor/tinymce/extra/tools/temp/tinylangs"

Definition at line 45 of file update_lang_files.php.

$tweaked = array()

Definition at line 57 of file update_lang_files.php.

if (!file_exists($targetlangdir)) $xmlfiles = new DirectoryIterator($tempdir)

Definition at line 133 of file update_lang_files.php.

 All Data Structures Namespaces Files Functions Variables Enumerations