# HG changeset patch # User Christophe Lincoln # Date 1335781890 -7200 # Node ID efed9a606eccd718721eea47d21c9b2f0246354d # Parent d73b013e8885c639cccd32f9de1dae2af96e0897 tazlocale: display message in new selected locale diff -r d73b013e8885 -r efed9a606ecc po/slitaz-boxes/slitaz-boxes.pot --- a/po/slitaz-boxes/slitaz-boxes.pot Mon Apr 30 12:01:07 2012 +0200 +++ b/po/slitaz-boxes/slitaz-boxes.pot Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: SliTaz Boxes\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff -r d73b013e8885 -r efed9a606ecc po/slitaz-tools/es_AR.po --- a/po/slitaz-tools/es_AR.po Mon Apr 30 12:01:07 2012 +0200 +++ b/po/slitaz-tools/es_AR.po Mon Apr 30 12:31:30 2012 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: SliTaz Tools\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: 2011-08-11 00:08-0300\n" "Last-Translator: Lucas Gioia \n" "Language-Team: LANGUAGE \n" @@ -20,11 +20,11 @@ msgid "Configuring system locale for:" msgstr "" -#: tinyutils/tazlocale:96 +#: tinyutils/tazlocale:97 msgid "SliTaz language configuration" msgstr "SliTaz configuración del lenguaje" -#: tinyutils/tazlocale:114 +#: tinyutils/tazlocale:116 msgid "" "Please logout of your current session and login again to use new locale." msgstr "" diff -r d73b013e8885 -r efed9a606ecc po/slitaz-tools/fr.po --- a/po/slitaz-tools/fr.po Mon Apr 30 12:01:07 2012 +0200 +++ b/po/slitaz-tools/fr.po Mon Apr 30 12:31:30 2012 +0200 @@ -7,8 +7,8 @@ msgstr "" "Project-Id-Version: SliTaz Tools\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" -"PO-Revision-Date: 2012-04-30 10:44+0100\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" +"PO-Revision-Date: 2012-04-30 12:02+0100\n" "Last-Translator: Christophe Lincoln \n" "Language-Team: French\n" "Language: fr\n" @@ -19,13 +19,13 @@ #: tinyutils/tazlocale:83 msgid "Configuring system locale for:" -msgstr "" +msgstr "Configuration de la langue du système:" -#: tinyutils/tazlocale:96 +#: tinyutils/tazlocale:97 msgid "SliTaz language configuration" msgstr "Configuration de la langue" -#: tinyutils/tazlocale:114 +#: tinyutils/tazlocale:116 msgid "" "Please logout of your current session and login again to use new locale." msgstr "" diff -r d73b013e8885 -r efed9a606ecc po/slitaz-tools/pt_BR.po --- a/po/slitaz-tools/pt_BR.po Mon Apr 30 12:01:07 2012 +0200 +++ b/po/slitaz-tools/pt_BR.po Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: slitaz-tools\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: 2011-06-18 16:37-0300\n" "Last-Translator: Claudinei Pereira \n" "Language-Team: Portuguese \n" @@ -22,11 +22,11 @@ msgid "Configuring system locale for:" msgstr "" -#: tinyutils/tazlocale:96 +#: tinyutils/tazlocale:97 msgid "SliTaz language configuration" msgstr "Configuração de Linguagem do SliTaz" -#: tinyutils/tazlocale:114 +#: tinyutils/tazlocale:116 msgid "" "Please logout of your current session and login again to use new locale." msgstr "" diff -r d73b013e8885 -r efed9a606ecc po/slitaz-tools/slitaz-tools.pot --- a/po/slitaz-tools/slitaz-tools.pot Mon Apr 30 12:01:07 2012 +0200 +++ b/po/slitaz-tools/slitaz-tools.pot Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: SliTaz Tools\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,11 +21,11 @@ msgid "Configuring system locale for:" msgstr "" -#: tinyutils/tazlocale:96 +#: tinyutils/tazlocale:97 msgid "SliTaz language configuration" msgstr "" -#: tinyutils/tazlocale:114 +#: tinyutils/tazlocale:116 msgid "" "Please logout of your current session and login again to use new locale." msgstr "" diff -r d73b013e8885 -r efed9a606ecc po/tazbox/tazbox.pot --- a/po/tazbox/tazbox.pot Mon Apr 30 12:01:07 2012 +0200 +++ b/po/tazbox/tazbox.pot Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: TazBox\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff -r d73b013e8885 -r efed9a606ecc po/tazdrop/tazdrop.pot --- a/po/tazdrop/tazdrop.pot Mon Apr 30 12:01:07 2012 +0200 +++ b/po/tazdrop/tazdrop.pot Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: TazDrop\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff -r d73b013e8885 -r efed9a606ecc po/tazinst/tazinst.pot --- a/po/tazinst/tazinst.pot Mon Apr 30 12:01:07 2012 +0200 +++ b/po/tazinst/tazinst.pot Mon Apr 30 12:31:30 2012 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Tazinst\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-04-30 12:00+0200\n" +"POT-Creation-Date: 2012-04-30 12:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff -r d73b013e8885 -r efed9a606ecc tinyutils/tazlocale --- a/tinyutils/tazlocale Mon Apr 30 12:01:07 2012 +0200 +++ b/tinyutils/tazlocale Mon Apr 30 12:31:30 2012 +0200 @@ -79,11 +79,12 @@ # Config /etc/locale.conf system_config() { - export LANG=$locale LC_ALL=$locale + export LC_ALL=$locale gettext "Configuring system locale for:"; echo -n " $locale" echo "LANG=$locale" > /etc/locale.conf echo "LC_ALL=$locale" >> /etc/locale.conf - status + # Resource libtaz.sh to get status message in the correct locale. + . /lib/libtaz.sh && status gen_utf8_locale link_language_files } @@ -111,11 +112,10 @@ # If it's a reconfiguration give an info message. if [ -n "$RECONFIG" ]; then + export LC_ALL=$locale msg=$(gettext "\ Please logout of your current session and login again to use new locale.") - $DIALOG --clear \ - --title " Information " \ - --msgbox "$msg" 16 70 + $DIALOG --clear --title " Information " --msgbox "$msg" 16 70 fi system_config }