Questions in Traditional Chinese

Questions in Traditional Chinese

by Finjon Kiang -
Number of replies: 2
1. I've sent latest translation to translation @ moodle.org  but got no reply or update ?
2. I found I couldn't use Chinese characters in most of file relative functions. Should I make a patch about this problem or this had been discussed??
Average of ratings: -
In reply to Finjon Kiang

Re: Questions in Traditional Chinese

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
Sorry for not updating the language pack yet - stil didn't find the time to check it sad . I will reply to you about this as soon as possible.

As far as I know, Chinese characters in file names is a problem of the server. If you suspect it is a Moodle problem aswell, it's a good idea to file a bug for that. Follow the link to http://bugs.moodle.org.
It would be great if you could help with that problem.
In reply to koen roggemans

Re: Questions in Traditional Chinese

by Finjon Kiang -
About file name, Have a look at the function clean_filename() in moodle/lib/moodlelib.php .

I modified it as follow to fit the demands in Chinese. Maybe somebody could make it better.

function clean_filename($string) {
    global $CFG;
    $textlib = textlib_get_instance();
    $string = $textlib->specialtoascii($string, current_charset());
    $string = preg_replace("/[ \'?:*><|\\/]/",'_', $string );
    $string = preg_replace("/_+/", '_', $string);
    $string = preg_replace("/\.\.+/", '.', $string);
    return $string;
}