Merging the upstream translation of TinyMCE

回复: Merging the upstream translation of TinyMCE

ដោយ Zhigang Sun នៅ
ចំនួនតប៖ 2
រូបភាព Language pack maintainers

Hi, david

Could you send me the script file which converts TinyMCE's language files into Moodle format? Perhaps I can solve the problem about Chinese.

Thank you!

Sunner

ឆ្លើយតបទៅកាន់ Zhigang Sun

Re: 回复: Merging the upstream translation of TinyMCE

ដោយ David Mudrák នៅ
រូបភាព Language pack maintainers
Hi Sunner,

the script is part of the official Moodle 2.0 distribution - lib/editor/tinymce/extra/tools/update_lang_files.php

Thanks in advance for the review of it.

David
ឆ្លើយតបទៅកាន់ David Mudrák

回复: Re: 回复: Merging the upstream translation of TinyMCE

ដោយ Zhigang Sun នៅ
រូបភាព Language pack maintainers

Hi David,

The problem is caused by TinyMCE's original zh.xml file. The file is encoded in utf-8 exactly, but the first line of it says <?xml version="1.0" encoding="gbk"?> . I just changed the bold string from gbk to utf-8, then update_lang_files.php can convert it very well.

This is a special case happens on Chinese only. So I think it is no need to patch the converting script. I can handle it by myself.

Sunner