# HG changeset patch # User reimar # Date 1109425097 0 # Node ID 8260cd3c585cf21b878c530950a3777687567f2b # Parent e76a8c56d81be4fb47ec546b1a797dbba5bcf907 --charset configure option to convert help messages charset diff -r e76a8c56d81b -r 8260cd3c585c Makefile --- a/Makefile Sat Feb 26 01:11:13 2005 +0000 +++ b/Makefile Sat Feb 26 13:38:17 2005 +0000 @@ -399,7 +399,11 @@ help_mp.h: help/help_mp-en.h $(HELP_FILE) @echo '// WARNING! This is a generated file. Do NOT edit.' > help_mp.h @echo '// See the help/ subdir for the editable files.' >> help_mp.h +ifeq ($(CHARSET),) @echo '#include "$(HELP_FILE)"' >> help_mp.h +else + iconv -f `cat $(HELP_FILE).charset` -t $(CHARSET) "$(HELP_FILE)" >> help_mp.h +endif ifneq ($(HELP_FILE),help/help_mp-en.h) @echo "Adding untranslated messages to help_mp.h" diff -r e76a8c56d81b -r 8260cd3c585c configure --- a/configure Sat Feb 26 01:11:13 2005 +0000 +++ b/configure Sat Feb 26 13:38:17 2005 +0000 @@ -285,6 +285,7 @@ --target=PLATFORM target platform (i386-linux, arm-linux, etc) --enable-static build a statically linked binary. Set further linking options with --enable-static="-lslang -lncurses" + --charset convert the help messages to this charset --language=list a white space or comma separated list of languages for translated man pages, the first language is the primary and therefore used for translated messages @@ -1383,6 +1384,7 @@ #_language=en _shm=auto _linux_devfs=no +#_charset=utf8 _i18n=auto _dynamic_plugins=no _crash_debug=auto @@ -1682,6 +1684,9 @@ --enable-sortsub) _sortsub=yes ;; --disable-sortsub) _sortsub=no ;; + --charset=*) + _charset=`echo $ac_option | cut -d '=' -f 2` + ;; --language=*) _language=`echo $ac_option | cut -d '=' -f 2` ;; @@ -6649,6 +6654,7 @@ EXTRA_INC = $_inc_extra $_inc_gtk OPTFLAGS = -I../libvo -I../../libvo $_inc_x11 $CFLAGS \$(EXTRA_INC) STRIPBINARIES = $_stripbinaries +CHARSET = $_charset HELP_FILE = $_mp_help PRG = $_prg