next up previous contents
Next: 匯入程式修改 Up: 成績 Previous: version.php   Contents

gradexport_csv.php

  1. 新增中文翻譯字串檔案。
    [root@moodle grade]# cd /var/www/moodledata23/lang/zh_tw/ 
    [root@moodle zh_tw]# cp gradeexport_txt.php gradeexport_csv.php
    
  2. 修改中文字翻譯。
    [root@moodle grade]# diff -urNwbBE /var/www/moodledata23/lang/zh_tw/gradeexport_csv.php /var/www/moodledata23/lang/zh_tw/gradeexport_txt.php 
    --- /var/www/moodledata23/lang/zh_tw/gradeexport_csv.php	2014-07-15 15:28:32.123970871 +0800
    +++ /var/www/moodledata23/lang/zh_tw/gradeexport_txt.php	2014-07-15 15:55:55.951515614 +0800
    @@ -16,13 +16,15 @@
     // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
     
     /**
    - * Strings for component 'gradeexport_csv', language 'en', branch 'MOODLE_20_STABLE'
    + * Strings for component 'gradeexport_txt', language 'zh_tw', branch 'MOODLE_23_STABLE'
      *
    - * @package   gradeexport_csv
    + * @package   gradeexport_txt
      * @copyright 1999 onwards Martin Dougiamas  {@link http://moodle.com}
      * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
    -$string['pluginname'] = '校務系統csv成績檔';
    -$string['csv:publish'] = '校務系統CSV成績匯出';
    -$string['csv:view'] = '使用校務系統成績';
    +defined('MOODLE_INTERNAL') || die();
    +
    +$string['pluginname'] = '純文字csv檔案';
    +$string['txt:publish'] = '以文字格式輸出公佈';
    +$string['txt:view'] = '以文字格式輸出使用';
    



2017-08-04