slitaz-tools rev 623
gettextize tazkeymap and make pot
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jun 14 22:35:33 2011 +0200 (2011-06-14) |
parents | e2f467522651 |
children | 550c1817defd |
files | Makefile po/slitaz-boxes/slitaz-boxes.pot po/slitaz-tools/slitaz-tools.pot po/tazbox/tazbox.pot po/tazdrop/tazdrop.pot tinyutils/tazkeymap tinyutils/tazlocale |
line diff
1.1 --- a/Makefile Tue Jun 14 22:19:47 2011 +0200 1.2 +++ b/Makefile Tue Jun 14 22:35:33 2011 +0200 1.3 @@ -21,7 +21,7 @@ 1.4 @echo -n "Generating SliTaz Tools pot file... " 1.5 @xgettext -o po/slitaz-tools/slitaz-tools.pot -L Shell \ 1.6 --package-name="SliTaz Tools" \ 1.7 - ./tinyutils/tazlocale 1.8 + ./tinyutils/tazlocale ./tinyutils/tazkeymap 1.9 @echo "done" 1.10 1.11 boxes-pot:
2.1 --- a/po/slitaz-boxes/slitaz-boxes.pot Tue Jun 14 22:19:47 2011 +0200 2.2 +++ b/po/slitaz-boxes/slitaz-boxes.pot Tue Jun 14 22:35:33 2011 +0200 2.3 @@ -8,7 +8,7 @@ 2.4 msgstr "" 2.5 "Project-Id-Version: SliTaz Boxes\n" 2.6 "Report-Msgid-Bugs-To: \n" 2.7 -"POT-Creation-Date: 2011-06-14 22:15+0200\n" 2.8 +"POT-Creation-Date: 2011-06-14 22:33+0200\n" 2.9 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 2.10 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 2.11 "Language-Team: LANGUAGE <LL@li.org>\n"
3.1 --- a/po/slitaz-tools/slitaz-tools.pot Tue Jun 14 22:19:47 2011 +0200 3.2 +++ b/po/slitaz-tools/slitaz-tools.pot Tue Jun 14 22:35:33 2011 +0200 3.3 @@ -8,7 +8,7 @@ 3.4 msgstr "" 3.5 "Project-Id-Version: SliTaz Tools\n" 3.6 "Report-Msgid-Bugs-To: \n" 3.7 -"POT-Creation-Date: 2011-06-14 22:15+0200\n" 3.8 +"POT-Creation-Date: 2011-06-14 22:33+0200\n" 3.9 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 3.10 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 3.11 "Language-Team: LANGUAGE <LL@li.org>\n" 3.12 @@ -17,15 +17,28 @@ 3.13 "Content-Type: text/plain; charset=CHARSET\n" 3.14 "Content-Transfer-Encoding: 8bit\n" 3.15 3.16 -#: tinyutils/tazlocale:16 3.17 -msgid "You must be root to run" 3.18 +#: tinyutils/tazlocale:16 tinyutils/tazkeymap:17 3.19 +msgid "You must be root to run:" 3.20 msgstr "" 3.21 3.22 -#: tinyutils/tazlocale:17 3.23 +#: tinyutils/tazlocale:17 tinyutils/tazkeymap:18 3.24 msgid "Type su and root password to become super-user" 3.25 msgstr "" 3.26 3.27 +#: tinyutils/tazlocale:78 3.28 +msgid "SliTaz language configuration" 3.29 +msgstr "" 3.30 + 3.31 #: tinyutils/tazlocale:103 3.32 msgid "" 3.33 "Please logout of your current session and login again to use new locale." 3.34 msgstr "" 3.35 + 3.36 +#: tinyutils/tazkeymap:53 3.37 +msgid "SliTaz keymap configuration" 3.38 +msgstr "" 3.39 + 3.40 +#: tinyutils/tazkeymap:94 3.41 +msgid "" 3.42 +"Please logout of your current session and login again to use new keyboard." 3.43 +msgstr ""
4.1 --- a/po/tazbox/tazbox.pot Tue Jun 14 22:19:47 2011 +0200 4.2 +++ b/po/tazbox/tazbox.pot Tue Jun 14 22:35:33 2011 +0200 4.3 @@ -8,7 +8,7 @@ 4.4 msgstr "" 4.5 "Project-Id-Version: TazBox\n" 4.6 "Report-Msgid-Bugs-To: \n" 4.7 -"POT-Creation-Date: 2011-06-14 22:15+0200\n" 4.8 +"POT-Creation-Date: 2011-06-14 22:33+0200\n" 4.9 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 4.10 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 4.11 "Language-Team: LANGUAGE <LL@li.org>\n"
5.1 --- a/po/tazdrop/tazdrop.pot Tue Jun 14 22:19:47 2011 +0200 5.2 +++ b/po/tazdrop/tazdrop.pot Tue Jun 14 22:35:33 2011 +0200 5.3 @@ -8,7 +8,7 @@ 5.4 msgstr "" 5.5 "Project-Id-Version: TazDrop\n" 5.6 "Report-Msgid-Bugs-To: \n" 5.7 -"POT-Creation-Date: 2011-06-14 22:15+0200\n" 5.8 +"POT-Creation-Date: 2011-06-14 22:33+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"
6.1 --- a/tinyutils/tazkeymap Tue Jun 14 22:19:47 2011 +0200 6.2 +++ b/tinyutils/tazkeymap Tue Jun 14 22:35:33 2011 +0200 6.3 @@ -7,11 +7,15 @@ 6.4 # 6.5 : ${DIALOG=dialog} 6.6 6.7 +# Internationalization 6.8 +. /usr/bin/gettext.sh 6.9 +TEXTDOMAIN='slitaz-tools' 6.10 +export TEXTDOMAIN 6.11 + 6.12 # Check if user is root. 6.13 -# 6.14 if test $(id -u) != 0; then 6.15 - echo -e "\nYou must be root to run `basename $0`!" 6.16 - echo -e "Type 'su' and root password to become super-user.\n" 6.17 + gettext "You must be root to run:"; echo " $(basename $0)" 6.18 + gettext "Type su and root password to become super-user"; echo 6.19 exit 1 6.20 fi 6.21 6.22 @@ -46,8 +50,8 @@ 6.23 # Default to text mode dialog. 6.24 exec 3>&1 6.25 value=`$DIALOG --clear \ 6.26 - --title " SliTaz keymap configuration " \ 6.27 - --menu "\nPlease select your keymap, current config: $CUR" 15 70 5 \ 6.28 + --title " $(gettext "SliTaz keymap configuration") " \ 6.29 + --menu "" 15 70 5 \ 6.30 "us" "USA" \ 6.31 "fr_CH-latin1" "Suisse Romande" \ 6.32 "fr-latin1" "France" \ 6.33 @@ -82,26 +86,16 @@ 6.34 retval=$? 6.35 exec 3>&- 6.36 case $retval in 6.37 - 0) 6.38 - continue ;; 6.39 - 1) 6.40 - echo "Cancel pressed." 6.41 - exit 0 ;; 6.42 - 255) 6.43 - if test -n "$value" ; then 6.44 - echo "$value" 6.45 - else 6.46 - echo "ESC pressed." 6.47 - exit 0 6.48 - fi ;; 6.49 + 0) continue ;; 6.50 + 1|255) exit 0 ;; 6.51 esac 6.52 # If it's a reconfiguration give an info message. 6.53 if [ -s /etc/keymap.conf ]; then 6.54 + msg=$(gettext "\ 6.55 +Please logout of your current session and login again to use new keyboard.") 6.56 $DIALOG --clear \ 6.57 - --title " Keyboard mapping information\n" \ 6.58 - --msgbox " 6.59 - Please logout of your current session and login again to use $value 6.60 - keyboard.\n" 16 70 6.61 + --title " Information " \ 6.62 + --msgbox "$msg" 16 70 6.63 fi 6.64 kmap=$value 6.65 echo "$kmap" > /etc/keymap.conf
7.1 --- a/tinyutils/tazlocale Tue Jun 14 22:19:47 2011 +0200 7.2 +++ b/tinyutils/tazlocale Tue Jun 14 22:35:33 2011 +0200 7.3 @@ -13,7 +13,7 @@ 7.4 7.5 # Check if user is root. 7.6 if test $(id -u) != 0; then 7.7 - gettext "You must be root to run"; echo $(basename $0) 7.8 + gettext "You must be root to run:"; echo " $(basename $0)" 7.9 gettext "Type su and root password to become super-user"; echo 7.10 exit 1 7.11 fi 7.12 @@ -75,7 +75,7 @@ 7.13 { 7.14 exec 3>&1 7.15 locale=`$DIALOG --clear \ 7.16 - --title " SliTaz language configuration " \ 7.17 + --title " $(gettext "SliTaz language configuration") " \ 7.18 --menu "" 15 70 5 \ 7.19 "en" "English" \ 7.20 $(get_locale_name) \