|
|
发表于 2006-6-1 23:43:43
|
显示全部楼层
portage里的mplayer是没有中文的,我是这样改的:
- ~ $ diff /usr/local/portage/media-video/mplayer/mplayer-1.0.20060415 .ebuild /usr/portage/media-video/mplayer/mplayer-1.0.20060415.ebuild
- 217,245c217,245
- < if [[ -n $LINGUAS ]]
- < then
- < # LINGUAS has stuff in it, start the logic
- < LANG=( $LINGUAS )
- < if [ -e ${S}/help/help_mp-${LANG[0]}.h ]
- < then
- < einfo "Setting MPlayer messages to language: ${LANG[0]}"
- < else
- < LANG_CC=${LANG[0]}
- < if [ ${#LANG_CC} -ge 2 ]
- < then
- < LANG_CC=${LANG_CC:0:2}
- < if [ -e ${S}/help/help_mp-${LANG_CC}.h ]
- < then
- < einfo "Setting MPlayer messages to langu age ${LANG_CC}"
- < export LINGUAS="${LANG_CC} ${LINGUAS}"
- < else
- < linguas_warn
- < fi
- < else
- < linguas_warn
- < fi
- < fi
- < else
- < # sending blank LINGUAS, make it default to en
- < einfo "No LINGUAS given, defaulting to English"
- < export LINGUAS="en ${LINGUAS}"
- < #export LINGUAS="en"
- < fi
- ---
- > # if [[ -n $LINGUAS ]]
- > # then
- > # # LINGUAS has stuff in it, start the logic
- > # LANG=( $LINGUAS )
- > # if [ -e ${S}/help/help_mp-${LANG[0]}.h ]
- > # then
- > # einfo "Setting MPlayer messages to language: ${LANG[0]}"
- > # else
- > # LANG_CC=${LANG[0]}
- > # if [ ${#LANG_CC} -ge 2 ]
- > # then
- > # LANG_CC=${LANG_CC:0:2}
- > # if [ -e ${S}/help/help_mp-${LANG_CC}.h ]
- > # then
- > # einfo "Setting MPlayer messages to langu age ${LANG_CC}"
- > # export LINGUAS="${LANG_CC} ${LINGUAS}"
- > # else
- > # linguas_warn
- > # fi
- > # else
- > # linguas_warn
- > # fi
- > # fi
- > # else
- > # # sending blank LINGUAS, make it default to en
- > # einfo "No LINGUAS given, defaulting to English"
- > # export LINGUAS="en ${LINGUAS}"
- > export LINGUAS="en"
- > # fi
复制代码 |
|