slitaz-tools diff tinyutils/tazlocale @ rev 764

tazinst: remove (cooking) from grub menu template
author Richard Dunbar <mojo@slitaz.org>
date Tue May 15 06:41:31 2012 +0000 (2012-05-15)
parents f73c8f4bb66c
children 8c8b2c646040
line diff
     1.1 --- a/tinyutils/tazlocale	Mon Apr 30 14:04:35 2012 +0200
     1.2 +++ b/tinyutils/tazlocale	Tue May 15 06:41:31 2012 +0000
     1.3 @@ -8,7 +8,6 @@
     1.4  # Author: Christophe Lincoln <pankso@slitaz.org>
     1.5  #
     1.6  . /lib/libtaz.sh
     1.7 -check_root
     1.8  
     1.9  # Internationalization
    1.10  . /usr/bin/gettext.sh
    1.11 @@ -121,6 +120,9 @@
    1.12  }
    1.13  
    1.14  case "$1" in
    1.15 +	info)
    1.16 +		gettext "Config file   :"; echo " /etc/locale.conf"
    1.17 +		gettext "Current locale:"; echo " $LANG" ;;
    1.18  	list)
    1.19  		for i in $(ls -1 /usr/share/i18n/locales | grep ^[a-z][a-z]_[A-Z][A-Z])
    1.20  		do
    1.21 @@ -130,10 +132,12 @@
    1.22  	"")
    1.23  		# No args: display Ncurses dialog.
    1.24  		: ${DIALOG=dialog}
    1.25 +		check_root
    1.26  		dialog_menu ;;
    1.27  	*)
    1.28  		# Usage: tazlocale LANG_COUNTRY
    1.29  		locale=$1
    1.30 +		check_root
    1.31  		system_config
    1.32  		gen_utf8_locale
    1.33  		link_language_files ;;