MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2025-08-28, 03:57

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 8 篇文章 ] 
發表人 內容
文章發表於 : 2010-07-30, 01:27 
離線

註冊時間: 2010-06-19, 00:01
文章: 33
這篇指的 Firefox 包括 社群開發版 或 PGO版 ( 是這樣子講的嗎? )
像 tete009 或 綾川 或 Pale Moon 都算。

大家:
最近在網路上找到了2種中文化 Firefox 的方法,
第一種是:
引言回覆:
中文化教學 (由goldie 分享)
套用中文語系 & 一些 about:config 細節調整
* 去 ftp://ftp.mozilla.org/ 找對應版本的 zh-TW.xpi 以 7-Zip 打開取出 zh-TW.jar 置換掉原來的 Firefox\chrome\en-US.jar (刪除原來的 en-US.jar)
* Firefox\chrome\en-US.manifest 更名為 zh-TW.manifest 再用記事本打開,把裡面所有的 en-US 字串取代成 zh-TW,存檔
* 以記事本打開 Firefox\defaults\pref\firefox-l10n.js 把 general.useragent.locale 那行後面的 en-US 改成 zh-TW,存檔
* 以記事本打開 Firefox\defaults\pref\firefox.js 把 general.useragent.extra.firefox 那行後面的 BonEcho/… 或 Minefield/… Namoroka/...改成 Firefox/…,存檔


第二種是:
來源自 Pale Moon 網站:http://www.palemoon.org/troubleshooting.html#languagepacks
引言回覆:
Pale Moon is not available in my preferred language
Pale Moon is released as a US-English browser, and there are no localized versions for other languages available. If you feel more comfortable with a different localization of the browser for menus and user interface, there is an option to change the elements of the browser interface to match your preferred language using a language pack. I have not personally tested these language packs and there may be problems with some of them. Use them at your own risk!

How to install a language pack for your language:

1. Go to Mozilla Firefox's FTP website. (The link is a direct link to the directory you need for the current version of Pale Moon). If you're not sure which version you're running, click About Pale Moon project from the browser's Help menu. If your version is different, then navigate to the corresponding Firefox version (e.g. /releases/3.5.4/win32/xpi for Pale Moon 3.5.4)
2. Identify the xpi file of your preferred language. You will need to know the common abbreviation of your desired language. If you see multiple xpi results for your preferred language, identify the one with the label of your region (e.g. es-MX for Spanish-Mexico).
3. Click the xpi file that corresponds to the language you want to install in the Firefox browser. If you get a warning bar at the top, about the site wanting to install software on your computer, click the Allow button. Verify by clicking Install Now.
4. Go into about:config and change general.useragent.locale to your language locale including location (e.g. es-MX or fr-FR)
5. Restart the browser to put the language pack into effect.

Please note that these language packs are for Firefox, and the texts in them will refer to the browser as "Firefox" instead of Pale Moon. This can't be helped, since the name is hardcoded in them. I am currently looking into making Pale Moon specific language packs available as well.


兩種做法不大一樣,『方法二』比較容易些。
請問我用『方法二』的話,會有什麼不良的後遺症嗎?
我是安裝完 Pale Moon英文版 之後,才自行中文化的,請問用第二個方法對嗎?

請問有 官方版 提供的方法嗎?
我想了解,謝謝~~


回頂端
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-TW; rv:1.9.2.8) Gecko/20100727 Firefox/3.6.8 (Palemoon/3.6.8)
 個人資料  
引用回覆  
文章發表於 : 2010-07-30, 02:55 
離線
頭像

註冊時間: 2003-07-17, 22:16
文章: 941
方法一比較適合於想要自行打包成中文版給其他人下載使用(最後那個步驟是多餘的)
這種方式是安裝在主程式目錄內

方法二 主要建議的都是這種方式,這種方式是安裝在profile


回頂端
Mozilla/5.0 (Windows; Windows NT 5.1; rv:2.0b2) Gecko/20100720 Firefox/3.7a6pre
 個人資料  
引用回覆  
文章發表於 : 2010-07-30, 08:20 
離線

註冊時間: 2010-06-19, 00:01
文章: 33
orange 寫:
方法一比較適合於想要自行打包成中文版給其他人下載使用(最後那個步驟是多餘的)
這種方式是安裝在主程式目錄內

方法二 主要建議的都是這種方式,這種方式是安裝在profile


了解了,謝謝您~~
那我用第2張方法就好了。


回頂端
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-TW; rv:1.9.2.8) Gecko/20100727 Firefox/3.6.8 (Palemoon/3.6.8)
 個人資料  
引用回覆  
文章發表於 : 2010-08-11, 01:54 
離線

註冊時間: 2006-11-28, 02:47
文章: 18
來自: 非人家園
orange 寫:
方法一比較適合於想要自行打包成中文版給其他人下載使用(最後那個步驟是多餘的)
這種方式是安裝在主程式目錄內


以中文化來說,方法一的最後修改 general.useragent.extra.firefox 字串值的步驟是多餘的。
但是,對某些網站而言,不偽裝成「官方版火狐」,居然會有問題。
最近發現微軟的 hotmail 就是其中之一。

我是用 Feuerfuchs Portable Launcher (1.3.3.0) + TETE009 加速版的組合,檔案夾直接封存成7z壓縮檔。
開機後自動解壓縮到 Ramdisk 中。沒有什麼設定跑掉的問題。上個月登入時還好好的,這個月就變成下圖:

圖檔


好多電郵無法收看。原以為是微軟又「故技重施」來排除異己。呼叫 Google Chrome 的兄弟去試水溫後。排除這個可能。

圖檔


改用官版火狐,果然是正常的。

圖檔


經一番檢查後,我把方法一的最後一步驟補完。最後 TETE009 版也正常了。

圖檔


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.9.2.8) Gecko/20100724 FireFox/3.6.8 (.NET CLR 3.5.30729) (tete009 SSE2 PGO)
 個人資料  
引用回覆  
文章發表於 : 2010-08-11, 14:41 
離線

註冊時間: 2010-06-19, 00:01
文章: 33
to liaokk:

我沒有照著『方法一』的最後一項,修改 general.useragent.extra.firefox 的字串值。
↓ ↓ ↓ 這是我電腦中的設定,見圖:
圖檔

但是,我的 Tete009 也是『官方火狐』的字串耶!
圖檔

我是修改 about:config 裡面 general.useragent.extra.firefox 的值
圖檔

效果似乎是一樣的。
Hotmail 也一樣能夠正常登入、瀏覽。


回頂端
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-TW; rv:1.9.2.8) Gecko/20100724 Firefox/3.6.8 (tete009 SSE2 PGO)
 個人資料  
引用回覆  
文章發表於 : 2010-08-11, 14:48 
離線

註冊時間: 2010-06-19, 00:01
文章: 33
liaokk 寫:
以中文化來說,方法一的最後修改 general.useragent.extra.firefox 字串值的步驟是多餘的。
但是,對某些網站而言,不偽裝成「官方版火狐」,居然會有問題。
最近發現微軟的 hotmail 就是其中之一。

我是用 Feuerfuchs Portable Launcher (1.3.3.0) + TETE009 加速版的組合,檔案夾直接封存成7z壓縮檔。


Tete009 的官網,有建議要改這個值。
請看這裡:http://www1.plala.or.jp/tete009/en-US/software.html#PBUP
1.3 的第 5 點:
引言回覆:
Open a defaults/pref/firefox.js file with a text editor and change the value of "general.useragent.extra.firefox" from string like "Namoroka/…" to "Firefox/…" (… is a version number). In this way some sites and add-ons will work correctly.


回頂端
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-TW; rv:1.9.2.8) Gecko/20100724 Firefox/3.6.8 (tete009 SSE2 PGO)
 個人資料  
引用回覆  
文章發表於 : 2010-08-11, 16:34 
離線
頭像

註冊時間: 2003-07-17, 22:16
文章: 941
IvanKe 寫:
但是,我的 Tete009 也是『官方火狐』的字串耶

因為有優先序,profile的設定會優先於程式內預設的設定
靠字串辨識相不相容算是舊世代的餘孽
好一點的會跟你說網頁不相容叫你換
差一點的就直接送出錯誤內容


回頂端
Mozilla/5.0 (X11; U; Linux x86_64; zh-TW; rv:1.9.2.7) Gecko/20100721 orangeFox/3.6.7
 個人資料  
引用回覆  
文章發表於 : 2012-12-02, 00:44 
離線

註冊時間: 2006-11-28, 02:47
文章: 18
來自: 非人家園
兩年多過去了,來補充一下火狐4以後的版本,自行中文化的方法一。

火狐4以後語系相關檔案都包進omni.jar(或omni.ja)檔裡提昇載入速度。
圖檔

ftp://ftp.mozilla.org/ 自行找到對應版本的zh-TW.xpi,抽取中文化相關檔案如上圖陰影區,
再注入到omni.jar的chrome目錄層,最後記得刪除en-US這個目錄。

以上步驟完成,火狐的界面選單就全中文化完成。

第二階段,抽出 firefox-l10n.js 這個檔(路徑為omni.ja\defaults\preferences\)
改 general.useragent.locale 這行的「en-US」為「zh-TW」後,再注射回去取代舊檔。

以上完成,擴充套件會自動套用「正體中文」語系,如下圖,中文化至此完工。
圖檔

注意事項:
根據 https://developer.mozilla.org/en-US/doc ... mni.jar%29 的說法:

omni.jar 在火狐10以後改叫 omni.ja

omni.ja 為了最佳化讀取性能,改成非標準zip格式,所以 7-zip 無法打開。
建議 windows 7 以前的OS,使用winrar來解開。 windows 7 用內建的 explorer 就可以打開。


回頂端
Mozilla/5.0 (Windows NT 5.2; rv:16.0) Gecko/20121007 Firefox/16.0
 個人資料  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 8 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:Bing [Bot] 和 73 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群