The time now is Fri 20 Apr 2018, 09:09
All times are UTC - 4 |
Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Tue 28 Nov 2006, 10:30 Post subject:
Rox 1.2 displaying UTF-8 |
|
http://www.murga-linux.com/puppy/viewtopic.php?t=11221
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: | #!/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
|
Mark
|
Back to top
|
|
 |
wow
Joined: 29 Jun 2006 Posts: 1036 Location: Peru
|
Posted: Tue 28 Nov 2006, 20:20 Post subject:
|
|
I'm wondering why Puppy 1.xx series can show the right characters even if not have .utf8 locales
_________________

|
Back to top
|
|
 |
wow
Joined: 29 Jun 2006 Posts: 1036 Location: Peru
|
Posted: Thu 14 Dec 2006, 21:34 Post subject:
|
|
I've found another solution, just install this dotpup: iso8859-1_XLC_LOCALE.pup(8.62 KB) and restart X, thats all, no additional steps, requirements, etc . It's part of libX11-X11R7.1-1.0.1, you can compile it by yourself or download mine:
libX11-X11R7.1-1.0.1.tar.gz (1.37 MB) (build i486, prefix /usr/X11R7)
Sources http://mirror.sg.depaul.edu/pub/x.org/X11R7.1/src/lib/
License GPL
Up: before / Down: after
_________________

|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Fri 15 Dec 2006, 05:46 Post subject:
|
|
wow. Thanks a lot for your solution.
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
[ Time: 0.0386s ][ Queries: 11 (0.0033s) ][ GZIP on ] |