Setting the default "keyboard layout" and "desktop language" are part of 
the fix for bug6431.

http://defect.opensolaris.org/bz/show_bug.cgi?id=6431

Setting the default "keyboard layout" is trivial since "kbd -s" accepts 
  an argument. Setting the keyboard laytout to the default of English 
can be accomplished with the following command:

        /usr/bin/kbd -s US-English

Setting the default "desktop language" is not as trivial since the 
set_lang command does not accept an argument and requires user input. I 
have 2 possible solutions, both work. I wanted to know what folks feel 
is the best solution.

Solution 1:
        Use the set_lang command and echo the selection number associated with 
English.
        e.g.:
        echo 3 | set_lang

        The downside to this approach is if the menu presented by the set_lang 
command changes and "3" is no longer associated with English.

Solution 2:
        Do what the set_lang command does:
create the directory /etc/sysconfig then echo the value for English into 
file: /etc/sysconfig/language

        e.g.:
        mkdir -p "/etc/sysconfig"
        echo "RC_LANG=en_US.UTF.8" > /etc/sysconfig/language"

This seems to me to be the safer of the 2 solutions.

Thoughts?

Thanks, Joe

Reply via email to