Google +    Album

= 修改Moodle顯示的時間格式 =

原來的moodle一開始秀出時間格式時,
通常是比較"國際化",
也許會有人看不習慣,包括你自己
怎麼調整也沒用,預設值就是那樣而已...

那要修改成我們比較習慣的格式,如下:
2007年 03月 1日 (Thu),AM 10:45
該怎做?

位置:
/data/moodledata/lang/zh_tw_utf8/langconfig.php

記得先把原來的存為備份
以防萬一...

<?php
$string['locale'] = "zh_TW.UTF-8";
$string['localewin'] = "Chinese_Taiwan.950";
$string['localewincharset'] = "CP950";
$string['oldcharset'] = 'BIG5';
$string['strftimedate'] = '%%Y年 %%m月 %%d日';
$string['strftimedateshort'] = '%%m月 %%d日';
$string['strftimedatetime'] = '%%Y年 %%m月 %%d日,%%p %%I:%%M ';
$string['strftimedaydate'] = '%%Y年 %%m月 %%d日';
$string['strftimedaydatetime'] = '%%Y年 %%m月 %%d日 (%%a),%%p %%I:%%M';
$string['strftimedayshort'] = '%%m月 %%d日 %%A';
$string['strftimedaytime'] = '%%a %%H:%%M';
$string['strftimemonthyear'] = '%%Y 年 %%m 月 ';
$string['strftimerecent'] = '%%m月 %%d日,%%H:%%M';
$string['strftimerecentfull'] = '%%Y年 %%m月 %%d日 (%%a),%%p %%I:%%M';
$string['strftimetime'] = '%%p %%I:%%M';
$string['thischarset'] = "UTF-8";
$string['thislanguage'] = "正體中文";
?>

如此,存檔後,apache重新開啟即可

沒有留言: