slitaz-base-files rev 179

add/fix i18n; make pot && make msgmerge; add ru.po
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 21 10:44:59 2012 +0300 (2012-05-21)
parents 8e5e47cb6581
children d8adb319ac56
files Makefile po/fr.po po/ru.po po/slitaz-base.pot rootfs/usr/bin/man rootfs/usr/lib/slitaz/libpkg.sh rootfs/usr/share/applications/httpd-cgi.desktop rootfs/var/www/cgi-bin/cgi-env.sh rootfs/var/www/cgi-bin/index.cgi
line diff
     1.1 --- a/Makefile	Mon May 21 10:11:24 2012 +0300
     1.2 +++ b/Makefile	Mon May 21 10:44:59 2012 +0300
     1.3 @@ -3,7 +3,7 @@
     1.4  
     1.5  PACKAGE="slitaz-base"
     1.6  PREFIX?=/usr
     1.7 -LINGUAS?=fr
     1.8 +LINGUAS?=fr ru
     1.9  
    1.10  all: help
    1.11  
     2.1 --- a/po/fr.po	Mon May 21 10:11:24 2012 +0300
     2.2 +++ b/po/fr.po	Mon May 21 10:44:59 2012 +0300
     2.3 @@ -7,7 +7,7 @@
     2.4  msgstr ""
     2.5  "Project-Id-Version: SliTaz Base\n"
     2.6  "Report-Msgid-Bugs-To: \n"
     2.7 -"POT-Creation-Date: 2012-05-17 09:08+0200\n"
     2.8 +"POT-Creation-Date: 2012-05-21 10:33+0300\n"
     2.9  "PO-Revision-Date: 2012-05-17 09:09+0100\n"
    2.10  "Last-Translator: Christophe Lincoln <pankso@slitaz.org>\n"
    2.11  "Language-Team: French\n"
    2.12 @@ -17,35 +17,90 @@
    2.13  "Content-Transfer-Encoding: 8bit\n"
    2.14  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
    2.15  
    2.16 -#: rootfs/lib/libtaz.sh:19
    2.17 +#: rootfs/lib/libtaz.sh:28
    2.18  msgid "Done"
    2.19  msgstr "Fait"
    2.20  
    2.21 -#: rootfs/lib/libtaz.sh:20
    2.22 +#: rootfs/lib/libtaz.sh:29
    2.23  msgid "Failed"
    2.24  msgstr "Echec"
    2.25  
    2.26 -#: rootfs/lib/libtaz.sh:109
    2.27 +#: rootfs/lib/libtaz.sh:121
    2.28  msgid "You must be root to execute:"
    2.29  msgstr "Vous devez être root pour exécuter:"
    2.30  
    2.31 -#: rootfs/lib/libtaz.sh:121
    2.32 +#: rootfs/lib/libtaz.sh:134
    2.33  msgid "y"
    2.34  msgstr "o"
    2.35  
    2.36 -#: rootfs/lib/libtaz.sh:122
    2.37 +#: rootfs/lib/libtaz.sh:135
    2.38  msgid "Y"
    2.39  msgstr "O"
    2.40  
    2.41 -#: rootfs/lib/libtaz.sh:123
    2.42 +#: rootfs/lib/libtaz.sh:136
    2.43  msgid "n"
    2.44  msgstr "n"
    2.45  
    2.46 -#: rootfs/lib/libtaz.sh:124
    2.47 +#: rootfs/lib/libtaz.sh:137
    2.48  msgid "N"
    2.49  msgstr "N"
    2.50  
    2.51  #: rootfs/usr/lib/slitaz/libpkg.sh:32
    2.52 -msgid "is not a tazpkg. Exiting"
    2.53 +#, fuzzy, sh-format
    2.54 +msgid "$file is not a tazpkg. Exiting"
    2.55  msgstr "n'est pas un tazpkg. Arrêt"
    2.56  
    2.57 +#: rootfs/var/www/cgi-bin/cgi-env.sh:10 rootfs/var/www/cgi-bin/cgi-env.sh:17
    2.58 +msgid "CGI SHell Environment"
    2.59 +msgstr ""
    2.60 +
    2.61 +#: rootfs/var/www/cgi-bin/cgi-env.sh:23
    2.62 +msgid ""
    2.63 +"Welcome to the SliTaz web server CGI Shell environment. Let the power of "
    2.64 +"SHell script meet the web! Here you can check HTTP info and try some "
    2.65 +"requests."
    2.66 +msgstr ""
    2.67 +
    2.68 +#: rootfs/var/www/cgi-bin/cgi-env.sh:27
    2.69 +msgid ""
    2.70 +"Including /usr/lib/slitaz/httphelper.sh in your scripts lets you use PHP-"
    2.71 +"like syntax such as: $(GET var)"
    2.72 +msgstr ""
    2.73 +
    2.74 +#: rootfs/var/www/cgi-bin/cgi-env.sh:30
    2.75 +msgid "QUERY_STRING test:"
    2.76 +msgstr ""
    2.77 +
    2.78 +#: rootfs/var/www/cgi-bin/cgi-env.sh:35
    2.79 +msgid "HTTP Info"
    2.80 +msgstr ""
    2.81 +
    2.82 +#: rootfs/var/www/cgi-bin/cgi-env.sh:40
    2.83 +msgid "HTTP Helper"
    2.84 +msgstr ""
    2.85 +
    2.86 +#: rootfs/var/www/cgi-bin/index.cgi:15 rootfs/var/www/cgi-bin/index.cgi:22
    2.87 +#, sh-format
    2.88 +msgid "Index of $QUERY_STRING"
    2.89 +msgstr ""
    2.90 +
    2.91 +#: rootfs/usr/bin/man:15
    2.92 +msgid "Missing Retawq web browser..."
    2.93 +msgstr ""
    2.94 +
    2.95 +#: rootfs/usr/bin/man:16
    2.96 +msgid "Please run: su -c 'tazpkg get-install retawq'"
    2.97 +msgstr ""
    2.98 +
    2.99 +#: rootfs/usr/bin/man:30
   2.100 +msgid "Usage:"
   2.101 +msgstr ""
   2.102 +
   2.103 +#: rootfs/usr/bin/man:30
   2.104 +msgid "man [section] command"
   2.105 +msgstr ""
   2.106 +
   2.107 +#: rootfs/usr/bin/man:78
   2.108 +#, sh-format
   2.109 +msgid "No manual entry for $TOPIC$MSG"
   2.110 +msgstr ""
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/po/ru.po	Mon May 21 10:44:59 2012 +0300
     3.3 @@ -0,0 +1,106 @@
     3.4 +# Russian translations for SliTaz Base package.
     3.5 +# Copyright (C) SliTaz Association
     3.6 +# This file is distributed under the same license as the SliTaz Base package.
     3.7 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2012.
     3.8 +#
     3.9 +msgid ""
    3.10 +msgstr ""
    3.11 +"Project-Id-Version: SliTaz Base\n"
    3.12 +"Report-Msgid-Bugs-To: \n"
    3.13 +"POT-Creation-Date: 2012-05-21 10:33+0300\n"
    3.14 +"PO-Revision-Date: 2012-05-21 10:35+0300\n"
    3.15 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
    3.16 +"Language-Team: \n"
    3.17 +"Language: ru\n"
    3.18 +"MIME-Version: 1.0\n"
    3.19 +"Content-Type: text/plain; charset=utf-8\n"
    3.20 +"Content-Transfer-Encoding: 8bit\n"
    3.21 +"X-Poedit-Language: Russian\n"
    3.22 +"X-Poedit-Basepath: ../\n"
    3.23 +"X-Poedit-SearchPath-0: .\n"
    3.24 +
    3.25 +#: rootfs/lib/libtaz.sh:28
    3.26 +msgid "Done"
    3.27 +msgstr "Готово"
    3.28 +
    3.29 +#: rootfs/lib/libtaz.sh:29
    3.30 +msgid "Failed"
    3.31 +msgstr "Ошибка"
    3.32 +
    3.33 +#: rootfs/lib/libtaz.sh:121
    3.34 +msgid "You must be root to execute:"
    3.35 +msgstr "Вы должны обладать правами root для запуска:"
    3.36 +
    3.37 +#: rootfs/lib/libtaz.sh:134
    3.38 +msgid "y"
    3.39 +msgstr ""
    3.40 +
    3.41 +#: rootfs/lib/libtaz.sh:135
    3.42 +msgid "Y"
    3.43 +msgstr ""
    3.44 +
    3.45 +#: rootfs/lib/libtaz.sh:136
    3.46 +msgid "n"
    3.47 +msgstr ""
    3.48 +
    3.49 +#: rootfs/lib/libtaz.sh:137
    3.50 +msgid "N"
    3.51 +msgstr ""
    3.52 +
    3.53 +#: rootfs/usr/lib/slitaz/libpkg.sh:32
    3.54 +#, sh-format
    3.55 +msgid "$file is not a tazpkg. Exiting"
    3.56 +msgstr "Файл $file не является пакетом. Выход"
    3.57 +
    3.58 +#: rootfs/var/www/cgi-bin/cgi-env.sh:10
    3.59 +#: rootfs/var/www/cgi-bin/cgi-env.sh:17
    3.60 +msgid "CGI SHell Environment"
    3.61 +msgstr "Переменные окружения CGI"
    3.62 +
    3.63 +#: rootfs/var/www/cgi-bin/cgi-env.sh:23
    3.64 +msgid "Welcome to the SliTaz web server CGI Shell environment. Let the power of SHell script meet the web! Here you can check HTTP info and try some requests."
    3.65 +msgstr "Добро пожаловать на сервер, работающий на SliTaz. Пусть мощь скриптов послужит вебу. Здесь вы можете проверить информацию HTTP и попробовать сделать некоторые запросы."
    3.66 +
    3.67 +#: rootfs/var/www/cgi-bin/cgi-env.sh:27
    3.68 +msgid "Including /usr/lib/slitaz/httphelper.sh in your scripts lets you use PHP-like syntax such as: $(GET var)"
    3.69 +msgstr "Включив /usr/lib/slitaz/httphelper.sh в ваши скрипты, вы сможете использовать PHP-подобный синтаксис: $(GET var)"
    3.70 +
    3.71 +#: rootfs/var/www/cgi-bin/cgi-env.sh:30
    3.72 +msgid "QUERY_STRING test:"
    3.73 +msgstr "Тест QUERY_STRING:"
    3.74 +
    3.75 +#: rootfs/var/www/cgi-bin/cgi-env.sh:35
    3.76 +msgid "HTTP Info"
    3.77 +msgstr "Информация HTTP"
    3.78 +
    3.79 +#: rootfs/var/www/cgi-bin/cgi-env.sh:40
    3.80 +msgid "HTTP Helper"
    3.81 +msgstr "Помощник HTTP"
    3.82 +
    3.83 +#: rootfs/var/www/cgi-bin/index.cgi:15
    3.84 +#: rootfs/var/www/cgi-bin/index.cgi:22
    3.85 +#, sh-format
    3.86 +msgid "Index of $QUERY_STRING"
    3.87 +msgstr "Содержимое папки $QUERY_STRING"
    3.88 +
    3.89 +#: rootfs/usr/bin/man:15
    3.90 +msgid "Missing Retawq web browser..."
    3.91 +msgstr "Отсутствует браузер Retawq…"
    3.92 +
    3.93 +#: rootfs/usr/bin/man:16
    3.94 +msgid "Please run: su -c 'tazpkg get-install retawq'"
    3.95 +msgstr "Для его установки выполните: su -c 'tazpkg get-install retawq'"
    3.96 +
    3.97 +#: rootfs/usr/bin/man:30
    3.98 +msgid "Usage:"
    3.99 +msgstr "Использование:"
   3.100 +
   3.101 +#: rootfs/usr/bin/man:30
   3.102 +msgid "man [section] command"
   3.103 +msgstr "man [раздел] команда"
   3.104 +
   3.105 +#: rootfs/usr/bin/man:78
   3.106 +#, sh-format
   3.107 +msgid "No manual entry for $TOPIC$MSG"
   3.108 +msgstr "Руководство по $TOPIC$MSG отсутствует"
   3.109 +
     4.1 --- a/po/slitaz-base.pot	Mon May 21 10:11:24 2012 +0300
     4.2 +++ b/po/slitaz-base.pot	Mon May 21 10:44:59 2012 +0300
     4.3 @@ -1,5 +1,5 @@
     4.4  # SOME DESCRIPTIVE TITLE.
     4.5 -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     4.6 +# Copyright (C) YEAR SliTaz Association
     4.7  # This file is distributed under the same license as the PACKAGE package.
     4.8  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     4.9  #
    4.10 @@ -8,7 +8,7 @@
    4.11  msgstr ""
    4.12  "Project-Id-Version: SliTaz Base\n"
    4.13  "Report-Msgid-Bugs-To: \n"
    4.14 -"POT-Creation-Date: 2012-05-17 09:08+0200\n"
    4.15 +"POT-Creation-Date: 2012-05-21 10:33+0300\n"
    4.16  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    4.17  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    4.18  "Language-Team: LANGUAGE <LL@li.org>\n"
    4.19 @@ -17,34 +17,90 @@
    4.20  "Content-Type: text/plain; charset=CHARSET\n"
    4.21  "Content-Transfer-Encoding: 8bit\n"
    4.22  
    4.23 -#: rootfs/lib/libtaz.sh:19
    4.24 +#: rootfs/lib/libtaz.sh:28
    4.25  msgid "Done"
    4.26  msgstr ""
    4.27  
    4.28 -#: rootfs/lib/libtaz.sh:20
    4.29 +#: rootfs/lib/libtaz.sh:29
    4.30  msgid "Failed"
    4.31  msgstr ""
    4.32  
    4.33 -#: rootfs/lib/libtaz.sh:109
    4.34 +#: rootfs/lib/libtaz.sh:121
    4.35  msgid "You must be root to execute:"
    4.36  msgstr ""
    4.37  
    4.38 -#: rootfs/lib/libtaz.sh:121
    4.39 +#: rootfs/lib/libtaz.sh:134
    4.40  msgid "y"
    4.41  msgstr ""
    4.42  
    4.43 -#: rootfs/lib/libtaz.sh:122
    4.44 +#: rootfs/lib/libtaz.sh:135
    4.45  msgid "Y"
    4.46  msgstr ""
    4.47  
    4.48 -#: rootfs/lib/libtaz.sh:123
    4.49 +#: rootfs/lib/libtaz.sh:136
    4.50  msgid "n"
    4.51  msgstr ""
    4.52  
    4.53 -#: rootfs/lib/libtaz.sh:124
    4.54 +#: rootfs/lib/libtaz.sh:137
    4.55  msgid "N"
    4.56  msgstr ""
    4.57  
    4.58  #: rootfs/usr/lib/slitaz/libpkg.sh:32
    4.59 -msgid "is not a tazpkg. Exiting"
    4.60 +#, sh-format
    4.61 +msgid "$file is not a tazpkg. Exiting"
    4.62  msgstr ""
    4.63 +
    4.64 +#: rootfs/var/www/cgi-bin/cgi-env.sh:10 rootfs/var/www/cgi-bin/cgi-env.sh:17
    4.65 +msgid "CGI SHell Environment"
    4.66 +msgstr ""
    4.67 +
    4.68 +#: rootfs/var/www/cgi-bin/cgi-env.sh:23
    4.69 +msgid ""
    4.70 +"Welcome to the SliTaz web server CGI Shell environment. Let the power of "
    4.71 +"SHell script meet the web! Here you can check HTTP info and try some "
    4.72 +"requests."
    4.73 +msgstr ""
    4.74 +
    4.75 +#: rootfs/var/www/cgi-bin/cgi-env.sh:27
    4.76 +msgid ""
    4.77 +"Including /usr/lib/slitaz/httphelper.sh in your scripts lets you use PHP-"
    4.78 +"like syntax such as: $(GET var)"
    4.79 +msgstr ""
    4.80 +
    4.81 +#: rootfs/var/www/cgi-bin/cgi-env.sh:30
    4.82 +msgid "QUERY_STRING test:"
    4.83 +msgstr ""
    4.84 +
    4.85 +#: rootfs/var/www/cgi-bin/cgi-env.sh:35
    4.86 +msgid "HTTP Info"
    4.87 +msgstr ""
    4.88 +
    4.89 +#: rootfs/var/www/cgi-bin/cgi-env.sh:40
    4.90 +msgid "HTTP Helper"
    4.91 +msgstr ""
    4.92 +
    4.93 +#: rootfs/var/www/cgi-bin/index.cgi:15 rootfs/var/www/cgi-bin/index.cgi:22
    4.94 +#, sh-format
    4.95 +msgid "Index of $QUERY_STRING"
    4.96 +msgstr ""
    4.97 +
    4.98 +#: rootfs/usr/bin/man:15
    4.99 +msgid "Missing Retawq web browser..."
   4.100 +msgstr ""
   4.101 +
   4.102 +#: rootfs/usr/bin/man:16
   4.103 +msgid "Please run: su -c 'tazpkg get-install retawq'"
   4.104 +msgstr ""
   4.105 +
   4.106 +#: rootfs/usr/bin/man:30
   4.107 +msgid "Usage:"
   4.108 +msgstr ""
   4.109 +
   4.110 +#: rootfs/usr/bin/man:30
   4.111 +msgid "man [section] command"
   4.112 +msgstr ""
   4.113 +
   4.114 +#: rootfs/usr/bin/man:78
   4.115 +#, sh-format
   4.116 +msgid "No manual entry for $TOPIC$MSG"
   4.117 +msgstr ""
     5.1 --- a/rootfs/usr/bin/man	Mon May 21 10:11:24 2012 +0300
     5.2 +++ b/rootfs/usr/bin/man	Mon May 21 10:44:59 2012 +0300
     5.3 @@ -5,9 +5,15 @@
     5.4  #
     5.5  . /lib/libtaz.sh
     5.6  
     5.7 +# Internationalization.
     5.8 +. /usr/bin/gettext.sh
     5.9 +TEXTDOMAIN='slitaz-base'
    5.10 +. /etc/locale.conf
    5.11 +export TEXTDOMAIN LANG
    5.12 +
    5.13  if [ ! -x /usr/bin/retawq ]; then
    5.14 -	echo -e "\nMissing Retawq web browser..."
    5.15 -	echo -e "Please run: su -c 'tazpkg get-install retawq'\n"
    5.16 +	echo; gettext "Missing Retawq web browser..."; echo
    5.17 +	gettext "Please run: su -c 'tazpkg get-install retawq'"; echo -e "\n"
    5.18  	exit 0
    5.19  fi
    5.20  
    5.21 @@ -21,7 +27,7 @@
    5.22  	''|-*)
    5.23  		cat <<EOT
    5.24  
    5.25 -$(boldify "Usage:") man [section] command
    5.26 +$(boldify "$(gettext 'Usage:')") $(gettext "man [section] command")
    5.27  
    5.28  EOT
    5.29  		return ;;
    5.30 @@ -69,7 +75,7 @@
    5.31  
    5.32  (wget -O - "http://mirror.slitaz.org/man/$SECTION/$TOPIC.html" || \
    5.33  	wget -O - "http://man.he.net/?topic=$TOPIC&section=$SECTION") 2> /dev/null | \
    5.34 -	awk "BEGIN { s=0; n=0 } /<PRE>/ { s=1 } { if (s) { print; n++} } /<\/PRE>/ { s=0 } END { if (n == 0) print \"No manual entry for $TOPIC$MSG\" }" | \
    5.35 +	awk "BEGIN { s=0; n=0 } /<PRE>/ { s=1 } { if (s) { print; n++} } /<\/PRE>/ { s=0 } END { if (n == 0) print \"$(eval_gettext 'No manual entry for $TOPIC$MSG')\" }" | \
    5.36  	sed -e 's/<[^>]*>//g' -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&amp;/\&/g' | less -M
    5.37  
    5.38  exit 0
     6.1 --- a/rootfs/usr/lib/slitaz/libpkg.sh	Mon May 21 10:11:24 2012 +0300
     6.2 +++ b/rootfs/usr/lib/slitaz/libpkg.sh	Mon May 21 10:44:59 2012 +0300
     6.3 @@ -29,7 +29,7 @@
     6.4  check_valid_tazpkg() {
     6.5  	local file=$1
     6.6  	if ! is_valid_tazpkg $file; then
     6.7 -		echo -n "$file "; gettext "is not a tazpkg. Exiting"; newline
     6.8 +		eval_gettext "\$file is not a tazpkg. Exiting"; newline
     6.9  		exit 1
    6.10  	fi
    6.11  }
     7.1 --- a/rootfs/usr/share/applications/httpd-cgi.desktop	Mon May 21 10:11:24 2012 +0300
     7.2 +++ b/rootfs/usr/share/applications/httpd-cgi.desktop	Mon May 21 10:44:59 2012 +0300
     7.3 @@ -1,6 +1,7 @@
     7.4  [Desktop Entry]
     7.5  Encoding=UTF-8
     7.6  Name=CGI SHell Environment
     7.7 +Name[ru]=Переменные окружения CGI
     7.8  Exec=browser http://localhost/cgi-bin/cgi-env.sh
     7.9  Icon=text-x-script
    7.10  Type=Application
     8.1 --- a/rootfs/var/www/cgi-bin/cgi-env.sh	Mon May 21 10:11:24 2012 +0300
     8.2 +++ b/rootfs/var/www/cgi-bin/cgi-env.sh	Mon May 21 10:44:59 2012 +0300
     8.3 @@ -1,4 +1,11 @@
     8.4  #!/bin/sh
     8.5 +
     8.6 +# Internationalization.
     8.7 +. /usr/bin/gettext.sh
     8.8 +TEXTDOMAIN='slitaz-base'
     8.9 +. /etc/locale.conf
    8.10 +export TEXTDOMAIN LANG
    8.11 +
    8.12  . /usr/lib/slitaz/httphelper.sh
    8.13  header
    8.14  
    8.15 @@ -6,43 +13,40 @@
    8.16  <!DOCTYPE html>
    8.17  <html xmlns="http://www.w3.org/1999/xhtml">
    8.18  <head>
    8.19 -	<title>CGI SHell Environment</title>
    8.20  	<meta charset="utf-8" />
    8.21 +	<title>$(gettext "CGI SHell Environment")</title>
    8.22  	<link rel="stylesheet" type="text/css" href="../style.css" />
    8.23  </head>
    8.24  <body>
    8.25  
    8.26  <!-- Header -->
    8.27  <div id="header">
    8.28 -	<h1>CGI SHell Environment</h1>
    8.29 +	<h1>$(gettext "CGI SHell Environment")</h1>
    8.30  </div>
    8.31  
    8.32  <!-- Content -->
    8.33  <div id="content">
    8.34  
    8.35 -<p>
    8.36 -	Welcome to the SliTaz web server CGI Shell environment. Let the power of
    8.37 -	SHell script meet the web! Here you can check HTTP info and try some
    8.38 -	requests. 
    8.39 -</p>
    8.40 -<p>
    8.41 -	Including /usr/lib/slitaz/httphelper.sh in your scripts lets you
    8.42 -	use PHP-like syntax such as: \$(GET var)
    8.43 -</p>
    8.44 -<p>
    8.45 -	QUERY_STRING test: 
    8.46 +<p>$(gettext "Welcome to the SliTaz web server CGI Shell environment. Let the \
    8.47 +power of SHell script meet the web! Here you can check HTTP info and try some \
    8.48 +requests.")</p>
    8.49 +
    8.50 +<p>$(gettext "Including /usr/lib/slitaz/httphelper.sh in your scripts lets you \
    8.51 +use PHP-like syntax such as: \$(GET var)")</p>
    8.52 +
    8.53 +<p>$(gettext "QUERY_STRING test:")
    8.54  	<a href="$SCRIPT_NAME?var=value">$SCRIPT_NAME?var=value</a>
    8.55  </p>
    8.56  
    8.57 -<h2>HTTP Info</h2>
    8.58 -<pre>
    8.59 -$(httpinfo)
    8.60 -</pre>
    8.61  
    8.62 -<h2>HTTP Helper</h2>
    8.63 -<pre>
    8.64 -$(httphelper)
    8.65 -</pre>
    8.66 +<h2>$(gettext "HTTP Info")</h2>
    8.67 +
    8.68 +<pre>$(httpinfo)</pre>
    8.69 +
    8.70 +
    8.71 +<h2>$(gettext "HTTP Helper")</h2>
    8.72 +
    8.73 +<pre>$(httphelper)</pre>
    8.74  
    8.75  <!-- End content -->
    8.76  </div>
     9.1 --- a/rootfs/var/www/cgi-bin/index.cgi	Mon May 21 10:11:24 2012 +0300
     9.2 +++ b/rootfs/var/www/cgi-bin/index.cgi	Mon May 21 10:44:59 2012 +0300
     9.3 @@ -1,19 +1,25 @@
     9.4  #!/bin/sh
     9.5  
     9.6 -[ ! -d ..$QUERY_STRING ] && echo "HTTP/1.1 404 Not Found" || cat <<EOT  
     9.7 +# Internationalization.
     9.8 +. /usr/bin/gettext.sh
     9.9 +TEXTDOMAIN='slitaz-base'
    9.10 +. /etc/locale.conf
    9.11 +export TEXTDOMAIN LANG
    9.12 +
    9.13 +[ ! -d ..$QUERY_STRING ] && echo "HTTP/1.1 404 Not Found" || cat <<EOT
    9.14  Content-type: text/html
    9.15  
    9.16  <!DOCTYPE html>
    9.17  <html xmlns="http://www.w3.org/1999/xhtml">
    9.18  <head>
    9.19 -	<title>Index of $QUERY_STRING</title>
    9.20 +	<title>$(eval_gettext "Index of \$QUERY_STRING")</title>
    9.21  	<meta charset="utf-8" />
    9.22  	<link rel="stylesheet" type="text/css" href="/style.css" />
    9.23  </head>
    9.24  
    9.25  <!-- Header -->
    9.26  <div id="header">
    9.27 -	<h1>Index of $QUERY_STRING</h1>
    9.28 +	<h1>$(eval_gettext "Index of \$QUERY_STRING")</h1>
    9.29  </div>
    9.30  
    9.31  <!-- Content -->
    9.32 @@ -27,7 +33,7 @@
    9.33  
    9.34  <!-- Footer -->
    9.35  <div id="footer">
    9.36 -    Copyright &copy; $(date +%Y) <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
    9.37 +	Copyright &copy; $(date +%Y) <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
    9.38  </div>
    9.39  
    9.40  </body>