Mercurial > mplayer.hg
comparison configure @ 29319:e4b546806804
Allow setting message language separately from documentation language.
patch by Steve Dibb, steve.dibb gmail com
author | diego |
---|---|
date | Sun, 14 Jun 2009 12:42:06 +0000 |
parents | 3c3406fa63a0 |
children | c02c70fd1b08 |
comparison
equal
deleted
inserted
replaced
29318:3c3406fa63a0 | 29319:e4b546806804 |
---|---|
437 --ranlib=RANLIB ranlib to build MPlayer [ranlib] | 437 --ranlib=RANLIB ranlib to build MPlayer [ranlib] |
438 --windres=WINDRES windres to build MPlayer [windres] | 438 --windres=WINDRES windres to build MPlayer [windres] |
439 --target=PLATFORM target platform (i386-linux, arm-linux, etc) | 439 --target=PLATFORM target platform (i386-linux, arm-linux, etc) |
440 --enable-static build a statically linked binary | 440 --enable-static build a statically linked binary |
441 --charset=charset convert the console messages to this character set | 441 --charset=charset convert the console messages to this character set |
442 --language-msg=LINGUA language used for messages and the GUI [en] | |
442 --language=list a white space or comma separated list of languages for | 443 --language=list a white space or comma separated list of languages for |
443 translated man pages, the first language is used for | 444 translated man pages (the environment variable |
444 messages and the GUI (the environment variable | |
445 \$LINGUAS is also honored) [en] | 445 \$LINGUAS is also honored) [en] |
446 (Available: all $msg_lang_all) | 446 (Available: all $msg_lang_all) |
447 --with-install=PATH path to a custom install program | 447 --with-install=PATH path to a custom install program |
448 | 448 |
449 Advanced options: | 449 Advanced options: |
846 --windres=*) | 846 --windres=*) |
847 _windres=$(echo $ac_option | cut -d '=' -f 2) | 847 _windres=$(echo $ac_option | cut -d '=' -f 2) |
848 ;; | 848 ;; |
849 --charset=*) | 849 --charset=*) |
850 _charset=$(echo $ac_option | cut -d '=' -f 2) | 850 _charset=$(echo $ac_option | cut -d '=' -f 2) |
851 ;; | |
852 --language-msg=*) | |
853 _language_msg=$(echo $ac_option | cut -d '=' -f 2) | |
851 ;; | 854 ;; |
852 --language=*) | 855 --language=*) |
853 _language=$(echo $ac_option | cut -d '=' -f 2) | 856 _language=$(echo $ac_option | cut -d '=' -f 2) |
854 ;; | 857 ;; |
855 | 858 |
2789 echores "$_langinfo" | 2792 echores "$_langinfo" |
2790 | 2793 |
2791 | 2794 |
2792 echocheck "language" | 2795 echocheck "language" |
2793 test -z "$_language" && _language=$LINGUAS | 2796 test -z "$_language" && _language=$LINGUAS |
2797 test -z "$_language_msg" && _language_msg=$LINGUAS | |
2794 _language=$(echo $_language | tr , " ") | 2798 _language=$(echo $_language | tr , " ") |
2799 _language_msg=$(echo $_language_msg | tr , " ") | |
2795 if $(echo $_language | grep -q all) ; then | 2800 if $(echo $_language | grep -q all) ; then |
2796 doc_lang=en ; doc_langs=$doc_lang_all | 2801 doc_lang=en ; doc_langs=$doc_lang_all |
2797 man_lang=en ; man_langs=$man_lang_all | 2802 man_lang=en ; man_langs=$man_lang_all |
2798 else | 2803 else |
2799 for lang in $_language ; do | 2804 for lang in $_language ; do |
2804 tmp_doc_langs="$tmp_doc_langs $lang" | 2809 tmp_doc_langs="$tmp_doc_langs $lang" |
2805 fi | 2810 fi |
2806 done | 2811 done |
2807 man_langs=$tmp_man_langs | 2812 man_langs=$tmp_man_langs |
2808 doc_langs=$tmp_man_langs | 2813 doc_langs=$tmp_man_langs |
2809 for lang in $_language ; do | 2814 for lang in $_language_msg ; do |
2810 if test -f "help/help_mp-${lang}.h" ; then | 2815 if test -f "help/help_mp-${lang}.h" ; then |
2811 msg_lang=$lang | 2816 msg_lang=$lang |
2812 break | 2817 break |
2813 else | 2818 else |
2814 echo ${_echo_n} "$lang not found, ${_echo_c}" | 2819 echo ${_echo_n} "$lang not found, ${_echo_c}" |
2815 _language=$(echo $_language | sed "s/$lang *//") | 2820 _language_msg=$(echo $_language_msg | sed "s/$lang *//") |
2816 fi | 2821 fi |
2817 done | 2822 done |
2818 fi | 2823 fi |
2819 test -z "$doc_langs" && doc_langs=en | 2824 test -z "$doc_langs" && doc_langs=en |
2820 test -z "$man_langs" && man_langs=en | 2825 test -z "$man_langs" && man_langs=en |