X window kernel build util appears in german

Support knowledgebase (jrodman_guikernbuildlang)
Applies to

SuSE Linux: Versions up to (including) 6.0
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.

Symptom:

When using the 'Compile Kernel' tool, the normal program for "make xconfig" appears, but when this finishes, a program appears in German entitled Einstellungen zum Kernel-Kompilieren.

Cause:

The kernel script which creates this dialog actually has support for english and other languages. Unfortunately during a tricky set of subshells it forgets to read its configuration file again.

Solution:

Modifying the script which creates this dialog will allow the build to come up in english and possibly other languages. The filename of the script is /usr/X11R6/lib/X11/susewm/startcmd/kernel. The crucial section begins on line 24. Here is this section from the original file:

su - -c 'export DISPLAY=`hostname`:0;\
    cd /usr/src/linux && \
    make xconfig && \
    touch /usr/src/linux/susewm.log && \
    `wish -f /usr/X11R6/lib/X11/susewm/startcmd/kernelchoice.tcl` 2>> /usr/src/linux/compile.log >> /usr/src/linux/compile.log'

Here is a modified version which will fix the problem:

su - -c 'export DISPLAY=`hostname`:0;\
    test -f /var/lib/susewm/susewm.config && \
	. /var/lib/susewm/susewm.config; \
    cd /usr/src/linux && \
    make xconfig && \
    touch /usr/src/linux/susewm.log && \
    `wish -f /usr/X11R6/lib/X11/susewm/startcmd/kernelchoice.tcl $LANGUAGE` >> /usr/src/linux/compile.log 2>&1'

Be very careful about these command lines. The '\' character must be the very last one on each line, and the line beginning with `wish ends with 2>&1'


Keywords: LINUX, XCONFIG, COMPILE, KERNEL, SUSEWM, GERMAN, ENGLISH

Categories: X Applications , Kernel

SDB-jrodman_guikernbuildlang, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 27. Apr 1999
SuSE Linux AG - Last generated: 26. Mai 1999 by jrodman (sdb_gen 1.40.0)