changeset 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
files configure
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 14 12:31:35 2009 +0000
+++ b/configure	Sun Jun 14 12:42:06 2009 +0000
@@ -439,9 +439,9 @@
   --target=PLATFORM      target platform (i386-linux, arm-linux, etc)
   --enable-static        build a statically linked binary
   --charset=charset      convert the console messages to this character set
+  --language-msg=LINGUA  language used for messages and the GUI [en]
   --language=list        a white space or comma separated list of languages for
-                         translated man pages, the first language is used for
-                         messages and the GUI (the environment variable
+                         translated man pages (the environment variable
                          \$LINGUAS is also honored) [en]
                          (Available: all $msg_lang_all)
   --with-install=PATH    path to a custom install program
@@ -849,6 +849,9 @@
   --charset=*)
     _charset=$(echo $ac_option | cut -d '=' -f 2)
     ;;
+  --language-msg=*)
+    _language_msg=$(echo $ac_option | cut -d '=' -f 2)
+    ;;
   --language=*)
     _language=$(echo $ac_option | cut -d '=' -f 2)
     ;;
@@ -2791,7 +2794,9 @@
 
 echocheck "language"
 test -z "$_language" && _language=$LINGUAS
+test -z "$_language_msg" && _language_msg=$LINGUAS
 _language=$(echo $_language | tr , " ")
+_language_msg=$(echo $_language_msg | tr , " ")
 if $(echo $_language | grep -q all) ; then
   doc_lang=en ; doc_langs=$doc_lang_all
   man_lang=en ; man_langs=$man_lang_all
@@ -2806,13 +2811,13 @@
   done
   man_langs=$tmp_man_langs
   doc_langs=$tmp_man_langs
-  for lang in $_language ; do
+  for lang in $_language_msg ; do
     if test -f "help/help_mp-${lang}.h" ; then
       msg_lang=$lang
       break
     else
       echo ${_echo_n} "$lang not found, ${_echo_c}"
-      _language=$(echo $_language | sed "s/$lang *//")
+      _language_msg=$(echo $_language_msg | sed "s/$lang *//")
     fi
   done
 fi