Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 07:27
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Rox 1.2 displaying UTF-8
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send private message Visit poster's website 
wow

Joined: 29 Jun 2006
Posts: 985
Location: Peru

PostPosted: 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
View user's profile Send private message 
wow

Joined: 29 Jun 2006
Posts: 985
Location: Peru

PostPosted: 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 Smile . 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
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5650
Location: Valåmoen, Norway

PostPosted: Fri 15 Dec 2006, 05:46    Post subject:  

wow. Thanks a lot for your solution. Laughing
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

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.0553s ][ Queries: 11 (0.0073s) ][ GZIP on ]