找回密码
 注册
查看: 1737|回复: 13

怎么让mplayer出现中文菜单?

[复制链接]
发表于 2005-8-5 14:18:59 | 显示全部楼层 |阅读模式
编译的时候已经--language=zh_CN了,怎么还是英文界面?
我的gtkrc.zh_CN:
style "gtk-default-zh-cn" {
fontset = "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*,\
-*-simsun-medium-r-normal-*-12-*-*-*-*-*-gbk-0"
}
class "GtkWidget" style "gtk-default-zh-cn"
发表于 2005-8-5 18:08:34 | 显示全部楼层
编译的时候?

不是 ./configure 的时候?
回复

使用道具 举报

 楼主| 发表于 2005-8-5 18:54:54 | 显示全部楼层
嗯,是./configure的时候

但斑竹还没回答我问题呀!
回复

使用道具 举报

发表于 2005-8-5 21:53:58 | 显示全部楼层
你也得先让我问清楚啊………
你能重新 ./configure 并且贴出输出和命令么?
要和你 ./configure 时一样~~~
回复

使用道具 举报

 楼主| 发表于 2005-8-6 08:16:28 | 显示全部楼层
root@slacker:~/mplayer/source/MPlayer-1.0pre7# ./configure --enable-gui --with-codecsdir=/usr/local/lib/codecs --language=zh_CN
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 3.3.4, ok
Checking for host cc ... cc
Checking for CPU vendor ... GenuineIntel (6:11:1)
Checking for CPU type ...  Intel(R) Celeron(TM) CPU                1100MHz
Checking for GCC & CPU optimization abilities ... pentium3
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of sse ... yes
Checking for mtrr support ... yes
Checking for assembler support of -pipe option ... yes
Checking for assembler (/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/as 2.15.92.0.2) ... ok
Checking for Linux kernel version ... 2.6.11, ok
Checking for mplayer binary name ... mplayer
Checking for awk ... gawk
Checking for extra headers ... none
Checking for extra libs ... none
Checking for -lposix ... no
Checking for -lm ... yes
Checking for i18n ... yes
Checking for iconv ... yes
Checking for langinfo ... yes
Checking for language ... using zh_CN (man pages:  en)
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lnsl)
Checking for inet_pton() ... yes (using -lnsl)
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for stddef.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for sys/soundcard.h ... yes
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for BSDI dvd.h ... no
Checking for HPUX SCSI header ... no
Checking for userspace SCSI headers (Solaris) ... no
Checking for termcap ... yes (using -ltermcap)
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for linux devfs ... no
Checking for scandir() ... yes
Checking for strsep() ... yes
Checking for strlcpy() ... no
Checking for strlcat() ... no
Checking for fseeko() ... yes
Checking for localtime_r() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for posix select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Mac OS X APIs ... no
Checking for Mac OS X Finder Support ... no
Checking for Mac OS X Bundle file locations ... no
Checking for Samba support (libsmbclient) ... yes
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for tdfxvid ... no
Checking for tga ... yes
Checking for DirectFB headers presence ... not found
Checking for DirectFB ... no
Checking for X11 headers presence ... yes (using /usr/X11/include)
Checking for X11 libs presence ... yes (using /usr/X11R6/lib)
Checking for X11 ... yes
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for XF86keysym ... yes
Checking for DGA ... yes (using DGA 2.0)
Checking for OpenGL ... yes
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for AA ... yes
Checking for CACA ... yes
Checking for SVGAlib ... yes
Checking for FBDev ... no
Checking for DVB ... no (specify path to DVB/ost/include with --with-dvbincdir=DIR)
Checking for DVB HEAD ... no (specify path to DVB/include (HEAD Version) with --with-dvbincdir=DIR)
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for PNM support ... yes
Checking for md5sum support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... yes
Checking for SDL ... yes (using sdl-config)
Checking for Windows waveout ... no
Checking for Directx ... no
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for libmp1e ... no
Checking for libfame ... no
Checking for OSS Audio ... yes
Checking for aRts ... yes
Checking for EsounD ... yes
Checking for esd_get_latency() ... yes
Checking for Polyp ... no
Checking for JACK ... no
Checking for ALSA audio ... yes (using alsa 1.0.x and alsa/asoundlib.h)
Checking for Sun audio ... no
Checking for Sun mediaLib ... no
Checking for SGI audio ... no
Checking for VCD support ... ok
Checking for DVD support (libmpdvdkit) ... yes
Checking for DVD support (libdvdread) ... disabled by libmpdvdkit2
Checking for cdparanoia ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for external liblzo support ... no
Checking for mad support ... yes
Checking for Toolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for OggTheora support (only the CVS version!) ... no
Checking for mp3lib support ... yes
Checking for liba52 support ... yes
Checking for libdts support ... no
Checking for libmpeg2 support ... yes
Checking for Matroska support ... yes
Checking for internal FAAD2 (AAC) support ... yes
Checking for external FAAD2 (AAC) support ... no
Checking for LADSPA plugin support ... no
Checking for Win32 codec DLL support ... yes (using /usr/local/lib/codecs)
Checking for Win32 loader support ... yes
Checking for DirectShow ... yes
Checking for XAnim DLL ... yes (using /usr/local/lib/codecs)
Checking for RealPlayer DLL ... yes (using /usr/local/lib/codecs)
Checking for LIVE.COM Streaming Media libraries ... no
Checking for FFmpeg libavcodec (static) ... yes
Checking for FFmpeg libavformat (static) ... yes
Checking for amr narrowband ... no
Checking for amr narrowband, fixed point ... no
Checking for amr wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for zr ... no
Checking for bl ... no
Checking for XviD ... no
Checking for x264 ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... no
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UniquE RAR File Library ... yes
Checking for TV interface ... yes
Checking for EDL support ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... no
Checking for Video 4 Linux 2 TV interface ... no
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for shared postprocess lib ... no
Checking for OSD menu ... no
Checking for QTX codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK version ... 1.2.10 (using gtk-config)
Checking for glib version ... 1.2.10 (using glib-config)
Creating Gui/config.mak
Checking for automatic gdb attach ... no
Checking for compiler support for -fno-PIC ... yes
Checking for ftello() ... yes
Checking for VIDIX ... yes
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Creating config.mak
Creating config.h
Creating libvo/config.mak
Creating libao2/config.mak
Creating libaf/config.mak

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: pentium3 mmx mmx2 sse mtrr

  Languages:
    Messages/GUI: zh_CN
    Manual pages:  en

  Enabled optional drivers:
    Input: ftp network edl tv matroska cdda mpdvdkit2 vcd smb
    Codecs: qtx libavcodec real xanim dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib tremor(internal) libmad gif
    Audio output: alsa esd arts oss sdl mpegpes(file)
    Video output: xvidix cvidix sdl vesa gif89a md5sum pnm jpeg png mpegpes(file) svga caca aa opengl dga xv x11 xover tga
    Audio filters:
  Disabled optional drivers:
    Input: vstream tv-v4l2 tv-v4l tv-bsdbt848 live.com dvdread dvb
    Codecs: opendivx x264 xvid libdv amr_wb amr_nb libdts libtheora toolame liblzo
    Audio output: sgi sun jack polyp dxr2 nas dsound win32 macosx
    Video output: winvidix bl zr zr2 dxr3 dxr2 directx fbdev ggi xmga mga xvmc directfb tdfx_vid tdfxfb 3dfx quartz
    Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
回复

使用道具 举报

发表于 2005-8-6 13:41:03 | 显示全部楼层
?????
你的界面应该是中文的啊?
Languages:
Messages/GUI: zh_CN
Manual pages: en
回复

使用道具 举报

发表于 2005-8-6 15:14:54 | 显示全部楼层
唉,设置中文的locale再运行,就是中文菜单了……
回复

使用道具 举报

发表于 2005-8-6 15:23:50 | 显示全部楼层

locale 不是中文?
回复

使用道具 举报

 楼主| 发表于 2005-8-6 18:14:37 | 显示全部楼层
root@slacker:~# locale
LANG=zh_CN.gbk
LC_CTYPE="zh_CN.gbk"
LC_NUMERIC="zh_CN.gbk"
LC_TIME="zh_CN.gbk"
LC_COLLATE="zh_CN.gbk"
LC_MONETARY="zh_CN.gbk"
LC_MESSAGES="zh_CN.gbk"
LC_PAPER="zh_CN.gbk"
LC_NAME="zh_CN.gbk"
LC_ADDRESS="zh_CN.gbk"
LC_TELEPHONE="zh_CN.gbk"
LC_MEASUREMENT="zh_CN.gbk"
LC_IDENTIFICATION="zh_CN.gbk"
LC_ALL=
___________________________________________

界面如图2

是不是和fonts.conf的字体显示顺序有关? 我设置成helvetica+simsun 也就是遇到英文用helvetica遇到中文用simsun,可这也没道理呀,我的xmms就很正常

或者和gtkrczh_CN 的simsun编码为gbk mplayer不认识?我猜的
回复

使用道具 举报

发表于 2005-8-6 20:02:09 | 显示全部楼层
还真是怪事,要不就将就E文吧,反正又不难
回复

使用道具 举报

发表于 2005-8-6 21:59:20 | 显示全部楼层
  什么原因啊?
回复

使用道具 举报

 楼主| 发表于 2005-8-7 16:35:45 | 显示全部楼层
没有办法了吗?
回复

使用道具 举报

发表于 2005-10-23 05:37:41 | 显示全部楼层
是./configure --language=zh
不是 --language=zh_CN
回复

使用道具 举报

发表于 2005-10-23 10:05:25 | 显示全部楼层
楼上,中文分简体和繁体的,zh_CN 是简体简体中文(GB 编码),zh_TW 是繁体(BIG5编码)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-8-6 20:27 , Processed in 0.028536 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表