如何令xmms和mplayer的選單中文化?

找不到Code如何播放,不知道要用什麼播放程式等等相關問題都可以在這發問

Moderator: Forums Team

Post Reply
AhFoong
Posts: 8
Joined: Fri Dec 17, 2004 6:41 pm

如何令xmms和mplayer的選單中文化?

Post by AhFoong »

大家好。

我的xmms已經能顯示中文歌曲的名稱,但是選單还是英文,怎樣才能顯示華文呢?

我用的是flubox 0。9。10

還有我的mplayer的選單也是英文的,有辦法換去中文嗎?

謝謝。
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

這是我的 .gtkrc

Code: Select all

style "gtk-default-zh-tw" {
        fontset = "-microsoft-verdana-medium-r-normal--12-*-*-*-p-*-iso10646-1,\
                   -misc-ming(for iso10646)-medium-r-normal--12-*-*-*-c-*-iso106
46-1"
}
class "GtkWidget" style "gtk-default-zh-tw"
還有 LANG 要設,這樣 xmms 就可以有中文選單了。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
AhFoong
Posts: 8
Joined: Fri Dec 17, 2004 6:41 pm

Post by AhFoong »

這是我的.gtkrc 的設定:

style "gtk-default-zh-tw" {
fontset = "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1,\
-*-simsun-medium-r-normal-*-12-*-*-*-*-*-gbk-0,\
-*-AR PL NEW Sung-medium-r-normal--12-*-*-*-*-*-big5-0,\
-taipei-*-medium-r-normal--*-*-*-*-*-*-big5-0,\
-*-*-medium-r-normal--16-*-*-*-*-*-big5-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-tw"

可是還是不行。

LANG 要在那里設定呢?
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

AhFoong wrote:LANG 要在那里設定呢?
就是 locale 的環境,在 comman line 中可以直接下 export LANG=XXX,X 中的話,請依照各家 WM 或 Desktop 作設定。

我在 command line 啟動 xmms 就是用

Code: Select all

LANG=zh_TW.UTF-8 xmms
disagreeing is much more fun than agreeing when backed up with thoughtful responses
AhFoong
Posts: 8
Joined: Fri Dec 17, 2004 6:41 pm

Post by AhFoong »

謝謝。

我的xmms已經能夠顯示中文選單了,可是用同樣的方法啟動gmplayer卻行不通,為甚么呢?

我的command line:

Code: Select all

LANG=zh_TW.big5 gmplayer
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

mplayer 比較奇怪,我也搞不太清楚,我知道的大概是這樣:

1) 用 LINGUAS=zh_TW emerge mplayer,可有 Big5 環境下的中文選單。
2) 使用其他 mplayer frontend,emerge -S 可找到一些,在 mplayerhq 上記得有 gtk2 的 frontend。

1) 我不喜歡是因為這樣安裝之後,就只能用 Big5 locale 下去執行,不然會選單會有問題,連英文選單都沒有。
2) 我沒試過,不過聽起來比較好。

參考參考。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
Post Reply