歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 28, 2024, 02:29:10 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  中文相關  |  請問改locale的中文語系要怎麼改? « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 請問改locale的中文語系要怎麼改?  (閱讀 12390 次)
o2willix
新手見習
*
文章: 5


檢視個人資料
« 於: 七月 11, 2005, 08:49:45 下午 »

我是用utf8的, 因為任何語言平台也可看到

而改locale_zh_TW時

// Suggested by BCSE, some useful messages that not available in official locale
$messages['upgrade_information'] = '您所使用的瀏覽器未符合網頁設計標準,因此本網頁將以純文字模式顯示。如欲以最佳的排版方式瀏覽本站,請考慮<a href="http://www.webstandards.org/upgrade/" title="The Web Standards Project\'s Browser Upgrade initiative">升級</a>您的瀏覽器。';
$messages['jump_to_navigation'] = '移動到導覽列。';
$messages['comment_email_never_display'] = '系統會自動為你設定分行,且不會顯示你留下的郵件地址。';
$messages['comment_html_allowed'] = '可使用之 <acronym title="Hypertext Markup Language">HTML</acronym> 標籤如下:&lt;<acronym title="用途:超連結">a</acronym> href=&quot;&quot; title=&quot;&quot; rel=&quot;&quot;&gt; &lt;<acronym title="用途:頭字語標註">acronym</acronym> title=&quot;&quot;&gt; &lt;<acronym title="用途:引用文字">blockquote</acronym> cite=&quot;&quot;&gt; &lt;<acronym title="用途:刪除線">del</acronym>&gt; &lt;<acronym title="用途:斜體">em</acronym>&gt; &lt;<acronym title="用途:底線">ins</acronym>&gt; &lt;<acronym title="用途:粗體">strong</acronym>&gt;';
$messages['trackback_uri'] = '這篇文章的引用連結網址:';
$messages['previous_post'] = '上一篇';
$messages['next_post'] = '下一篇';
$messages['comment_default_title'] = '(無標題)';
$messages['guestbook'] = '留言板';
$messages['trackbacks'] = '引用';
$messages['menu'] = '主選單';
$messages['albums'] = '資料夾';
$messages['admin'] = '管理介面';

如果我一儲存就會出現error

Exception message: Cannot modify header information - headers already sent by (output started at /home/xoop/public_html/locale/locale_zh_TW.php:1)
Error code: 2
-- Backtrace --
/home/xoop/public_html/class/view/view.class.php(172): header
/home/xoop/public_html/class/view/view.class.php(309): defaultview.sendcontenttype
/home/xoop/public_html/class/view/smartyview.class.php(163): view.render
/home/xoop/public_html/class/view/blogview.class.php(224): smartyview.render
/home/xoop/public_html/class/view/defaultview.class.php(82): blogview.render
/home/xoop/public_html/class/controller/controller.class.php(325): defaultview.render
/home/xoop/public_html/index.php(44): blogcontroller.process

This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

如果想加一點其他句子, 要怎加?
已記錄
o2willix
新手見習
*
文章: 5


檢視個人資料
« 回覆文章 #1 於: 七月 11, 2005, 08:51:48 下午 »

1.我巳是用utf8 儲存
2.我什麼都沒做就儲存巳出error
3.出了error, 但加了的字也是正常顯示的~
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 七月 12, 2005, 10:30:42 上午 »

那是因為你的 editor 把 bom 資訊存入檔案,導致錯誤。請參考:
http://wiki.lifetype.org.tw/index.php/Installation_Requirements#.E6.96.87.E5.AD.97.E7.B7.A8.E8.BC.AF.E8.BB.9F.E9.AB.94

Mark
已記錄

o2willix
新手見習
*
文章: 5


檢視個人資料
« 回覆文章 #3 於: 七月 13, 2005, 07:24:07 上午 »

引用自: markwu
那是因為你的 editor 把 bom 資訊存入檔案,導致錯誤。請參考:
http://wiki.lifetype.org.tw/index.php/Installation_Requirements#.E6.96.87.E5.AD.97.E7.B7.A8.E8.BC.AF.E8.BB.9F.E9.AB.94

Mark


謝謝
已記錄
頁: [1]
LifeType 中文開發論壇  |  開發  |  中文相關  |  請問改locale的中文語系要怎麼改? « 上篇主題 下篇主題 »
    前往: