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??
Sorry for not updating the language pack yet - stil didn't find the time to check it . 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.
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.
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;
}
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;
}