[分享] 我來拯救各位啦!徹底『多國語言修正』!!

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
頭像
alexpan
星球公民
星球公民
文章: 198
註冊時間: 2003-09-22 20:35
來自: 飄風優海
聯繫:

文章 alexpan »

無法顯示網頁...
●從竹貓學習到的東西是@@.......善加利用搜尋^^"
ttsmarco
星球公民
星球公民
文章: 58
註冊時間: 2003-09-11 10:51

文章 ttsmarco »

ttsmarco 寫:目前小弟在自家測試.使用乾淨的PHPBB2.0.6C+Appserv 2.3.0
將語言包轉為utf-8格式.encode也改為utf-8
並將PHP.INI內default_charset 改為 "utf-8"(不然都是亂碼=.=)
已經成功的使用了...但....
Scorpion 寫:Unicode 的最大
兩點好處:

1.不會有衝碼、亂碼問題
2.多國語文並存
在測試的時候..許功蓋之類的都OK

但是發現..."佢"在發表後會變成"佢"
(只要右邊接著"...就會在中間出現\)
請問大家..大家的也會這樣嗎??
目前上述問題已解決.是mysql的問題....\r
只剩下一個問題了...就是如何把信件改成HTML格式發送呢??
請教一下~~
圖檔
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

有沒有人轉完後發生以下這現象,不能安裝?
用ConvertZ只轉language安裝後每頁上方都會出現:

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 470

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 477
圖檔

用ConvertZ轉全部資料夾會出現:
圖檔
最後由 wky 於 2004-05-27 05:25 編輯,總共編輯了 4 次。
頭像
台灣阿堂
竹貓好朋友
竹貓好朋友
文章: 307
註冊時間: 2002-03-26 20:42
來自: 台灣台中
聯繫:

文章 台灣阿堂 »

你的資料庫沒有啓動~
這個問題都問爛了~
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

台灣阿堂 寫:你的資料庫沒有啓動~
這個問題都問爛了~
不好意思^^",我修正了問題,悉樣能幫我解答!!
頭像
台灣阿堂
竹貓好朋友
竹貓好朋友
文章: 307
註冊時間: 2002-03-26 20:42
來自: 台灣台中
聯繫:

文章 台灣阿堂 »

先用"英文"裝不要用"中文"裝
裝完再設定語系為"中文"~
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

台灣阿堂 寫:先用"英文"裝不要用"中文"裝
裝完再設定語系為"中文"~
用ConvertZ只轉language用英文安裝還是出現一樣的問題...
頭像
台灣阿堂
竹貓好朋友
竹貓好朋友
文章: 307
註冊時間: 2002-03-26 20:42
來自: 台灣台中
聯繫:

文章 台灣阿堂 »

不用轉全部資料匣\r
只要轉中文語系檔就好了
你的網址??
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

台灣阿堂 寫:不用轉全部資料匣\r
只要轉中文語系檔就好了
你的網址??
我試了轉language中的lang_chinese_traditional_taiwan
英文安裝沒問題,用也應該沒問題,但安裝後換到中文時頂部又出現那3行,而且"進入系統管理控制台"進不去,會跳出\r

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_chinese_traditional_taiwan\lang_main.php:1) in C:\webserver\myweb\phpbb1\admin\index.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_chinese_traditional_taiwan\lang_main.php:1) in C:\webserver\myweb\phpbb1\admin\index.php on line 583
最後由 wky 於 2004-05-27 05:26 編輯,總共編輯了 2 次。
頭像
台灣阿堂
竹貓好朋友
竹貓好朋友
文章: 307
註冊時間: 2002-03-26 20:42
來自: 台灣台中
聯繫:

文章 台灣阿堂 »

我連不上耶\r
你的中文語系檔lang_main.php第一行是什麼?
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

台灣阿堂 寫:我連不上耶\r
你的中文語系檔lang_main.php第一行是什麼?
不知你指的是什麼,我copy這些你看看

代碼: 選擇全部

$lang['ENCODING'] = 'big5';
事實上我要把論壇轉成unicode的原因是因為我用的server是外國的,但他們的Apache HTTP Server預設語言用AddDefaultCharset ISO-8859-1,害我看中文時便亂碼,每換一頁就每次都要調一次編碼...可是我把論壇改成unicode安裝後又出問題 :cry:
你可以來 http://free.hostultra.com/~wky/phpbb2/index.php 看看!!
最後由 wky 於 2004-05-27 05:25 編輯,總共編輯了 1 次。
頭像
台灣阿堂
竹貓好朋友
竹貓好朋友
文章: 307
註冊時間: 2002-03-26 20:42
來自: 台灣台中
聯繫:

文章 台灣阿堂 »

$lang['ENCODING'] = 'big5';
改成
$lang['ENCODING'] = 'utf-8';
wky
星球普通子民
星球普通子民
文章: 18
註冊時間: 2004-05-24 00:34
聯繫:

文章 wky »

台灣阿堂 寫:$lang['ENCODING'] = 'big5';
改成
$lang['ENCODING'] = 'utf-8';
我自己試了一下,如果只改內容改成utf-8存當為ANSI還是會變成亂碼,除非檔案存成utf-8才能在Apache HTTP Server預設語言用AddDefaultCharset ISO-8859-1下正常顯示中文,但存成utf-8就會出現以下錯誤碼\r

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 470 

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 476 

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_english\lang_main.php:1) in C:\webserver\myweb\phpbb1\includes\page_header.php on line 477 
還有就是"進入系統管理控制台"也進不去,跳出以下錯誤碼\r

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_chinese_traditional_taiwan\lang_main.php:1) in C:\webserver\myweb\phpbb1\admin\index.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\myweb\phpbb1\language\lang_chinese_traditional_taiwan\lang_main.php:1) in C:\webserver\myweb\phpbb1\admin\index.php on line 583
neolee
星球普通子民
星球普通子民
文章: 4
註冊時間: 2004-06-15 21:16

文章 neolee »

我參照這個主題的方法,把語言包轉成 unicode。結果也產生和本主題第二頁的 kewo 相同的問題(警告):

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/page_header.php on line 509

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/page_header.php on line 511

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/page_header.php on line 512
然後參照小竹子的說明,把 includes/page_header.php 裡的那三行 // mark 掉,果然這個警告就消失。但是,我不確定這麼做是否就解決了問題,因為還出現其他類似的警告,就是如同上面一篇 wky 所講的,當要從正體中文語系「進入系統管理控制台」時,就出現下面的問題:

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/admin/index.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/admin/index.php on line 583
然後當我要從正體中文語系登出時,又出現下列問題:

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/sessions.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/sessions.php on line 360

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/functions.php on line 771
PS. 雖然登出時出現問題,但實際上也真的登出了。

剛剛要從正體中文語系登入時,也出現了類似登出時的問題:

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/sessions.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/sessions.php on line 183

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/includes/functions.php on line 771
PS. 雖然登入時出現問題,但實際上也真的登入了。

備註:
1. 目前使用英文語系都「沒有」上述三個問題。
2. 把語言包轉成 unicode 之前,也「沒有」上述三個問題。

更新:問題已解決
最後由 neolee 於 2004-06-16 15:03 編輯,總共編輯了 3 次。
neolee
星球普通子民
星球普通子民
文章: 4
註冊時間: 2004-06-15 21:16

文章 neolee »

承接上一篇...

剛剛又發現新問題,在正體中文語系發表完文章時:

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/cocolee2/public_html/forum/language/lang_chinese_traditional_taiwan/lang_main.php:1) in /home/cocolee2/public_html/forum/viewtopic.php on line 555
:?: 難道本主題所討論的多國語系方法其實是不可行的?還是,必須要配合其他的設定?

更新:問題已解決
使用下一頁"右手"所提示的方法,
看看你是不是勾了ConvertZ->轉碼設定->加bom到utf-8檔案
那東西勾了會出問題
已解決上述五個問題。Thank you very much!!
最後由 neolee 於 2004-06-16 15:07 編輯,總共編輯了 1 次。
主題已鎖定

回到「phpBB 2 安裝與使用」