The Gtk-themeselector with the option to choose a font:
http://www.murga-linux.com/puppy/viewtopic.php?t=10616
This script can be used as a base for a custom, simplified language-setter, I used it for a servicepack for Muppy005.
You must save it using utf-8 activated in the save-as dialog in leafpad.
Code: Select all
#!/bin/bash
# set language
Xdialog --no-cancel --menu "Language - Sprache\n
\n
" 15 70 8 "english" "" "de_DE (Deutschland) " "" "de_AT (Österreich) " "" "de_CH (Schweiz) " "" "de_LU (Luxemburg) " "" 2>/tmp/muppyresult
result=`tail -n 1 /tmp/muppyresult|sed "s/ .*//"`
rm -f /tmp/muppyresult
echo ------- $result
if [ "$result" == "english" ];then
NEWLANG="LANG=en_US"
else
NEWLANG="LANG=$result.utf8"
fi
CURRENTLOCALE="`cat /etc/profile | grep "LANG=" | cut -f 2 -d '=' | cut -f 1 -d ' ' | cut -f 1`"
OLDLANG="LANG=$CURRENTLOCALE"
cat /etc/profile | sed -e "s/${OLDLANG}/${NEWLANG}/" > /tmp/profile
sync
cp -f /tmp/profile /etc/profile
sync
cd
setrox1
myLOCALE="`cat /etc/profile | grep "LANG=" | cut -f 2 -d '=' | cut -f 1 -d ' ' | cut -f 1`"
CURRENTLOCALE=`echo "$myLOCALE" | sed "s/_.*//"`
echo $CURRENTLOCALE
if [ "$CURRENTLOCALE" == "de" ];then
Xdialog --msgbox "X muß eventuell neu gestartet werden,
damit die Sprachänderung übernommen wird!" 0 0
else
Xdialog --msgbox "you might have to restart X
so that the language-settings take effect!" 0 0
fi