slitaz-tools rev 174

tazlocale: give a msg if reconfiguration and add desktop file
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 06 01:35:34 2008 +0200 (2008-05-06)
parents 03f99c1394ce
children 0ef288a84ef4
files stuff/desktop-files/tazlocale.desktop tinyutils/tazlocale
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/stuff/desktop-files/tazlocale.desktop	Tue May 06 01:35:34 2008 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +[Desktop Entry]
     1.5 +Encoding=UTF-8
     1.6 +Name=System Language
     1.7 +Name[fr]=Langue du système
     1.8 +Exec=subox 'xterm -e tazlocale'
     1.9 +Icon=/usr/share/icons/Tango/16x16/apps/preferences-desktop-locale.png
    1.10 +Terminal=true
    1.11 +Type=Application
    1.12 +Categories=Settings;DesktopSettings;
     2.1 --- a/tinyutils/tazlocale	Mon May 05 22:55:15 2008 +0200
     2.2 +++ b/tinyutils/tazlocale	Tue May 06 01:35:34 2008 +0200
     2.3 @@ -72,6 +72,15 @@
     2.4  	value='C'
     2.5  fi
     2.6  
     2.7 +# If it's a reconfiguration give an info message.
     2.8 +if [ -f /etc/locale.conf ]; then
     2.9 +	$DIALOG --clear \
    2.10 +		--title " Locale setting information " \
    2.11 +		--msgbox "\n
    2.12 +Please logout you current session and login again to use $value 
    2.13 +locale.\n" 16 70
    2.14 +fi
    2.15 +
    2.16  # System configuration
    2.17  echo "LANG=$value" > /etc/locale.conf
    2.18  echo "LC_ALL=$value" >> /etc/locale.conf