slitaz-tools rev 751

tazlocale: display message in new selected locale
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 30 12:31:30 2012 +0200 (2012-04-30)
parents d73b013e8885
children f73c8f4bb66c
files po/slitaz-boxes/slitaz-boxes.pot po/slitaz-tools/es_AR.po po/slitaz-tools/fr.po po/slitaz-tools/pt_BR.po po/slitaz-tools/slitaz-tools.pot po/tazbox/tazbox.pot po/tazdrop/tazdrop.pot po/tazinst/tazinst.pot tinyutils/tazlocale
line diff
     1.1 --- a/po/slitaz-boxes/slitaz-boxes.pot	Mon Apr 30 12:01:07 2012 +0200
     1.2 +++ b/po/slitaz-boxes/slitaz-boxes.pot	Mon Apr 30 12:31:30 2012 +0200
     1.3 @@ -8,7 +8,7 @@
     1.4  msgstr ""
     1.5  "Project-Id-Version: SliTaz Boxes\n"
     1.6  "Report-Msgid-Bugs-To: \n"
     1.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     1.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     1.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1.11  "Language-Team: LANGUAGE <LL@li.org>\n"
     2.1 --- a/po/slitaz-tools/es_AR.po	Mon Apr 30 12:01:07 2012 +0200
     2.2 +++ b/po/slitaz-tools/es_AR.po	Mon Apr 30 12:31:30 2012 +0200
     2.3 @@ -7,7 +7,7 @@
     2.4  msgstr ""
     2.5  "Project-Id-Version: SliTaz Tools\n"
     2.6  "Report-Msgid-Bugs-To: \n"
     2.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     2.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     2.9  "PO-Revision-Date: 2011-08-11 00:08-0300\n"
    2.10  "Last-Translator: Lucas Gioia <lucas.lucas.lucas24@gmail.com>\n"
    2.11  "Language-Team: LANGUAGE <LL@li.org>\n"
    2.12 @@ -20,11 +20,11 @@
    2.13  msgid "Configuring system locale for:"
    2.14  msgstr ""
    2.15  
    2.16 -#: tinyutils/tazlocale:96
    2.17 +#: tinyutils/tazlocale:97
    2.18  msgid "SliTaz language configuration"
    2.19  msgstr "SliTaz configuración del lenguaje"
    2.20  
    2.21 -#: tinyutils/tazlocale:114
    2.22 +#: tinyutils/tazlocale:116
    2.23  msgid ""
    2.24  "Please logout of your current session and login again to use new locale."
    2.25  msgstr ""
     3.1 --- a/po/slitaz-tools/fr.po	Mon Apr 30 12:01:07 2012 +0200
     3.2 +++ b/po/slitaz-tools/fr.po	Mon Apr 30 12:31:30 2012 +0200
     3.3 @@ -7,8 +7,8 @@
     3.4  msgstr ""
     3.5  "Project-Id-Version: SliTaz Tools\n"
     3.6  "Report-Msgid-Bugs-To: \n"
     3.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     3.8 -"PO-Revision-Date: 2012-04-30 10:44+0100\n"
     3.9 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
    3.10 +"PO-Revision-Date: 2012-04-30 12:02+0100\n"
    3.11  "Last-Translator: Christophe Lincoln <pankso@slitaz.org>\n"
    3.12  "Language-Team: French\n"
    3.13  "Language: fr\n"
    3.14 @@ -19,13 +19,13 @@
    3.15  
    3.16  #: tinyutils/tazlocale:83
    3.17  msgid "Configuring system locale for:"
    3.18 -msgstr ""
    3.19 +msgstr "Configuration de la langue du système:"
    3.20  
    3.21 -#: tinyutils/tazlocale:96
    3.22 +#: tinyutils/tazlocale:97
    3.23  msgid "SliTaz language configuration"
    3.24  msgstr "Configuration de la langue"
    3.25  
    3.26 -#: tinyutils/tazlocale:114
    3.27 +#: tinyutils/tazlocale:116
    3.28  msgid ""
    3.29  "Please logout of your current session and login again to use new locale."
    3.30  msgstr ""
     4.1 --- a/po/slitaz-tools/pt_BR.po	Mon Apr 30 12:01:07 2012 +0200
     4.2 +++ b/po/slitaz-tools/pt_BR.po	Mon Apr 30 12:31:30 2012 +0200
     4.3 @@ -8,7 +8,7 @@
     4.4  msgstr ""
     4.5  "Project-Id-Version: slitaz-tools\n"
     4.6  "Report-Msgid-Bugs-To: \n"
     4.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     4.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     4.9  "PO-Revision-Date: 2011-06-18 16:37-0300\n"
    4.10  "Last-Translator: Claudinei Pereira <claudinei@slitaz.org>\n"
    4.11  "Language-Team: Portuguese <i18n@slitaz.org>\n"
    4.12 @@ -22,11 +22,11 @@
    4.13  msgid "Configuring system locale for:"
    4.14  msgstr ""
    4.15  
    4.16 -#: tinyutils/tazlocale:96
    4.17 +#: tinyutils/tazlocale:97
    4.18  msgid "SliTaz language configuration"
    4.19  msgstr "Configuração de Linguagem do SliTaz"
    4.20  
    4.21 -#: tinyutils/tazlocale:114
    4.22 +#: tinyutils/tazlocale:116
    4.23  msgid ""
    4.24  "Please logout of your current session and login again to use new locale."
    4.25  msgstr ""
     5.1 --- a/po/slitaz-tools/slitaz-tools.pot	Mon Apr 30 12:01:07 2012 +0200
     5.2 +++ b/po/slitaz-tools/slitaz-tools.pot	Mon Apr 30 12:31:30 2012 +0200
     5.3 @@ -8,7 +8,7 @@
     5.4  msgstr ""
     5.5  "Project-Id-Version: SliTaz Tools\n"
     5.6  "Report-Msgid-Bugs-To: \n"
     5.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     5.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     5.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    5.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    5.11  "Language-Team: LANGUAGE <LL@li.org>\n"
    5.12 @@ -21,11 +21,11 @@
    5.13  msgid "Configuring system locale for:"
    5.14  msgstr ""
    5.15  
    5.16 -#: tinyutils/tazlocale:96
    5.17 +#: tinyutils/tazlocale:97
    5.18  msgid "SliTaz language configuration"
    5.19  msgstr ""
    5.20  
    5.21 -#: tinyutils/tazlocale:114
    5.22 +#: tinyutils/tazlocale:116
    5.23  msgid ""
    5.24  "Please logout of your current session and login again to use new locale."
    5.25  msgstr ""
     6.1 --- a/po/tazbox/tazbox.pot	Mon Apr 30 12:01:07 2012 +0200
     6.2 +++ b/po/tazbox/tazbox.pot	Mon Apr 30 12:31:30 2012 +0200
     6.3 @@ -8,7 +8,7 @@
     6.4  msgstr ""
     6.5  "Project-Id-Version: TazBox\n"
     6.6  "Report-Msgid-Bugs-To: \n"
     6.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     6.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     6.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    6.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    6.11  "Language-Team: LANGUAGE <LL@li.org>\n"
     7.1 --- a/po/tazdrop/tazdrop.pot	Mon Apr 30 12:01:07 2012 +0200
     7.2 +++ b/po/tazdrop/tazdrop.pot	Mon Apr 30 12:31:30 2012 +0200
     7.3 @@ -8,7 +8,7 @@
     7.4  msgstr ""
     7.5  "Project-Id-Version: TazDrop\n"
     7.6  "Report-Msgid-Bugs-To: \n"
     7.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     7.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     7.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    7.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    7.11  "Language-Team: LANGUAGE <LL@li.org>\n"
     8.1 --- a/po/tazinst/tazinst.pot	Mon Apr 30 12:01:07 2012 +0200
     8.2 +++ b/po/tazinst/tazinst.pot	Mon Apr 30 12:31:30 2012 +0200
     8.3 @@ -8,7 +8,7 @@
     8.4  msgstr ""
     8.5  "Project-Id-Version: Tazinst\n"
     8.6  "Report-Msgid-Bugs-To: \n"
     8.7 -"POT-Creation-Date: 2012-04-30 12:00+0200\n"
     8.8 +"POT-Creation-Date: 2012-04-30 12:30+0200\n"
     8.9  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    8.10  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    8.11  "Language-Team: LANGUAGE <LL@li.org>\n"
     9.1 --- a/tinyutils/tazlocale	Mon Apr 30 12:01:07 2012 +0200
     9.2 +++ b/tinyutils/tazlocale	Mon Apr 30 12:31:30 2012 +0200
     9.3 @@ -79,11 +79,12 @@
     9.4  
     9.5  # Config /etc/locale.conf
     9.6  system_config() {
     9.7 -	export LANG=$locale LC_ALL=$locale
     9.8 +	export LC_ALL=$locale
     9.9  	gettext "Configuring system locale for:"; echo -n " $locale"
    9.10  	echo "LANG=$locale" > /etc/locale.conf
    9.11  	echo "LC_ALL=$locale" >> /etc/locale.conf
    9.12 -	status
    9.13 +	# Resource libtaz.sh to get status message in the correct locale.
    9.14 +	. /lib/libtaz.sh && status
    9.15  	gen_utf8_locale
    9.16  	link_language_files
    9.17  }
    9.18 @@ -111,11 +112,10 @@
    9.19  
    9.20  	# If it's a reconfiguration give an info message.
    9.21  	if [ -n "$RECONFIG" ]; then
    9.22 +		export LC_ALL=$locale
    9.23  		msg=$(gettext "\
    9.24  Please logout of your current session and login again to use new locale.")
    9.25 -		$DIALOG --clear \
    9.26 -			--title " Information " \
    9.27 -			--msgbox "$msg" 16 70
    9.28 +		$DIALOG --clear --title " Information " --msgbox "$msg" 16 70
    9.29  	fi
    9.30  	system_config
    9.31  }