slitaz-forge rev 261

pkgs: gettextize; looks like it works (via ?lang=* or preferred browser lang); I need help with right locales names (ru - don't work; ru_RU - work on SliTaz; ru_RU.utf8 - work on Mint) etc.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 11 04:16:55 2012 +0300 (2012-04-11)
parents e15090f4b65a
children 541fe6a0a564
files pkgs/README pkgs/lib/footer.html pkgs/lib/header.html pkgs/lib/header.sh pkgs/po/de.po pkgs/po/fr.po pkgs/po/install.sh pkgs/po/pt_BR.po pkgs/po/ru.po pkgs/po/tazpkg-web.pot pkgs/po/zh.po pkgs/search.sh pkgs/style/favicon.ico pkgs/style/logo.png pkgs/style/slitaz.css
line diff
     1.1 --- a/pkgs/README	Wed Apr 11 00:30:27 2012 +0200
     1.2 +++ b/pkgs/README	Wed Apr 11 04:16:55 2012 +0300
     1.3 @@ -2,15 +2,18 @@
     1.4  ================================================================================
     1.5  
     1.6  
     1.7 -This is TazPKG web interface with a search engine for packages, files, 
     1.8 +This is TazPKG web interface with a search engine for packages, files,
     1.9  dependencies and more.
    1.10  
    1.11 +IN THIS RELEASE
    1.12 +---------------
    1.13 +
    1.14 +	* Use GET so we can copy past urls from a browser
    1.15 +	* Gettextise the search engine and use PO files
    1.16  
    1.17  TODO
    1.18  ----
    1.19  
    1.20 -	* Use GET so we can copy past urls from a browser
    1.21 -	* Gettextise the search engine and use PO files
    1.22  	* Add package page with all info and an install link
    1.23  	  (tazpkg:// or tazpkg: works in Midori
    1.24  
     2.1 --- a/pkgs/lib/footer.html	Wed Apr 11 00:30:27 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,8 +0,0 @@
     2.4 -<!-- End of content -->
     2.5 -</div>
     2.6 -
     2.7 -<!-- Footer -->
     2.8 -<div id="footer">SliTaz Packages</div>
     2.9 -
    2.10 -</body>
    2.11 -</html>
     3.1 --- a/pkgs/lib/header.html	Wed Apr 11 00:30:27 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,29 +0,0 @@
     3.4 -<!DOCTYPE html>
     3.5 -<html xmlns="http://www.w3.org/1999/xhtml">
     3.6 -<head>
     3.7 -	<meta charset="utf-8" />
     3.8 -	<title>SliTaz Packages — Search %SEARCH%</title>
     3.9 -	<meta name="description" content="slitaz packages search" />
    3.10 -	<meta name="keywords" lang="en" content="SliTaz, Tazpkg" />
    3.11 -	<meta name="robots" content="index, follow, all" />
    3.12 -	<meta name="expires" content="never" />
    3.13 -	<link rel="shortcut icon" href="style/favicon.ico" />
    3.14 -	<link rel="stylesheet" type="text/css" href="style/slitaz.css" />
    3.15 -	<link rel="stylesheet" type="text/css" href="pkgs.css" />
    3.16 -</head>
    3.17 -<body>
    3.18 -
    3.19 -<div id="header">
    3.20 -	<div id="logo"></div>
    3.21 -	<div id="network">
    3.22 -		<a href="http://www.slitaz.org/">Home</a>
    3.23 -		<a href="http://scn.slitaz.org/">Community</a>
    3.24 -		<a href="http://doc.slitaz.org/">Doc</a>
    3.25 -		<a href="http://forum.slitaz.org/">Forum</a>
    3.26 -		<a href="http://slitaz.pro/">Pro</a>
    3.27 -		<a href="http://shop.slitaz.org/">Shop</a>
    3.28 -		<a href="http://bugs.slitaz.org/">Bugs</a>
    3.29 -		<a href="http://hg.slitaz.org/">Hg</a>
    3.30 -	</div>
    3.31 -	<h1><a href="./">SliTaz Packages</a></h1>
    3.32 -</div>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/pkgs/lib/header.sh	Wed Apr 11 04:16:55 2012 +0300
     4.3 @@ -0,0 +1,32 @@
     4.4 +cat << _EOF_
     4.5 +<!DOCTYPE html>
     4.6 +<html xmlns="http://www.w3.org/1999/xhtml">
     4.7 +<head>
     4.8 +	<meta charset="utf-8" />
     4.9 +	<title>$(eval_gettext "SliTaz Packages — Search \$SEARCH")</title>
    4.10 +	<meta name="description" content="slitaz packages search" />
    4.11 +	<meta name="keywords" lang="en" content="SliTaz, Tazpkg" />
    4.12 +	<meta name="robots" content="index, follow, all" />
    4.13 +	<meta name="expires" content="never" />
    4.14 +	<link rel="shortcut icon" href="style/favicon.ico" />
    4.15 +	<link rel="stylesheet" type="text/css" href="style/slitaz.css" />
    4.16 +	<link rel="stylesheet" type="text/css" href="pkgs.css" />
    4.17 +</head>
    4.18 +<body>
    4.19 +
    4.20 +<div id="header">
    4.21 +	<div id="logo"></div>
    4.22 +	<div id="network">
    4.23 +		<a href="http://www.slitaz.org/">$(gettext Home)</a>
    4.24 +		<a href="http://scn.slitaz.org/">$(gettext Community)</a>
    4.25 +		<a href="http://doc.slitaz.org/">$(gettext Doc)</a>
    4.26 +		<a href="http://forum.slitaz.org/">$(gettext Forum)</a>
    4.27 +		<a href="http://slitaz.pro/">$(gettext Pro)</a>
    4.28 +		<a href="http://shop.slitaz.org/">$(gettext Shop)</a>
    4.29 +		<a href="http://bugs.slitaz.org/">$(gettext Bugs)</a>
    4.30 +		<a href="http://hg.slitaz.org/">$(gettext Hg)</a>
    4.31 +	</div>
    4.32 +	<h1><a href="./">$(gettext "SliTaz Packages")</a></h1>
    4.33 +</div>
    4.34 +
    4.35 +_EOF_
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/pkgs/po/de.po	Wed Apr 11 04:16:55 2012 +0300
     5.3 @@ -0,0 +1,201 @@
     5.4 +msgid ""
     5.5 +msgstr ""
     5.6 +"Project-Id-Version: Tazpkg Web\n"
     5.7 +"Report-Msgid-Bugs-To: \n"
     5.8 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
     5.9 +"PO-Revision-Date: \n"
    5.10 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
    5.11 +"Language-Team: \n"
    5.12 +"Language: \n"
    5.13 +"MIME-Version: 1.0\n"
    5.14 +"Content-Type: text/plain; charset=UTF-8\n"
    5.15 +"Content-Transfer-Encoding: 8bit\n"
    5.16 +"Plural-Forms: nplurals=2; plural=n != 1;\n"
    5.17 +"X-Poedit-Language: German\n"
    5.18 +"X-Poedit-SourceCharset: utf-8\n"
    5.19 +"X-Poedit-Basepath: ../\n"
    5.20 +"X-Poedit-SearchPath-0: .\n"
    5.21 +"X-Poedit-SearchPath-1: lib\n"
    5.22 +
    5.23 +#: search.sh:134
    5.24 +msgid "Package"
    5.25 +msgstr "Paket"
    5.26 +
    5.27 +#: search.sh:135
    5.28 +msgid "Description"
    5.29 +msgstr "Beschreibung"
    5.30 +
    5.31 +#: search.sh:136
    5.32 +msgid "Tags"
    5.33 +msgstr ""
    5.34 +
    5.35 +#: search.sh:137
    5.36 +msgid "Receipt"
    5.37 +msgstr ""
    5.38 +
    5.39 +#: search.sh:138
    5.40 +msgid "Depends"
    5.41 +msgstr "Abhängigkeiten"
    5.42 +
    5.43 +#: search.sh:139
    5.44 +msgid "Build depends"
    5.45 +msgstr ""
    5.46 +
    5.47 +#: search.sh:140
    5.48 +msgid "File"
    5.49 +msgstr "Datei"
    5.50 +
    5.51 +#: search.sh:141
    5.52 +msgid "File list"
    5.53 +msgstr "Datei liste"
    5.54 +
    5.55 +#: search.sh:142
    5.56 +msgid "common files"
    5.57 +msgstr ""
    5.58 +
    5.59 +#: search.sh:146
    5.60 +msgid "cooking"
    5.61 +msgstr "Cooking"
    5.62 +
    5.63 +#: search.sh:150
    5.64 +msgid "tiny"
    5.65 +msgstr ""
    5.66 +
    5.67 +#: search.sh:151
    5.68 +msgid "undigest"
    5.69 +msgstr ""
    5.70 +
    5.71 +#: search.sh:153
    5.72 +msgid "Search"
    5.73 +msgstr "Suche"
    5.74 +
    5.75 +#: search.sh:171
    5.76 +#, sh-format
    5.77 +msgid "$PKGS package"
    5.78 +msgid_plural "$PKGS packages"
    5.79 +msgstr[0] ""
    5.80 +msgstr[1] ""
    5.81 +
    5.82 +#: search.sh:172
    5.83 +#, sh-format
    5.84 +msgid "and $FILES file in $SLITAZ_VERSION database"
    5.85 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
    5.86 +msgstr[0] ""
    5.87 +msgstr[1] ""
    5.88 +
    5.89 +#: search.sh:179
    5.90 +#: lib/header.sh:29
    5.91 +msgid "SliTaz Packages"
    5.92 +msgstr ""
    5.93 +
    5.94 +#: search.sh:287
    5.95 +msgid ""
    5.96 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
    5.97 +"\t<b>every</b> package is supposed to depend on them."
    5.98 +msgstr ""
    5.99 +
   5.100 +#: search.sh:335
   5.101 +#, sh-format
   5.102 +msgid "No package $SEARCH"
   5.103 +msgstr "Kein Paket für $SEARCH"
   5.104 +
   5.105 +#: search.sh:378
   5.106 +#: search.sh:390
   5.107 +msgid "Search for packages"
   5.108 +msgstr ""
   5.109 +
   5.110 +#: search.sh:397
   5.111 +msgid "Depends loops"
   5.112 +msgstr "Abhängigkeiten loops"
   5.113 +
   5.114 +#: search.sh:412
   5.115 +#, sh-format
   5.116 +msgid "Dependency tree for: $SEARCH"
   5.117 +msgstr "Abhängigkeiten von: $SEARCH"
   5.118 +
   5.119 +#: search.sh:423
   5.120 +#, sh-format
   5.121 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
   5.122 +msgstr "Abhängigkeiten von: $SEARCH (SUGGESTED)"
   5.123 +
   5.124 +#: search.sh:432
   5.125 +#, sh-format
   5.126 +msgid "Reverse dependency tree for: $SEARCH"
   5.127 +msgstr "Abhängigkeit für: $SEARCH"
   5.128 +
   5.129 +#: search.sh:445
   5.130 +msgid "Build depends loops"
   5.131 +msgstr ""
   5.132 +
   5.133 +#: search.sh:461
   5.134 +#, sh-format
   5.135 +msgid "$SEARCH needs these packages to be built"
   5.136 +msgstr ""
   5.137 +
   5.138 +#: search.sh:469
   5.139 +#, sh-format
   5.140 +msgid "Packages who need $SEARCH to be built"
   5.141 +msgstr ""
   5.142 +
   5.143 +#: search.sh:482
   5.144 +#, sh-format
   5.145 +msgid "These packages may overload files of $SEARCH"
   5.146 +msgstr ""
   5.147 +
   5.148 +#: search.sh:505
   5.149 +#: search.sh:528
   5.150 +#: search.sh:545
   5.151 +#: search.sh:553
   5.152 +#: search.sh:566
   5.153 +#: search.sh:578
   5.154 +#: search.sh:590
   5.155 +#, sh-format
   5.156 +msgid "Result for: $SEARCH"
   5.157 +msgstr "Resultate für : $SEARCH"
   5.158 +
   5.159 +#: search.sh:596
   5.160 +msgid "description"
   5.161 +msgstr ""
   5.162 +
   5.163 +#: search.sh:608
   5.164 +#, sh-format
   5.165 +msgid "Result for: $SEARCH (package providing $vpkg)"
   5.166 +msgstr "Resultate für : $SEARCH (package providing $vpkg)"
   5.167 +
   5.168 +#: lib/header.sh:6
   5.169 +#, sh-format
   5.170 +msgid "SliTaz Packages — Search $SEARCH"
   5.171 +msgstr ""
   5.172 +
   5.173 +#: lib/header.sh:20
   5.174 +msgid "Home"
   5.175 +msgstr ""
   5.176 +
   5.177 +#: lib/header.sh:21
   5.178 +msgid "Community"
   5.179 +msgstr ""
   5.180 +
   5.181 +#: lib/header.sh:22
   5.182 +msgid "Doc"
   5.183 +msgstr ""
   5.184 +
   5.185 +#: lib/header.sh:23
   5.186 +msgid "Forum"
   5.187 +msgstr ""
   5.188 +
   5.189 +#: lib/header.sh:24
   5.190 +msgid "Pro"
   5.191 +msgstr ""
   5.192 +
   5.193 +#: lib/header.sh:25
   5.194 +msgid "Shop"
   5.195 +msgstr ""
   5.196 +
   5.197 +#: lib/header.sh:26
   5.198 +msgid "Bugs"
   5.199 +msgstr ""
   5.200 +
   5.201 +#: lib/header.sh:27
   5.202 +msgid "Hg"
   5.203 +msgstr ""
   5.204 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/pkgs/po/fr.po	Wed Apr 11 04:16:55 2012 +0300
     6.3 @@ -0,0 +1,206 @@
     6.4 +# French translation of Tazpkg Web.
     6.5 +# Copyright (C) 2012 www.slitaz.org
     6.6 +# This file is distributed under the same license as the Tazpkg Web package.
     6.7 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2012.
     6.8 +#
     6.9 +msgid ""
    6.10 +msgstr ""
    6.11 +"Project-Id-Version: Tazpkg Web\n"
    6.12 +"Report-Msgid-Bugs-To: \n"
    6.13 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
    6.14 +"PO-Revision-Date: \n"
    6.15 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
    6.16 +"Language-Team: \n"
    6.17 +"Language: \n"
    6.18 +"MIME-Version: 1.0\n"
    6.19 +"Content-Type: text/plain; charset=UTF-8\n"
    6.20 +"Content-Transfer-Encoding: 8bit\n"
    6.21 +"Plural-Forms: nplurals=2; plural=n>1;\n"
    6.22 +"X-Poedit-Language: French\n"
    6.23 +"X-Poedit-SourceCharset: utf-8\n"
    6.24 +"X-Poedit-Basepath: ../\n"
    6.25 +"X-Poedit-SearchPath-0: .\n"
    6.26 +"X-Poedit-SearchPath-1: lib\n"
    6.27 +
    6.28 +#: search.sh:134
    6.29 +msgid "Package"
    6.30 +msgstr "Paquet"
    6.31 +
    6.32 +#: search.sh:135
    6.33 +msgid "Description"
    6.34 +msgstr ""
    6.35 +
    6.36 +#: search.sh:136
    6.37 +msgid "Tags"
    6.38 +msgstr ""
    6.39 +
    6.40 +#: search.sh:137
    6.41 +msgid "Receipt"
    6.42 +msgstr "Recette"
    6.43 +
    6.44 +#: search.sh:138
    6.45 +msgid "Depends"
    6.46 +msgstr "Dépendances"
    6.47 +
    6.48 +#: search.sh:139
    6.49 +msgid "Build depends"
    6.50 +msgstr "Fabrication"
    6.51 +
    6.52 +#: search.sh:140
    6.53 +msgid "File"
    6.54 +msgstr "Fichier"
    6.55 +
    6.56 +#: search.sh:141
    6.57 +msgid "File list"
    6.58 +msgstr "Liste des fichiers"
    6.59 +
    6.60 +#: search.sh:142
    6.61 +msgid "common files"
    6.62 +msgstr "Fichiers communs"
    6.63 +
    6.64 +#: search.sh:146
    6.65 +msgid "cooking"
    6.66 +msgstr ""
    6.67 +
    6.68 +#: search.sh:150
    6.69 +msgid "tiny"
    6.70 +msgstr ""
    6.71 +
    6.72 +#: search.sh:151
    6.73 +msgid "undigest"
    6.74 +msgstr ""
    6.75 +
    6.76 +#: search.sh:153
    6.77 +msgid "Search"
    6.78 +msgstr "Recherche"
    6.79 +
    6.80 +#: search.sh:171
    6.81 +#, sh-format
    6.82 +msgid "$PKGS package"
    6.83 +msgid_plural "$PKGS packages"
    6.84 +msgstr[0] ""
    6.85 +msgstr[1] ""
    6.86 +
    6.87 +#: search.sh:172
    6.88 +#, sh-format
    6.89 +msgid "and $FILES file in $SLITAZ_VERSION database"
    6.90 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
    6.91 +msgstr[0] ""
    6.92 +msgstr[1] ""
    6.93 +
    6.94 +#: search.sh:179
    6.95 +#: lib/header.sh:29
    6.96 +msgid "SliTaz Packages"
    6.97 +msgstr ""
    6.98 +
    6.99 +#: search.sh:287
   6.100 +msgid ""
   6.101 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
   6.102 +"\t<b>every</b> package is supposed to depend on them."
   6.103 +msgstr ""
   6.104 +
   6.105 +#: search.sh:335
   6.106 +#, sh-format
   6.107 +msgid "No package $SEARCH"
   6.108 +msgstr "Paquet $SEARCH introuvable"
   6.109 +
   6.110 +#: search.sh:378
   6.111 +#: search.sh:390
   6.112 +msgid "Search for packages"
   6.113 +msgstr ""
   6.114 +
   6.115 +#: search.sh:397
   6.116 +msgid "Depends loops"
   6.117 +msgstr "Dépendances sans fin"
   6.118 +
   6.119 +#: search.sh:412
   6.120 +#, sh-format
   6.121 +msgid "Dependency tree for: $SEARCH"
   6.122 +msgstr "Arbre des dépendances de $SEARCH"
   6.123 +
   6.124 +#: search.sh:423
   6.125 +#, sh-format
   6.126 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
   6.127 +msgstr "Arbre des dépendances de $SEARCH (SUGGESTED)"
   6.128 +
   6.129 +#: search.sh:432
   6.130 +#, sh-format
   6.131 +msgid "Reverse dependency tree for: $SEARCH"
   6.132 +msgstr "Arbre inversé des dépendances de $SEARCH"
   6.133 +
   6.134 +#: search.sh:445
   6.135 +msgid "Build depends loops"
   6.136 +msgstr "Fabrication sans fin"
   6.137 +
   6.138 +#: search.sh:461
   6.139 +#, sh-format
   6.140 +msgid "$SEARCH needs these packages to be built"
   6.141 +msgstr "$SEARCH a besion de ces paquets pour être fabriqué"
   6.142 +
   6.143 +#: search.sh:469
   6.144 +#, sh-format
   6.145 +msgid "Packages who need $SEARCH to be built"
   6.146 +msgstr "Paquets ayant besion de $SEARCH pour être fabriqués"
   6.147 +
   6.148 +#: search.sh:482
   6.149 +#, sh-format
   6.150 +msgid "These packages may overload files of $SEARCH"
   6.151 +msgstr "Paquets pouvant écraser des fichiers de $SEARCH"
   6.152 +
   6.153 +#: search.sh:505
   6.154 +#: search.sh:528
   6.155 +#: search.sh:545
   6.156 +#: search.sh:553
   6.157 +#: search.sh:566
   6.158 +#: search.sh:578
   6.159 +#: search.sh:590
   6.160 +#, sh-format
   6.161 +msgid "Result for: $SEARCH"
   6.162 +msgstr "Recherche de : $SEARCH"
   6.163 +
   6.164 +#: search.sh:596
   6.165 +msgid "description"
   6.166 +msgstr ""
   6.167 +
   6.168 +#: search.sh:608
   6.169 +#, sh-format
   6.170 +msgid "Result for: $SEARCH (package providing $vpkg)"
   6.171 +msgstr "Recherche de : $SEARCH (package providing $vpkg)"
   6.172 +
   6.173 +#: lib/header.sh:6
   6.174 +#, sh-format
   6.175 +msgid "SliTaz Packages — Search $SEARCH"
   6.176 +msgstr ""
   6.177 +
   6.178 +#: lib/header.sh:20
   6.179 +msgid "Home"
   6.180 +msgstr ""
   6.181 +
   6.182 +#: lib/header.sh:21
   6.183 +msgid "Community"
   6.184 +msgstr ""
   6.185 +
   6.186 +#: lib/header.sh:22
   6.187 +msgid "Doc"
   6.188 +msgstr ""
   6.189 +
   6.190 +#: lib/header.sh:23
   6.191 +msgid "Forum"
   6.192 +msgstr ""
   6.193 +
   6.194 +#: lib/header.sh:24
   6.195 +msgid "Pro"
   6.196 +msgstr ""
   6.197 +
   6.198 +#: lib/header.sh:25
   6.199 +msgid "Shop"
   6.200 +msgstr ""
   6.201 +
   6.202 +#: lib/header.sh:26
   6.203 +msgid "Bugs"
   6.204 +msgstr ""
   6.205 +
   6.206 +#: lib/header.sh:27
   6.207 +msgid "Hg"
   6.208 +msgstr ""
   6.209 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/pkgs/po/install.sh	Wed Apr 11 04:16:55 2012 +0300
     7.3 @@ -0,0 +1,8 @@
     7.4 +#!/bin/bash
     7.5 +# convert all .po to .mo and install them
     7.6 +for pos in *.po
     7.7 +do
     7.8 +	echo -n ${pos}:
     7.9 +	msgfmt "$pos" -o /usr/share/locale/$(echo $pos | cut -d "." -f 1)/LC_MESSAGES/tazpkg-web.mo
    7.10 +	if [ $? = 0 ]; then echo "ok"; else echo "err"; fi
    7.11 +done
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/pkgs/po/pt_BR.po	Wed Apr 11 04:16:55 2012 +0300
     8.3 @@ -0,0 +1,202 @@
     8.4 +msgid ""
     8.5 +msgstr ""
     8.6 +"Project-Id-Version: Tazpkg Web\n"
     8.7 +"Report-Msgid-Bugs-To: \n"
     8.8 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
     8.9 +"PO-Revision-Date: \n"
    8.10 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
    8.11 +"Language-Team: \n"
    8.12 +"Language: \n"
    8.13 +"MIME-Version: 1.0\n"
    8.14 +"Content-Type: text/plain; charset=UTF-8\n"
    8.15 +"Content-Transfer-Encoding: 8bit\n"
    8.16 +"X-Poedit-Language: Portuguese\n"
    8.17 +"X-Poedit-Country: BRAZIL\n"
    8.18 +"X-Poedit-SourceCharset: utf-8\n"
    8.19 +"X-Poedit-Basepath: ../\n"
    8.20 +"Plural-Forms: nplurals=2; plural=n>1;\n"
    8.21 +"X-Poedit-SearchPath-0: .\n"
    8.22 +"X-Poedit-SearchPath-1: lib\n"
    8.23 +
    8.24 +#: search.sh:134
    8.25 +msgid "Package"
    8.26 +msgstr "Pacote"
    8.27 +
    8.28 +#: search.sh:135
    8.29 +msgid "Description"
    8.30 +msgstr "Descrição"
    8.31 +
    8.32 +#: search.sh:136
    8.33 +msgid "Tags"
    8.34 +msgstr ""
    8.35 +
    8.36 +#: search.sh:137
    8.37 +msgid "Receipt"
    8.38 +msgstr ""
    8.39 +
    8.40 +#: search.sh:138
    8.41 +msgid "Depends"
    8.42 +msgstr "Dependências"
    8.43 +
    8.44 +#: search.sh:139
    8.45 +msgid "Build depends"
    8.46 +msgstr ""
    8.47 +
    8.48 +#: search.sh:140
    8.49 +msgid "File"
    8.50 +msgstr "Arquivo"
    8.51 +
    8.52 +#: search.sh:141
    8.53 +msgid "File list"
    8.54 +msgstr "Arquivo lista"
    8.55 +
    8.56 +#: search.sh:142
    8.57 +msgid "common files"
    8.58 +msgstr ""
    8.59 +
    8.60 +#: search.sh:146
    8.61 +msgid "cooking"
    8.62 +msgstr ""
    8.63 +
    8.64 +#: search.sh:150
    8.65 +msgid "tiny"
    8.66 +msgstr ""
    8.67 +
    8.68 +#: search.sh:151
    8.69 +msgid "undigest"
    8.70 +msgstr ""
    8.71 +
    8.72 +#: search.sh:153
    8.73 +msgid "Search"
    8.74 +msgstr "Buscar"
    8.75 +
    8.76 +#: search.sh:171
    8.77 +#, sh-format
    8.78 +msgid "$PKGS package"
    8.79 +msgid_plural "$PKGS packages"
    8.80 +msgstr[0] ""
    8.81 +msgstr[1] ""
    8.82 +
    8.83 +#: search.sh:172
    8.84 +#, sh-format
    8.85 +msgid "and $FILES file in $SLITAZ_VERSION database"
    8.86 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
    8.87 +msgstr[0] ""
    8.88 +msgstr[1] ""
    8.89 +
    8.90 +#: search.sh:179
    8.91 +#: lib/header.sh:29
    8.92 +msgid "SliTaz Packages"
    8.93 +msgstr "SliTaz Pacotes"
    8.94 +
    8.95 +#: search.sh:287
    8.96 +msgid ""
    8.97 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
    8.98 +"\t<b>every</b> package is supposed to depend on them."
    8.99 +msgstr ""
   8.100 +
   8.101 +#: search.sh:335
   8.102 +#, sh-format
   8.103 +msgid "No package $SEARCH"
   8.104 +msgstr "Sem resultado: $SEARCH"
   8.105 +
   8.106 +#: search.sh:378
   8.107 +#: search.sh:390
   8.108 +msgid "Search for packages"
   8.109 +msgstr ""
   8.110 +
   8.111 +#: search.sh:397
   8.112 +msgid "Depends loops"
   8.113 +msgstr "Dependências loops"
   8.114 +
   8.115 +#: search.sh:412
   8.116 +#, sh-format
   8.117 +msgid "Dependency tree for: $SEARCH"
   8.118 +msgstr "Árvore de dependências para: $SEARCH"
   8.119 +
   8.120 +#: search.sh:423
   8.121 +#, sh-format
   8.122 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
   8.123 +msgstr "Árvore de dependências para: $SEARCH (SUGGESTED)"
   8.124 +
   8.125 +#: search.sh:432
   8.126 +#, sh-format
   8.127 +msgid "Reverse dependency tree for: $SEARCH"
   8.128 +msgstr "Árvore de dependências reversa para: $SEARCH"
   8.129 +
   8.130 +#: search.sh:445
   8.131 +msgid "Build depends loops"
   8.132 +msgstr ""
   8.133 +
   8.134 +#: search.sh:461
   8.135 +#, sh-format
   8.136 +msgid "$SEARCH needs these packages to be built"
   8.137 +msgstr ""
   8.138 +
   8.139 +#: search.sh:469
   8.140 +#, sh-format
   8.141 +msgid "Packages who need $SEARCH to be built"
   8.142 +msgstr ""
   8.143 +
   8.144 +#: search.sh:482
   8.145 +#, sh-format
   8.146 +msgid "These packages may overload files of $SEARCH"
   8.147 +msgstr ""
   8.148 +
   8.149 +#: search.sh:505
   8.150 +#: search.sh:528
   8.151 +#: search.sh:545
   8.152 +#: search.sh:553
   8.153 +#: search.sh:566
   8.154 +#: search.sh:578
   8.155 +#: search.sh:590
   8.156 +#, sh-format
   8.157 +msgid "Result for: $SEARCH"
   8.158 +msgstr "Resultado para : $SEARCH"
   8.159 +
   8.160 +#: search.sh:596
   8.161 +msgid "description"
   8.162 +msgstr ""
   8.163 +
   8.164 +#: search.sh:608
   8.165 +#, sh-format
   8.166 +msgid "Result for: $SEARCH (package providing $vpkg)"
   8.167 +msgstr "Resultado para : $SEARCH (package providing $vpkg)"
   8.168 +
   8.169 +#: lib/header.sh:6
   8.170 +#, sh-format
   8.171 +msgid "SliTaz Packages — Search $SEARCH"
   8.172 +msgstr "SliTaz Pacotes — Search $SEARCH"
   8.173 +
   8.174 +#: lib/header.sh:20
   8.175 +msgid "Home"
   8.176 +msgstr ""
   8.177 +
   8.178 +#: lib/header.sh:21
   8.179 +msgid "Community"
   8.180 +msgstr "Comunidade"
   8.181 +
   8.182 +#: lib/header.sh:22
   8.183 +msgid "Doc"
   8.184 +msgstr ""
   8.185 +
   8.186 +#: lib/header.sh:23
   8.187 +msgid "Forum"
   8.188 +msgstr "Fórum"
   8.189 +
   8.190 +#: lib/header.sh:24
   8.191 +msgid "Pro"
   8.192 +msgstr ""
   8.193 +
   8.194 +#: lib/header.sh:25
   8.195 +msgid "Shop"
   8.196 +msgstr ""
   8.197 +
   8.198 +#: lib/header.sh:26
   8.199 +msgid "Bugs"
   8.200 +msgstr ""
   8.201 +
   8.202 +#: lib/header.sh:27
   8.203 +msgid "Hg"
   8.204 +msgstr ""
   8.205 +
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/pkgs/po/ru.po	Wed Apr 11 04:16:55 2012 +0300
     9.3 @@ -0,0 +1,210 @@
     9.4 +# Russian translation of Tazpkg Web.
     9.5 +# Copyright (C) 2012 www.slitaz.org
     9.6 +# This file is distributed under the same license as the Tazpkg Web package.
     9.7 +# Aleksej Bobylev <al.bobylev@gmail.com>, 2012.
     9.8 +#
     9.9 +msgid ""
    9.10 +msgstr ""
    9.11 +"Project-Id-Version: Tazpkg Web\n"
    9.12 +"Report-Msgid-Bugs-To: \n"
    9.13 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
    9.14 +"PO-Revision-Date: 2012-04-11 01:02+0300\n"
    9.15 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
    9.16 +"Language-Team: \n"
    9.17 +"Language: Russian\n"
    9.18 +"MIME-Version: 1.0\n"
    9.19 +"Content-Type: text/plain; charset=UTF-8\n"
    9.20 +"Content-Transfer-Encoding: 8bit\n"
    9.21 +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
    9.22 +"X-Poedit-SourceCharset: utf-8\n"
    9.23 +"X-Poedit-Basepath: ../\n"
    9.24 +"X-Poedit-Language: Russian\n"
    9.25 +"X-Poedit-SourceCharset: utf-8\n"
    9.26 +"X-Poedit-SearchPath-0: .\n"
    9.27 +
    9.28 +#: search.sh:134
    9.29 +msgid "Package"
    9.30 +msgstr "пакет"
    9.31 +
    9.32 +#: search.sh:135
    9.33 +msgid "Description"
    9.34 +msgstr "описание"
    9.35 +
    9.36 +#: search.sh:136
    9.37 +msgid "Tags"
    9.38 +msgstr "теги"
    9.39 +
    9.40 +#: search.sh:137
    9.41 +msgid "Receipt"
    9.42 +msgstr "рецепт"
    9.43 +
    9.44 +#: search.sh:138
    9.45 +msgid "Depends"
    9.46 +msgstr "зависимости"
    9.47 +
    9.48 +#: search.sh:139
    9.49 +msgid "Build depends"
    9.50 +msgstr "зависимости сборки"
    9.51 +
    9.52 +#: search.sh:140
    9.53 +msgid "File"
    9.54 +msgstr "файл"
    9.55 +
    9.56 +#: search.sh:141
    9.57 +msgid "File list"
    9.58 +msgstr "список файлов"
    9.59 +
    9.60 +#: search.sh:142
    9.61 +msgid "common files"
    9.62 +msgstr "общие файлы"
    9.63 +
    9.64 +#: search.sh:146
    9.65 +msgid "cooking"
    9.66 +msgstr "Cooking"
    9.67 +
    9.68 +#: search.sh:150
    9.69 +msgid "tiny"
    9.70 +msgstr "Tiny"
    9.71 +
    9.72 +#: search.sh:151
    9.73 +msgid "undigest"
    9.74 +msgstr "неофициальный"
    9.75 +
    9.76 +#: search.sh:153
    9.77 +msgid "Search"
    9.78 +msgstr "Искать"
    9.79 +
    9.80 +#: search.sh:171
    9.81 +#, sh-format
    9.82 +msgid "$PKGS package"
    9.83 +msgid_plural "$PKGS packages"
    9.84 +msgstr[0] "$PKGS пакет"
    9.85 +msgstr[1] "$PKGS пакета"
    9.86 +msgstr[2] "$PKGS пакетов"
    9.87 +
    9.88 +#: search.sh:172
    9.89 +#, sh-format
    9.90 +msgid "and $FILES file in $SLITAZ_VERSION database"
    9.91 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
    9.92 +msgstr[0] "и $FILES файл в базе данных $SLITAZ_VERSION"
    9.93 +msgstr[1] "и $FILES файла в базе данных $SLITAZ_VERSION"
    9.94 +msgstr[2] "и $FILES файлов в базе данных $SLITAZ_VERSION"
    9.95 +
    9.96 +#: search.sh:179
    9.97 +#: lib/header.sh:29
    9.98 +msgid "SliTaz Packages"
    9.99 +msgstr "Пакеты SliTaz"
   9.100 +
   9.101 +#: search.sh:287
   9.102 +msgid ""
   9.103 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
   9.104 +"\t<b>every</b> package is supposed to depend on them."
   9.105 +msgstr ""
   9.106 +"\tglibc-base и gcc-lib-base являются неявными зависимостями\n"
   9.107 +"\t<b>любого</b> пакета."
   9.108 +
   9.109 +#: search.sh:335
   9.110 +#, sh-format
   9.111 +msgid "No package $SEARCH"
   9.112 +msgstr "Пакет $SEARCH отсутствует"
   9.113 +
   9.114 +#: search.sh:378
   9.115 +#: search.sh:390
   9.116 +msgid "Search for packages"
   9.117 +msgstr "Поиск по пакетам"
   9.118 +
   9.119 +#: search.sh:397
   9.120 +msgid "Depends loops"
   9.121 +msgstr "Циклические зависимости"
   9.122 +
   9.123 +#: search.sh:412
   9.124 +#, sh-format
   9.125 +msgid "Dependency tree for: $SEARCH"
   9.126 +msgstr "Дерево зависимостей для $SEARCH"
   9.127 +
   9.128 +#: search.sh:423
   9.129 +#, sh-format
   9.130 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
   9.131 +msgstr "Дерево необязательных зависимостей для $SEARCH"
   9.132 +
   9.133 +#: search.sh:432
   9.134 +#, sh-format
   9.135 +msgid "Reverse dependency tree for: $SEARCH"
   9.136 +msgstr "Обратное дерево зависимостей для $SEARCH"
   9.137 +
   9.138 +#: search.sh:445
   9.139 +msgid "Build depends loops"
   9.140 +msgstr "Циклические зависимости сборки"
   9.141 +
   9.142 +#: search.sh:461
   9.143 +#, sh-format
   9.144 +msgid "$SEARCH needs these packages to be built"
   9.145 +msgstr "Следующие пакеты нужны, чтобы собрать $SEARCH"
   9.146 +
   9.147 +#: search.sh:469
   9.148 +#, sh-format
   9.149 +msgid "Packages who need $SEARCH to be built"
   9.150 +msgstr "$SEARCH нужен, чтобы собрать следующие пакеты"
   9.151 +
   9.152 +#: search.sh:482
   9.153 +#, sh-format
   9.154 +msgid "These packages may overload files of $SEARCH"
   9.155 +msgstr "Следующие пакеты могут заменить файлы $SEARCH"
   9.156 +
   9.157 +#: search.sh:505
   9.158 +#: search.sh:528
   9.159 +#: search.sh:545
   9.160 +#: search.sh:553
   9.161 +#: search.sh:566
   9.162 +#: search.sh:578
   9.163 +#: search.sh:590
   9.164 +#, sh-format
   9.165 +msgid "Result for: $SEARCH"
   9.166 +msgstr "Результаты поиска $SEARCH"
   9.167 +
   9.168 +#: search.sh:596
   9.169 +msgid "description"
   9.170 +msgstr "описание"
   9.171 +
   9.172 +#: search.sh:608
   9.173 +#, sh-format
   9.174 +msgid "Result for: $SEARCH (package providing $vpkg)"
   9.175 +msgstr "Результаты поиска $SEARCH (пакеты, предлагающие $vpkg)"
   9.176 +
   9.177 +#: lib/header.sh:6
   9.178 +#, sh-format
   9.179 +msgid "SliTaz Packages — Search $SEARCH"
   9.180 +msgstr "Пакеты SliTaz — поиск $SEARCH"
   9.181 +
   9.182 +#: lib/header.sh:20
   9.183 +msgid "Home"
   9.184 +msgstr "Сайт"
   9.185 +
   9.186 +#: lib/header.sh:21
   9.187 +msgid "Community"
   9.188 +msgstr "Сообщество"
   9.189 +
   9.190 +#: lib/header.sh:22
   9.191 +msgid "Doc"
   9.192 +msgstr "Документация"
   9.193 +
   9.194 +#: lib/header.sh:23
   9.195 +msgid "Forum"
   9.196 +msgstr "Форум"
   9.197 +
   9.198 +#: lib/header.sh:24
   9.199 +msgid "Pro"
   9.200 +msgstr "PRO"
   9.201 +
   9.202 +#: lib/header.sh:25
   9.203 +msgid "Shop"
   9.204 +msgstr "Магазин"
   9.205 +
   9.206 +#: lib/header.sh:26
   9.207 +msgid "Bugs"
   9.208 +msgstr "Баг-трекер"
   9.209 +
   9.210 +#: lib/header.sh:27
   9.211 +msgid "Hg"
   9.212 +msgstr "Hg"
   9.213 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/pkgs/po/tazpkg-web.pot	Wed Apr 11 04:16:55 2012 +0300
    10.3 @@ -0,0 +1,198 @@
    10.4 +# LANGUAGE translation of Tazpkg Web.
    10.5 +# Copyright (C) 2012 www.slitaz.org
    10.6 +# This file is distributed under the same license as the Tazpkg Web package.
    10.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
    10.8 +#
    10.9 +#, fuzzy
   10.10 +msgid ""
   10.11 +msgstr ""
   10.12 +"Project-Id-Version: Tazpkg Web\n"
   10.13 +"Report-Msgid-Bugs-To: \n"
   10.14 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
   10.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
   10.16 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
   10.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
   10.18 +"Language: \n"
   10.19 +"MIME-Version: 1.0\n"
   10.20 +"Content-Type: text/plain; charset=UTF-8\n"
   10.21 +"Content-Transfer-Encoding: 8bit\n"
   10.22 +"X-Poedit-SourceCharset: utf-8\n"
   10.23 +"X-Poedit-Basepath: ../\n"
   10.24 +"X-Poedit-SearchPath-0: .\n"
   10.25 +"X-Poedit-SearchPath-1: lib\n"
   10.26 +
   10.27 +#: search.sh:134
   10.28 +msgid "Package"
   10.29 +msgstr ""
   10.30 +
   10.31 +#: search.sh:135
   10.32 +msgid "Description"
   10.33 +msgstr ""
   10.34 +
   10.35 +#: search.sh:136
   10.36 +msgid "Tags"
   10.37 +msgstr ""
   10.38 +
   10.39 +#: search.sh:137
   10.40 +msgid "Receipt"
   10.41 +msgstr ""
   10.42 +
   10.43 +#: search.sh:138
   10.44 +msgid "Depends"
   10.45 +msgstr ""
   10.46 +
   10.47 +#: search.sh:139
   10.48 +msgid "Build depends"
   10.49 +msgstr ""
   10.50 +
   10.51 +#: search.sh:140
   10.52 +msgid "File"
   10.53 +msgstr ""
   10.54 +
   10.55 +#: search.sh:141
   10.56 +msgid "File list"
   10.57 +msgstr ""
   10.58 +
   10.59 +#: search.sh:142
   10.60 +msgid "common files"
   10.61 +msgstr ""
   10.62 +
   10.63 +#: search.sh:146
   10.64 +msgid "cooking"
   10.65 +msgstr ""
   10.66 +
   10.67 +#: search.sh:150
   10.68 +msgid "tiny"
   10.69 +msgstr ""
   10.70 +
   10.71 +#: search.sh:151
   10.72 +msgid "undigest"
   10.73 +msgstr ""
   10.74 +
   10.75 +#: search.sh:153
   10.76 +msgid "Search"
   10.77 +msgstr ""
   10.78 +
   10.79 +#: search.sh:171
   10.80 +#, sh-format
   10.81 +msgid "$PKGS package"
   10.82 +msgid_plural "$PKGS packages"
   10.83 +msgstr[0] ""
   10.84 +msgstr[1] ""
   10.85 +
   10.86 +#: search.sh:172
   10.87 +#, sh-format
   10.88 +msgid "and $FILES file in $SLITAZ_VERSION database"
   10.89 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
   10.90 +msgstr[0] ""
   10.91 +msgstr[1] ""
   10.92 +
   10.93 +#: search.sh:179 lib/header.sh:29
   10.94 +msgid "SliTaz Packages"
   10.95 +msgstr ""
   10.96 +
   10.97 +#: search.sh:287
   10.98 +msgid ""
   10.99 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
  10.100 +"\t<b>every</b> package is supposed to depend on them."
  10.101 +msgstr ""
  10.102 +
  10.103 +#: search.sh:335
  10.104 +#, sh-format
  10.105 +msgid "No package $SEARCH"
  10.106 +msgstr ""
  10.107 +
  10.108 +#: search.sh:378 search.sh:390
  10.109 +msgid "Search for packages"
  10.110 +msgstr ""
  10.111 +
  10.112 +#: search.sh:397
  10.113 +msgid "Depends loops"
  10.114 +msgstr ""
  10.115 +
  10.116 +#: search.sh:412
  10.117 +#, sh-format
  10.118 +msgid "Dependency tree for: $SEARCH"
  10.119 +msgstr ""
  10.120 +
  10.121 +#: search.sh:423
  10.122 +#, sh-format
  10.123 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
  10.124 +msgstr ""
  10.125 +
  10.126 +#: search.sh:432
  10.127 +#, sh-format
  10.128 +msgid "Reverse dependency tree for: $SEARCH"
  10.129 +msgstr ""
  10.130 +
  10.131 +#: search.sh:445
  10.132 +msgid "Build depends loops"
  10.133 +msgstr ""
  10.134 +
  10.135 +#: search.sh:461
  10.136 +#, sh-format
  10.137 +msgid "$SEARCH needs these packages to be built"
  10.138 +msgstr ""
  10.139 +
  10.140 +#: search.sh:469
  10.141 +#, sh-format
  10.142 +msgid "Packages who need $SEARCH to be built"
  10.143 +msgstr ""
  10.144 +
  10.145 +#: search.sh:482
  10.146 +#, sh-format
  10.147 +msgid "These packages may overload files of $SEARCH"
  10.148 +msgstr ""
  10.149 +
  10.150 +#: search.sh:505 search.sh:528 search.sh:545 search.sh:553 search.sh:566
  10.151 +#: search.sh:578 search.sh:590
  10.152 +#, sh-format
  10.153 +msgid "Result for: $SEARCH"
  10.154 +msgstr ""
  10.155 +
  10.156 +#: search.sh:596
  10.157 +msgid "description"
  10.158 +msgstr ""
  10.159 +
  10.160 +#: search.sh:608
  10.161 +#, sh-format
  10.162 +msgid "Result for: $SEARCH (package providing $vpkg)"
  10.163 +msgstr ""
  10.164 +
  10.165 +#: lib/header.sh:6
  10.166 +#, sh-format
  10.167 +msgid "SliTaz Packages — Search $SEARCH"
  10.168 +msgstr ""
  10.169 +
  10.170 +#: lib/header.sh:20
  10.171 +msgid "Home"
  10.172 +msgstr ""
  10.173 +
  10.174 +#: lib/header.sh:21
  10.175 +msgid "Community"
  10.176 +msgstr ""
  10.177 +
  10.178 +#: lib/header.sh:22
  10.179 +msgid "Doc"
  10.180 +msgstr ""
  10.181 +
  10.182 +#: lib/header.sh:23
  10.183 +msgid "Forum"
  10.184 +msgstr ""
  10.185 +
  10.186 +#: lib/header.sh:24
  10.187 +msgid "Pro"
  10.188 +msgstr ""
  10.189 +
  10.190 +#: lib/header.sh:25
  10.191 +msgid "Shop"
  10.192 +msgstr ""
  10.193 +
  10.194 +#: lib/header.sh:26
  10.195 +msgid "Bugs"
  10.196 +msgstr ""
  10.197 +
  10.198 +#: lib/header.sh:27
  10.199 +msgid "Hg"
  10.200 +msgstr ""
  10.201 +
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/pkgs/po/zh.po	Wed Apr 11 04:16:55 2012 +0300
    11.3 @@ -0,0 +1,201 @@
    11.4 +msgid ""
    11.5 +msgstr ""
    11.6 +"Project-Id-Version: Tazpkg Web\n"
    11.7 +"Report-Msgid-Bugs-To: \n"
    11.8 +"POT-Creation-Date: 2012-04-10 03:23+0300\n"
    11.9 +"PO-Revision-Date: \n"
   11.10 +"Last-Translator: Aleksej Bobylev <al.bobylev@gmail.com>\n"
   11.11 +"Language-Team: \n"
   11.12 +"Language: \n"
   11.13 +"MIME-Version: 1.0\n"
   11.14 +"Content-Type: text/plain; charset=UTF-8\n"
   11.15 +"Content-Transfer-Encoding: 8bit\n"
   11.16 +"Plural-Forms: nplurals=1; plural=0;\n"
   11.17 +"X-Poedit-Language: Chinese\n"
   11.18 +"X-Poedit-SourceCharset: utf-8\n"
   11.19 +"X-Poedit-Basepath: ../\n"
   11.20 +"X-Poedit-SearchPath-0: .\n"
   11.21 +"X-Poedit-SearchPath-1: lib\n"
   11.22 +
   11.23 +#: search.sh:134
   11.24 +msgid "Package"
   11.25 +msgstr "软件包:"
   11.26 +
   11.27 +#: search.sh:135
   11.28 +msgid "Description"
   11.29 +msgstr "描述"
   11.30 +
   11.31 +#: search.sh:136
   11.32 +msgid "Tags"
   11.33 +msgstr "标签"
   11.34 +
   11.35 +#: search.sh:137
   11.36 +msgid "Receipt"
   11.37 +msgstr ""
   11.38 +
   11.39 +#: search.sh:138
   11.40 +msgid "Depends"
   11.41 +msgstr "依赖"
   11.42 +
   11.43 +#: search.sh:139
   11.44 +msgid "Build depends"
   11.45 +msgstr ""
   11.46 +
   11.47 +#: search.sh:140
   11.48 +msgid "File"
   11.49 +msgstr "文件"
   11.50 +
   11.51 +#: search.sh:141
   11.52 +msgid "File list"
   11.53 +msgstr "文件列表"
   11.54 +
   11.55 +#: search.sh:142
   11.56 +msgid "common files"
   11.57 +msgstr ""
   11.58 +
   11.59 +#: search.sh:146
   11.60 +msgid "cooking"
   11.61 +msgstr "开发版"
   11.62 +
   11.63 +#: search.sh:150
   11.64 +msgid "tiny"
   11.65 +msgstr ""
   11.66 +
   11.67 +#: search.sh:151
   11.68 +msgid "undigest"
   11.69 +msgstr ""
   11.70 +
   11.71 +#: search.sh:153
   11.72 +msgid "Search"
   11.73 +msgstr ""
   11.74 +
   11.75 +#: search.sh:171
   11.76 +#, sh-format
   11.77 +msgid "$PKGS package"
   11.78 +msgid_plural "$PKGS packages"
   11.79 +msgstr[0] ""
   11.80 +msgstr[1] ""
   11.81 +
   11.82 +#: search.sh:172
   11.83 +#, sh-format
   11.84 +msgid "and $FILES file in $SLITAZ_VERSION database"
   11.85 +msgid_plural "and $FILES files in $SLITAZ_VERSION database"
   11.86 +msgstr[0] ""
   11.87 +msgstr[1] ""
   11.88 +
   11.89 +#: search.sh:179
   11.90 +#: lib/header.sh:29
   11.91 +msgid "SliTaz Packages"
   11.92 +msgstr ""
   11.93 +
   11.94 +#: search.sh:287
   11.95 +msgid ""
   11.96 +"\tglibc-base and gcc-lib-base are implicit dependencies,\n"
   11.97 +"\t<b>every</b> package is supposed to depend on them."
   11.98 +msgstr ""
   11.99 +
  11.100 +#: search.sh:335
  11.101 +#, sh-format
  11.102 +msgid "No package $SEARCH"
  11.103 +msgstr ""
  11.104 +
  11.105 +#: search.sh:378
  11.106 +#: search.sh:390
  11.107 +msgid "Search for packages"
  11.108 +msgstr ""
  11.109 +
  11.110 +#: search.sh:397
  11.111 +msgid "Depends loops"
  11.112 +msgstr "依赖 loops"
  11.113 +
  11.114 +#: search.sh:412
  11.115 +#, sh-format
  11.116 +msgid "Dependency tree for: $SEARCH"
  11.117 +msgstr ""
  11.118 +
  11.119 +#: search.sh:423
  11.120 +#, sh-format
  11.121 +msgid "Dependency tree for: $SEARCH (SUGGESTED)"
  11.122 +msgstr ""
  11.123 +
  11.124 +#: search.sh:432
  11.125 +#, sh-format
  11.126 +msgid "Reverse dependency tree for: $SEARCH"
  11.127 +msgstr ""
  11.128 +
  11.129 +#: search.sh:445
  11.130 +msgid "Build depends loops"
  11.131 +msgstr ""
  11.132 +
  11.133 +#: search.sh:461
  11.134 +#, sh-format
  11.135 +msgid "$SEARCH needs these packages to be built"
  11.136 +msgstr ""
  11.137 +
  11.138 +#: search.sh:469
  11.139 +#, sh-format
  11.140 +msgid "Packages who need $SEARCH to be built"
  11.141 +msgstr ""
  11.142 +
  11.143 +#: search.sh:482
  11.144 +#, sh-format
  11.145 +msgid "These packages may overload files of $SEARCH"
  11.146 +msgstr ""
  11.147 +
  11.148 +#: search.sh:505
  11.149 +#: search.sh:528
  11.150 +#: search.sh:545
  11.151 +#: search.sh:553
  11.152 +#: search.sh:566
  11.153 +#: search.sh:578
  11.154 +#: search.sh:590
  11.155 +#, sh-format
  11.156 +msgid "Result for: $SEARCH"
  11.157 +msgstr ""
  11.158 +
  11.159 +#: search.sh:596
  11.160 +msgid "description"
  11.161 +msgstr ""
  11.162 +
  11.163 +#: search.sh:608
  11.164 +#, sh-format
  11.165 +msgid "Result for: $SEARCH (package providing $vpkg)"
  11.166 +msgstr ""
  11.167 +
  11.168 +#: lib/header.sh:6
  11.169 +#, sh-format
  11.170 +msgid "SliTaz Packages — Search $SEARCH"
  11.171 +msgstr ""
  11.172 +
  11.173 +#: lib/header.sh:20
  11.174 +msgid "Home"
  11.175 +msgstr ""
  11.176 +
  11.177 +#: lib/header.sh:21
  11.178 +msgid "Community"
  11.179 +msgstr ""
  11.180 +
  11.181 +#: lib/header.sh:22
  11.182 +msgid "Doc"
  11.183 +msgstr ""
  11.184 +
  11.185 +#: lib/header.sh:23
  11.186 +msgid "Forum"
  11.187 +msgstr ""
  11.188 +
  11.189 +#: lib/header.sh:24
  11.190 +msgid "Pro"
  11.191 +msgstr ""
  11.192 +
  11.193 +#: lib/header.sh:25
  11.194 +msgid "Shop"
  11.195 +msgstr ""
  11.196 +
  11.197 +#: lib/header.sh:26
  11.198 +msgid "Bugs"
  11.199 +msgstr ""
  11.200 +
  11.201 +#: lib/header.sh:27
  11.202 +msgid "Hg"
  11.203 +msgstr ""
  11.204 +
    12.1 --- a/pkgs/search.sh	Wed Apr 11 00:30:27 2012 +0200
    12.2 +++ b/pkgs/search.sh	Wed Apr 11 04:16:55 2012 +0300
    12.3 @@ -1,9 +1,10 @@
    12.4  #!/bin/sh
    12.5  # Tiny CGI search engine for SliTaz packages on http://pkgs.slitaz.org/
    12.6  # Christophe Lincoln <pankso@slitaz.org>
    12.7 +# Aleksej Bobylev <al.bobylev@gmail.com> - i18n
    12.8  #
    12.9  
   12.10 -renice 20
   12.11 +#renice 20
   12.12  read QUERY_STRING
   12.13  for i in $(echo $QUERY_STRING | sed 's/&/ /g'); do
   12.14  	i=$(httpd -d $i)
   12.15 @@ -15,6 +16,13 @@
   12.16  OBJECT=$object
   12.17  DATE=$(date +%Y-%m-%d\ %H:%M:%S)
   12.18  VERSION=cooking
   12.19 +SCRIPT_NAME="search.sh"
   12.20 +
   12.21 +
   12.22 +# Internationalization
   12.23 +. /usr/bin/gettext.sh
   12.24 +TEXTDOMAIN='tazpkg-web'
   12.25 +export TEXTDOMAIN
   12.26  
   12.27  if [ "$REQUEST_METHOD" = "GET" ]; then
   12.28  	SEARCH=""
   12.29 @@ -71,227 +79,54 @@
   12.30  	[ "$SEARCH" == "." ] && SEARCH=
   12.31  fi
   12.32  
   12.33 -case "$OBJECT" in
   12.34 -File)	 	selected_file="selected";;
   12.35 -Desc)	 	selected_desc="selected";;
   12.36 -Tags)	 	selected_tags="selected";;
   12.37 -Receipt) 	selected_receipt="selected";;
   12.38 -File_list) 	selected_file_list="selected";;
   12.39 -Depends)	selected_depends="selected";;
   12.40 -BuildDepends)	selected_build_depends="selected";;
   12.41 -FileOverlap)	selected_overlap="selected";;
   12.42 -esac
   12.43 -
   12.44 -case "$SLITAZ_VERSION" in
   12.45 -tiny)		selected_tiny="selected";;
   12.46 -1.0)	 	selected_1="selected";;
   12.47 -2.0)	 	selected_2="selected";;
   12.48 -stable)		selected_stable="selected";;
   12.49 -undigest)	selected_undigest="selected";;
   12.50 -esac
   12.51 -
   12.52 -# unescape query
   12.53 -SEARCH="$(echo $SEARCH | sed 's/%2B/+/g' | sed 's/%3A/:/g' | sed 's|%2F|/|g')"
   12.54 -
   12.55 +# preferred language
   12.56  if [ -z "$LANG" ]; then
   12.57 -	for i in $(echo $HTTP_ACCEPT_LANGUAGE | sed 's/[,;]/ /g'); do
   12.58 +	for i in $(echo $HTTP_ACCEPT_LANGUAGE | sed 's/[,;-_]/ /g'); do
   12.59  		case "$i" in
   12.60 -		fr|de|pt|ru|cn)
   12.61 -			LANG=$i
   12.62 +		de*|fr*|pt*|ru*)
   12.63 +			LANG=${i}
   12.64  			break;;
   12.65  		esac
   12.66  	done
   12.67  fi
   12.68  
   12.69 -# --- Search form
   12.70 -_package="Package"
   12.71 -_desc="Description"
   12.72 -_tags="Tags"
   12.73 -_receipt="Receipt"
   12.74 -_depends="Depends"
   12.75 -_bdepends="Build depends"
   12.76 -_file="File"
   12.77 -_file_list="File list"
   12.78 -_overlap="common files"
   12.79 -_cooking="cooking"
   12.80 -_search="Search"
   12.81 -# --- Titles
   12.82 -_noresult="No package $SEARCH"
   12.83 -_search_title="Search"
   12.84 -_depends_loops="Depends loops"
   12.85 -_deptree="Dependency tree for: $SEARCH"
   12.86 -_deptree_suggested="$_deptree (SUGGESTED)"
   12.87 -_rdeptree="Reverse dependency tree for: $SEARCH"
   12.88 -_bdepends_loops="Build depends loops"
   12.89 -_bdeplist="$SEARCH needs these packages to be built"
   12.90 -_rbdeplist="Packages who need $SEARCH to be built"
   12.91 -_overloading="Theses packages may overload files of $SEARCH"
   12.92 -_result="Result for: $SEARCH"
   12.93 -_result_providing="$_result (package providing %VPKG%)"
   12.94 -# --- Messages
   12.95 -_main_libs_warn="glibc-base and gcc-lib-base are implicit dependencies, <b>every</b> package is supposed to depend on them."
   12.96 -_description="description"
   12.97 -_pkgs_report="%PKGS% packages and %FILES% files in $SLITAZ_VERSION database"
   12.98 -# --- HTML Header
   12.99 -_h_title="SliTaz Packages - Search %SEARCH%"
  12.100 +# lang substitution
  12.101 +case "$LANG" in
  12.102 +de*)	LANG="de_DE";;
  12.103 +es*)	LANG="es_ES";;
  12.104 +fr*)	LANG="fr_FR";;
  12.105 +it*)	LANG="it_IT";;
  12.106 +pt*)	LANG="pt_BR";;
  12.107 +ru*)	LANG="ru_RU";;
  12.108 +esac
  12.109  
  12.110 -case "$LANG" in
  12.111 +export LANG
  12.112  
  12.113 -fr)	_package="Paquet"
  12.114 -#	_desc=
  12.115 -#	_tags=
  12.116 -	_receipt="Recette"
  12.117 -	_depends="D&eacute;pendances"
  12.118 -	_bdepends="Fabrication"
  12.119 -	_file="Fichier"
  12.120 -	_file_list="Liste des fichiers"
  12.121 -	_overlap="Fichiers communs"
  12.122 -#	_cooking=
  12.123 -	_search="Recherche"
  12.124  
  12.125 -	_noresult="Paquet $SEARCH introuvable"
  12.126 -	_search_title="Search"
  12.127 -	_depends_loops="D&eacute;pendances sans fin"
  12.128 -	_deptree="Arbre des d&eacute;pendances de $SEARCH"
  12.129 -	_deptree_suggested="$_deptree (SUGGESTED)"
  12.130 -	_rdeptree="Arbre invers&eacute; des d&eacute;pendances de $SEARCH"
  12.131 -	_bdepends_loops="Fabrication sans fin"
  12.132 -	_bdeplist="$SEARCH a besion de ces paquets pour &ecirc;tre fabriqu&eacute;"
  12.133 -	_rbdeplist="Paquets ayant besion de $SEARCH pour &ecirc;tre fabriqu&eacute;s"
  12.134 -	_overloading="Paquets pouvant &eacute;craser des fichiers de $SEARCH"
  12.135 -	_result="Recherche de : $SEARCH"
  12.136 -	_result_providing="$_result (package providing %VPKG%)"
  12.137 +case "$OBJECT" in
  12.138 +	File)	 	selected_file="selected";;
  12.139 +	Desc)	 	selected_desc="selected";;
  12.140 +	Tags)	 	selected_tags="selected";;
  12.141 +	Receipt) 	selected_receipt="selected";;
  12.142 +	File_list) 	selected_file_list="selected";;
  12.143 +	Depends)	selected_depends="selected";;
  12.144 +	BuildDepends)	selected_build_depends="selected";;
  12.145 +	FileOverlap)	selected_overlap="selected";;
  12.146 +esac
  12.147  
  12.148 -	_main_libs_warn="	glibc-base and gcc-lib-base are implicit dependencies,
  12.149 -	<b>every</b> package is supposed to depend on them."
  12.150 -	_description="description"
  12.151 -	_pkgs_report="%PKGS% packages and %FILES% files in $SLITAZ_VERSION database"
  12.152 -	;;
  12.153 +case "$SLITAZ_VERSION" in
  12.154 +	tiny)		selected_tiny="selected";;
  12.155 +	1.0)		selected_1="selected";;
  12.156 +	2.0)		selected_2="selected";;
  12.157 +	3.0)		selected_3="selected";;
  12.158 +	stable)		selected_stable="selected";;
  12.159 +	undigest)	selected_undigest="selected";;
  12.160 +esac
  12.161  
  12.162 -de)	_package="Paket"
  12.163 -	_desc="Beschreibung"
  12.164 -#	_tags=
  12.165 -#	_receipt=
  12.166 -	_depends="Abhängigkeiten"
  12.167 -#	_bdepends=
  12.168 -	_file="Datei"
  12.169 -	_file_list="Datei liste"
  12.170 -#	_overlap=
  12.171 -	_cooking="Cooking"
  12.172 -	_search="Suche"
  12.173 +# unescape query
  12.174 +SEARCH="$(echo $SEARCH | sed 's/%2B/+/g; s/%3A/:/g; s|%2F|/|g')"
  12.175  
  12.176 -	_noresult="Kein Paket für $SEARCH"
  12.177 -	_search_title="Search"
  12.178 -	_depends_loops="Abhängigkeiten loops"
  12.179 -	_deptree="Abhängigkeiten von: $SEARCH"
  12.180 -	_deptree_suggested="$_deptree (SUGGESTED)"
  12.181 -	_rdeptree="Abhängigkeit für: $SEARCH"
  12.182 -#	_bdepends_loops=
  12.183 -#	_bdeplist=
  12.184 -#	_rbdeplist=
  12.185 -#	_overloading=
  12.186 -	_result="Resultate für : $SEARCH"
  12.187 -	_result_providing="$_result (package providing %VPKG%)"
  12.188  
  12.189 -#	_main_libs_warn=
  12.190 -#	_description=
  12.191 -#	_pkgs_report=
  12.192 -	;;
  12.193 -
  12.194 -pt)	_package="Pacote"
  12.195 -	_desc="Descrição"
  12.196 -#	_tags=
  12.197 -#	_receipt=
  12.198 -	_depends="Dependências"
  12.199 -#	_bdepends=
  12.200 -	_file="Arquivo"
  12.201 -	_file_list="Arquivo lista"
  12.202 -#	_overlap=
  12.203 -#	_cooking=
  12.204 -	_search="Buscar"
  12.205 -
  12.206 -	_noresult="Sem resultado: $SEARCH"
  12.207 -#	_search_title=
  12.208 -	_depends_loops="Dependências loops"
  12.209 -	_deptree="Árvore de dependências para: $SEARCH"
  12.210 -	_deptree_suggested="$_deptree (SUGGESTED)"
  12.211 -	_rdeptree="Árvore de dependências reversa para: $SEARCH"
  12.212 -#	_bdepends_loops=
  12.213 -#	_bdeplist=
  12.214 -#	_rbdeplist=
  12.215 -#	_overloading=
  12.216 -	_result="Resultado para : $SEARCH"
  12.217 -	_result_providing="$_result (package providing %VPKG%)"
  12.218 -
  12.219 -#	_main_libs_warn=
  12.220 -#	_description=
  12.221 -#	_pkgs_report=
  12.222 -	;;
  12.223 -
  12.224 -cn)	_package="软件包:"
  12.225 -	_desc="描述"
  12.226 -	_tags="标签"
  12.227 -#	_receipt=
  12.228 -	_depends="依赖"
  12.229 -#	_bdepends=
  12.230 -	_file="文件"
  12.231 -	_file_list="文件列表"
  12.232 -#	_overlap=
  12.233 -	_cooking="开发版"
  12.234 -#	_search=
  12.235 -
  12.236 -#	_noresult=
  12.237 -#	_search_title=
  12.238 -	_depends_loops="依赖 loops"
  12.239 -#	_deptree=
  12.240 -#	_deptree_suggested=
  12.241 -#	_rdeptree=
  12.242 -#	_bdepends_loops=
  12.243 -#	_bdeplist=
  12.244 -#	_rbdeplist=
  12.245 -#	_overloading=
  12.246 -#	_result=
  12.247 -#	_result_providing=
  12.248 -
  12.249 -#	_main_libs_warn=
  12.250 -#	_description=
  12.251 -#	_pkgs_report=
  12.252 -#	_stable="稳定版"
  12.253 -	;;
  12.254 -
  12.255 -ru)	_package="пакет"
  12.256 -	_desc="описание"
  12.257 -	_tags="теги"
  12.258 -	_receipt="рецепт"
  12.259 -	_depends="зависимости"
  12.260 -	_bdepends="зависимости сборки"
  12.261 -	_file="файл"
  12.262 -	_file_list="список файлов"
  12.263 -	_overlap="общие файлы"
  12.264 -#	_cooking=
  12.265 -	_search="Искать"
  12.266 -
  12.267 -	_noresult="Пакет $SEARCH отсутствует"
  12.268 -	_search_title="Поиск"
  12.269 -	_depends_loops="Циклические зависимости"
  12.270 -	_deptree="Дерево зависимостей для $SEARCH"
  12.271 -	_deptree_suggested="Дерево необязательных зависимостей для $SEARCH"
  12.272 -	_rdeptree="Обратное дерево зависимостей для $SEARCH"
  12.273 -	_bdepends_loops="Циклические зависимости сборки"
  12.274 -	_bdeplist="Следующие пакеты нужны, чтобы собрать $SEARCH"
  12.275 -	_rbdeplist="$SEARCH нужен, чтобы собрать следующие пакеты"
  12.276 -	_overloading="Следующие пакеты могут заменить файлы $SEARCH"
  12.277 -	_result="Результаты поиска $SEARCH"
  12.278 -	_result_providing="$_result (пакеты, предлагающие %VPKG%)"
  12.279 -
  12.280 -	_main_libs_warn="glibc-base и gcc-lib-base являются неявными зависимостями <b>любого</b> пакета."
  12.281 -	_description="описание"
  12.282 -	_pkgs_report="%PKGS% пакетов и %FILES% файлов в базе данных $SLITAZ_VERSION"
  12.283 -	;;
  12.284 -
  12.285 -*)	LANG="en";;
  12.286 -
  12.287 -esac
  12.288  
  12.289  WOK=/home/slitaz/$SLITAZ_VERSION/wok
  12.290  PACKAGES_REPOSITORY=/home/slitaz/$SLITAZ_VERSION/packages
  12.291 @@ -302,70 +137,71 @@
  12.292  # Search form
  12.293  search_form()
  12.294  {
  12.295 +
  12.296  	cat << _EOT_
  12.297  
  12.298  <div style="text-align: center; padding: 20px;">
  12.299 -<form method="post" action="$(basename $SCRIPT_NAME)">
  12.300 +<form method="get" action="$SCRIPT_NAME">
  12.301  	<input type="hidden" name="lang" value="$LANG" />
  12.302  	<select name="object">
  12.303 -		<option value="Package">$_package</option>
  12.304 -		<option $selected_desc value="Desc">$_desc</option>
  12.305 -		<option $selected_tags value="Tags">$_tags</option>
  12.306 -		<option $selected_receipt value="Receipt">$_receipt</option>
  12.307 -		<option $selected_depends value="Depends">$_depends</option>
  12.308 -		<option $selected_build_depends value="BuildDepends">$_bdepends</option>
  12.309 -		<option $selected_file value="File">$_file</option>
  12.310 -		<option $selected_file_list value="File_list">$_file_list</option>
  12.311 -		<option $selected_overlap value="FileOverlap">$_overlap</option>
  12.312 +		<option value="Package">$(gettext "Package")</option>
  12.313 +		<option $selected_desc value="Desc">$(gettext "Description")</option>
  12.314 +		<option $selected_tags value="Tags">$(gettext "Tags")</option>
  12.315 +		<option $selected_receipt value="Receipt">$(gettext "Receipt")</option>
  12.316 +		<option $selected_depends value="Depends">$(gettext "Depends")</option>
  12.317 +		<option $selected_build_depends value="BuildDepends">$(gettext "Build depends")</option>
  12.318 +		<option $selected_file value="File">$(gettext "File")</option>
  12.319 +		<option $selected_file_list value="File_list">$(gettext "File list")</option>
  12.320 +		<option $selected_overlap value="FileOverlap">$(gettext "common files")</option>
  12.321  	</select>
  12.322  	<input type="text" name="query" size="20" value="$SEARCH" />
  12.323  	<select name="version">
  12.324 -		<option value="cooking">$_cooking</option>
  12.325 -		<option $selected_stable value="stable">3.0</option>
  12.326 +		<option value="cooking">$(gettext "cooking")</option>
  12.327 +		<option $selected_stable value="stable">4.0</option>
  12.328 +		<option $selected_3 value="3.0">3.0</option>
  12.329  		<option $selected_2 value="2.0">2.0</option>
  12.330  		<option $selected_1 value="1.0">1.0</option>
  12.331 -		<option $selected_tiny value="tiny">tiny</option>
  12.332 -		<option $selected_undigest value="undigest">undigest</option>
  12.333 +		<option $selected_tiny value="tiny">$(gettext "tiny")</option>
  12.334 +		<option $selected_undigest value="undigest">$(gettext "undigest")</option>
  12.335  	</select>
  12.336 -	<input type="submit" name="search" value="$_search" />
  12.337 +	<input type="submit" value="$(gettext 'Search')" />
  12.338  </form>
  12.339  </div>
  12.340  _EOT_
  12.341  }
  12.342  
  12.343 -# xHTML Header.
  12.344 +# xHTML5 Header.
  12.345  xhtml_header() {
  12.346 -	header=$(cat lib/header.html | sed s/'%SEARCH%'/"$SEARCH"/)
  12.347 -	# header i18n
  12.348 -	case "$LANG" in
  12.349 -	pt)
  12.350 -		header=$(echo "$header" | sed 's/SliTaz Packages/SliTaz Pacotes/g;s/Community/Comunidade/;s/Forum/Fórum');;
  12.351 -	ru)
  12.352 -		header=$(echo "$header" | sed 's/SliTaz Packages/Пакеты SliTaz/g;s/Home/Сайт/;s/Community/Сообщество/;s/Doc/Документация/;s/Forum/Форум/;s/Pro/PRO/;s/Shop/Магазин/;s/Bugs/Баг-трекер/');;
  12.353 -	esac
  12.354 -	echo "$header"
  12.355 +	. lib/header.sh
  12.356  }
  12.357  
  12.358  # xHTML Footer.
  12.359  xhtml_footer() {
  12.360 -# Is it not too hard? (unlzma etc...) -- lexeii
  12.361 -PKGS=$(ls $WOK/ | wc -l)
  12.362 -FILES=$(unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | wc -l)
  12.363 +	PKGS=$(ls $WOK/ | wc -l)
  12.364 +	FILES=$(unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | wc -l)
  12.365  	cat << _EOT_
  12.366  
  12.367  <center>
  12.368 -<i>$(echo $_pkgs_report | sed s/'%PKGS%'/"$PKGS"/ | sed s/'%FILES%'/"$FILES"/)</i>
  12.369 +<i>$(eval_ngettext "\$PKGS package" "\$PKGS packages" $PKGS)
  12.370 +$(eval_ngettext "and \$FILES file in \$SLITAZ_VERSION database" "and \$FILES files in \$SLITAZ_VERSION database" $FILES)</i>
  12.371  </center>
  12.372  
  12.373 +<!-- End of content -->
  12.374 +</div>
  12.375 +
  12.376 +<!-- Footer -->
  12.377 +<div id="footer">$(gettext "SliTaz Packages")</div>
  12.378 +
  12.379 +</body>
  12.380 +</html>
  12.381  _EOT_
  12.382 -	cat lib/footer.html
  12.383  }
  12.384  
  12.385  installed_size()
  12.386  {
  12.387 -[ $VERBOSE -gt 0 ] &&
  12.388 -grep -A 3 "^$1\$" $PACKAGES_REPOSITORY/packages.txt | \
  12.389 -       grep installed | sed 's/.*(\(.*\) installed.*/(\1) /'
  12.390 +	[ $VERBOSE -gt 0 ] &&
  12.391 +	grep -A 3 "^$1\$" $PACKAGES_REPOSITORY/packages.txt | \
  12.392 +		grep installed | sed 's/.*(\(.*\) installed.*/(\1) /'
  12.393  }
  12.394  
  12.395  package_entry()
  12.396 @@ -461,7 +297,9 @@
  12.397  {
  12.398  SEARCH=$1
  12.399  case "$SEARCH" in
  12.400 -glibc-base|gcc-lib-base) echo $_main_libs_warn
  12.401 +glibc-base|gcc-lib-base)
  12.402 +	$(gettext "	glibc-base and gcc-lib-base are implicit dependencies,
  12.403 +	<b>every</b> package is supposed to depend on them."); echo
  12.404  	return;;
  12.405  esac
  12.406  for i in $WOK/* ; do
  12.407 @@ -508,7 +346,7 @@
  12.408  	[ -f $WOK/$1/receipt ] && return 0
  12.409  	cat << _EOT_
  12.410  
  12.411 -<h3>$_noresult</h3>
  12.412 +<h3>$(eval_gettext "No package \$SEARCH")</h3>
  12.413  <pre>
  12.414  _EOT_
  12.415  	return 1
  12.416 @@ -551,7 +389,7 @@
  12.417  <div id="content">
  12.418  <a name="content"></a>
  12.419  
  12.420 -<h2>$_search_title</h2>
  12.421 +<h2>$(gettext "Search for packages")</h2>
  12.422  _EOT_
  12.423  	search_form
  12.424  	xhtml_footer
  12.425 @@ -563,14 +401,14 @@
  12.426  <div id="content">
  12.427  <a name="content"></a>
  12.428  
  12.429 -<h2>$_search_title</h2>
  12.430 +<h2>$(gettext "Search for packages")</h2>
  12.431  _EOT_
  12.432  	search_form
  12.433  	if [ "$OBJECT" = "Depends" ]; then
  12.434  		if [ -z "$SEARCH" ]; then
  12.435  			cat << _EOT_
  12.436  
  12.437 -<h3>$_depends_loops</h3>
  12.438 +<h3>$(gettext "Depends loops")</h3>
  12.439  <pre>
  12.440  _EOT_
  12.441  			for i in $WOK/*/receipt; do
  12.442 @@ -585,7 +423,7 @@
  12.443  		elif package_exist $SEARCH ; then
  12.444  			cat << _EOT_
  12.445  
  12.446 -<h3>$_deptree</h3>
  12.447 +<h3>$(eval_gettext "Dependency tree for: \$SEARCH")</h3>
  12.448  <pre>
  12.449  _EOT_
  12.450  			ALL_DEPS=""
  12.451 @@ -596,7 +434,7 @@
  12.452  				cat << _EOT_
  12.453  </pre>
  12.454  
  12.455 -<h3>$_deptree_suggested</h3>
  12.456 +<h3>$(eval_gettext "Dependency tree for: \$SEARCH (SUGGESTED)")</h3>
  12.457  <pre>
  12.458  _EOT_
  12.459  				ALL_DEPS=""
  12.460 @@ -605,7 +443,7 @@
  12.461  			cat << _EOT_
  12.462  </pre>
  12.463  
  12.464 -<h3>$_rdeptree</h3>
  12.465 +<h3>$(eval_gettext "Reverse dependency tree for: \$SEARCH")</h3>
  12.466  <pre>
  12.467  _EOT_
  12.468  			ALL_DEPS=""
  12.469 @@ -618,7 +456,7 @@
  12.470  		if [ -z "$SEARCH" ]; then
  12.471  			cat << _EOT_
  12.472  
  12.473 -<h3>$_bdepends_loops</h3>
  12.474 +<h3>$(gettext "Build depends loops")</h3>
  12.475  <pre>
  12.476  _EOT_
  12.477  			for i in $WOK/*/receipt; do
  12.478 @@ -634,7 +472,7 @@
  12.479  		elif package_exist $SEARCH ; then
  12.480  			cat << _EOT_
  12.481  
  12.482 -<h3>$_bdeplist</h3>
  12.483 +<h3>$(eval_gettext "\$SEARCH needs these packages to be built")</h3>
  12.484  <pre>
  12.485  _EOT_
  12.486  			ALL_DEPS=""
  12.487 @@ -642,7 +480,7 @@
  12.488  			cat << _EOT_
  12.489  </pre>
  12.490  
  12.491 -<h3>$_rbdeplist</h3>
  12.492 +<h3>$(eval_gettext "Packages who need \$SEARCH to be built")</h3>
  12.493  <pre>
  12.494  _EOT_
  12.495  			ALL_DEPS=""
  12.496 @@ -655,7 +493,7 @@
  12.497  		if package_exist $SEARCH ; then
  12.498  			cat << _EOT_
  12.499  
  12.500 -<h3>$_overloading</h3>
  12.501 +<h3>$(eval_gettext "These packages may overload files of \$SEARCH")</h3>
  12.502  <pre>
  12.503  _EOT_
  12.504  			( unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep ^$SEARCH: ;
  12.505 @@ -678,7 +516,7 @@
  12.506  	elif [ "$OBJECT" = "File" ]; then
  12.507  		cat << _EOT_
  12.508  
  12.509 -<h3>$_result</h3>
  12.510 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.511  <pre>
  12.512  _EOT_
  12.513  		last=""
  12.514 @@ -701,7 +539,7 @@
  12.515  		if package_exist $SEARCH; then
  12.516  			cat << _EOT_
  12.517  
  12.518 -<h3>$_result</h3>
  12.519 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.520  <pre>
  12.521  _EOT_
  12.522  			last=""
  12.523 @@ -718,7 +556,7 @@
  12.524  		if [ -f $WOK/$SEARCH/description.txt ]; then
  12.525  			cat << _EOT_
  12.526  
  12.527 -<h3>$_result</h3>
  12.528 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.529  <pre>
  12.530  $(htmlize < $WOK/$SEARCH/description.txt)
  12.531  </pre>
  12.532 @@ -726,7 +564,7 @@
  12.533  		else
  12.534  			cat << _EOT_
  12.535  
  12.536 -<h3>$_result</h3>
  12.537 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.538  <pre>
  12.539  _EOT_
  12.540  			last=""
  12.541 @@ -739,7 +577,7 @@
  12.542  	elif [ "$OBJECT" = "Tags" ]; then
  12.543  		cat << _EOT_
  12.544  
  12.545 -<h3>$_result</h3>
  12.546 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.547  <pre>
  12.548  _EOT_
  12.549  		last=""
  12.550 @@ -751,7 +589,7 @@
  12.551  	elif [ "$OBJECT" = "Receipt" ]; then
  12.552  		package_exist $SEARCH && cat << _EOT_
  12.553  
  12.554 -<h3>$_result</h3>
  12.555 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.556  <pre>
  12.557  $(if [ -f  $WOK/$SEARCH/taz/*/receipt ]; then
  12.558  	cat $WOK/$SEARCH/taz/*/receipt
  12.559 @@ -763,13 +601,13 @@
  12.560  	else
  12.561  		cat << _EOT_
  12.562  
  12.563 -<h3>$_result</h3>
  12.564 +<h3>$(eval_gettext "Result for: \$SEARCH")</h3>
  12.565  <pre>
  12.566  _EOT_
  12.567  		for pkg in `ls $WOK/ | grep "$SEARCH"`
  12.568  		do
  12.569  			. $WOK/$pkg/receipt
  12.570 -			DESC=" <a href=\"?desc=$pkg\">$_description</a>"
  12.571 +			DESC=" <a href=\"?desc=$pkg\">$(gettext description)</a>"
  12.572  			[ -f $WOK/$pkg/description.txt ] || DESC=""
  12.573  			cat << _EOT_
  12.574  $(package_entry)$DESC
  12.575 @@ -781,7 +619,7 @@
  12.576  	cat << _EOT_
  12.577  </pre>
  12.578  
  12.579 -<h3>$(echo $_result_providing | sed s/'%VPKG%'/"$vpkg"/)</h3>
  12.580 +<h3>$(eval_gettext "Result for: \$SEARCH (package providing \$vpkg)")</h3>
  12.581  <pre>
  12.582  _EOT_
  12.583  			for pkg in $(grep $vpkg= $equiv | sed "s/$vpkg=//"); do
    13.1 Binary file pkgs/style/favicon.ico has changed
    14.1 Binary file pkgs/style/logo.png has changed
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/pkgs/style/slitaz.css	Wed Apr 11 04:16:55 2012 +0300
    15.3 @@ -0,0 +1,355 @@
    15.4 +/*
    15.5 +	CSS style for SliTaz Network - (C) 2012 SliTaz GNU/Linux
    15.6 +*/
    15.7 +
    15.8 +html {
    15.9 +	min-height:  102%;
   15.10 +}
   15.11 +
   15.12 +body {
   15.13 +	background: #ffffff;
   15.14 +	color: black;
   15.15 +	font: 13px sans-serif, vernada, arial;
   15.16 +	margin: 0;
   15.17 +	min-width: 780px;
   15.18 +	height: 100%;
   15.19 +}
   15.20 +
   15.21 +a { text-decoration: underline; color: #215090; }
   15.22 +a:hover { text-decoration: none; color: blue; }
   15.23 +img { border: 0pt none; vertical-align: middle; }
   15.24 +h2 { color: #444; }
   15.25 +h3 { color: #666; font-size: 140%; }
   15.26 +h4 { color: #888; font-size: 120%; }
   15.27 +pre { 
   15.28 +	background-color: #f8f8f8; 
   15.29 +	border: 1px solid #ddd; 
   15.30 +	padding: 10px;
   15.31 +}
   15.32 +table { 
   15.33 +	background-color: #f8f8f8;
   15.34 +	border: 1px solid #ddd; 
   15.35 +	width: 100%; 
   15.36 +	margin: 0px 0px 20px 0px;
   15.37 +	padding: 10px;
   15.38 +}
   15.39 +
   15.40 +/* Header */
   15.41 +
   15.42 +#header { 
   15.43 +	height: 40px; 
   15.44 +	background: #351a0a;
   15.45 +	color: #ffffff;
   15.46 +}
   15.47 +
   15.48 +#header h1 {
   15.49 +	margin: 0;
   15.50 +	padding: 8px 0 0 42px;
   15.51 +	width: 250px;
   15.52 +}
   15.53 +
   15.54 +#header h1 a { 
   15.55 +	color: white; 
   15.56 +	text-decoration: none;
   15.57 +	font-size: 20px;
   15.58 +	font-style: italic;
   15.59 +}
   15.60 +
   15.61 +#header h1 a:hover, #network a:hover { 
   15.62 +	color: #d66018;
   15.63 +}
   15.64 +
   15.65 +/* Logo */
   15.66 +
   15.67 +#logo {
   15.68 +	background: url(logo.png) no-repeat left;
   15.69 +	position: absolute;
   15.70 +	float: left;
   15.71 +	left: 0px;
   15.72 +	top: 0px;
   15.73 +	width: 40px;
   15.74 +	height: 40px;
   15.75 +}
   15.76 +
   15.77 +/* SliTaz Network */
   15.78 +
   15.79 +#network { 
   15.80 +	float: right; 
   15.81 +	padding: 10px 5px 0; 
   15.82 +	font-size: 12px;
   15.83 +}
   15.84 +
   15.85 +#network a { padding: 0 6px; }
   15.86 +
   15.87 +/* Block */
   15.88 +
   15.89 +#block { 
   15.90 +	min-height: 200px; 
   15.91 +	background: #d66018; 
   15.92 +	padding: 26px 10% 0px;
   15.93 +	text-align: center;
   15.94 +	color: #333;
   15.95 +	border-bottom: 1px solid #f5f5f5;
   15.96 +}
   15.97 +
   15.98 +#block_info {
   15.99 +	text-align: justify; 
  15.100 +	width: 48%;
  15.101 +	padding: 10px 10px 0 0;
  15.102 +}
  15.103 +
  15.104 +#block a, #network a { 
  15.105 +	color: #fff; 
  15.106 +	font-weight: bold;
  15.107 +	text-decoration: none;
  15.108 +}
  15.109 +
  15.110 +#block h4 {
  15.111 +	color: #351a0a;
  15.112 +	margin: 0px;
  15.113 +	font-weight: bold;
  15.114 +	font-size: 110%;
  15.115 +}
  15.116 +
  15.117 +#block_info p { margin: 6px 0; padding: 0 12px 0 0; }
  15.118 +#block_info a { font-weight: normal; }
  15.119 +#block ul { list-style-type: square; }
  15.120 +#block a:hover { color: #351a0a; }
  15.121 +
  15.122 +/* Navigation */
  15.123 +
  15.124 +#block_nav {
  15.125 +	background: #cc5b17;
  15.126 +	padding: 10px 10px 40px;
  15.127 +	text-align: justify;
  15.128 +	width: 48%;
  15.129 +	float: right;
  15.130 +}
  15.131 +
  15.132 +#block_nav ul { 
  15.133 +	list-style-type: none; 
  15.134 +	margin: 6px 0; 
  15.135 +	padding: 0;
  15.136 +}
  15.137 +
  15.138 +#block_nav h4 img { 
  15.139 +	margin: 0 4px 0 0; 
  15.140 +	padding: 0;
  15.141 +}
  15.142 +
  15.143 +/* Languages */
  15.144 +
  15.145 +#lang {
  15.146 +	position: absolute;
  15.147 +	right: 0;
  15.148 +	padding: 6px;
  15.149 +	font-size: 11px;
  15.150 +}
  15.151 +
  15.152 +#lang a {
  15.153 +	text-decoration: none;
  15.154 +	padding: 0 2px;
  15.155 +}
  15.156 +
  15.157 +#lang a:hover {
  15.158 +	text-decoration: underline;
  15.159 +}
  15.160 +
  15.161 +/* Content */
  15.162 +
  15.163 +#content {
  15.164 +	padding: 30px 80px;
  15.165 +	text-align: justify;
  15.166 +}
  15.167 +
  15.168 +.news li {
  15.169 +	list-style-type: square;
  15.170 +	border-bottom: 1px dotted #BEBEBE;
  15.171 +	margin-left: -25px;
  15.172 +	padding: 4px 0px 4px 0px;
  15.173 +}
  15.174 +
  15.175 +.news a, .feed-grid a { text-decoration: none; }
  15.176 +.news p a { text-decoration: underline; }
  15.177 +.news p a:hover { text-decoration: none; }
  15.178 +#twitter { margin: 20px 0; }
  15.179 +#gallery { text-align: center; }
  15.180 +
  15.181 +#sponsor {
  15.182 +	font-size: 90%;
  15.183 +	background-color: #fbfbfb;
  15.184 +	border: 2px solid #ddd;
  15.185 +	width: 200px;
  15.186 +	height: 160px;
  15.187 +	float: right;
  15.188 +	text-align: center;
  15.189 +	margin: 10px 0px 20px 20px;
  15.190 +}
  15.191 +
  15.192 +#mirrors {
  15.193 +	padding: 10px;
  15.194 +	margin: 10px 0px 20px;
  15.195 +	text-align: center;
  15.196 +	background: #f1f1f1;
  15.197 +	border: 2px solid #ddd;
  15.198 +}
  15.199 +
  15.200 +/* Classes */
  15.201 +
  15.202 +.right_box { width: 48%; float: right; }
  15.203 +.left_box { width: 48%; float: left; }
  15.204 +
  15.205 +.box {
  15.206 +	margin: 20px 60px;
  15.207 +	padding: 12px;
  15.208 +	background: #efefef;
  15.209 +	border: 1px solid #ddd;
  15.210 +}
  15.211 +
  15.212 +.searchbox { 
  15.213 +	margin: 20px 80px; 
  15.214 +	padding: 12px; 
  15.215 +	background: #f8f8f8;
  15.216 +	text-align: center;
  15.217 +	border: 1px solid #ddd;
  15.218 +}
  15.219 +
  15.220 +/* Activity Box */
  15.221 +
  15.222 +.activity { 
  15.223 +	margin: 0 0 20px; 
  15.224 +	background: #efefef; 
  15.225 +	padding: 5px 2px 0; 
  15.226 +	border: 1px solid #ddd; 
  15.227 +}
  15.228 +.activity div { padding: 5px 10px; background: #fff; margin-top: 5px; }
  15.229 +.activity p { margin: 0; padding: 5px 10px; font-weight: bold; }
  15.230 +.activity a { text-decoration: none; }
  15.231 +.activity ul { list-style-type: none; 
  15.232 +	margin: 4px 0; padding: 0 4px; line-height: 150%; }
  15.233 +.activity_more { text-align: right;  }
  15.234 +.activity_more a { font-weight: normal; color: #000; padding: 0 4px; }
  15.235 +.activity_more a:hover { text-decoration: underline; }
  15.236 +
  15.237 +.activity span, .news span { 
  15.238 +	color: #666; 
  15.239 +	font-size: 11px; 
  15.240 +	font-weight: normal;
  15.241 +}
  15.242 +
  15.243 +/* Button */
  15.244 +
  15.245 +.button a { 
  15.246 +	background-color: #b64b22;
  15.247 +	color: #ffffff;
  15.248 +	margin-right: 6px;
  15.249 +	padding: 6px 10px;
  15.250 +	font-size: 12px;
  15.251 +	text-decoration: none;
  15.252 +	font-weight: bold;
  15.253 +}
  15.254 +.button a:hover, input[type=submit]:hover { 
  15.255 +	background-color: #a3431f;
  15.256 +	color: #ffffff;
  15.257 +}
  15.258 +
  15.259 +/* Round corner */
  15.260 +
  15.261 +#block_nav, pre, .box, .searchbox, .button a, #twitter, .activity,
  15.262 +.activity div, #sponsor, #mirrors, table, input, textarea, select {
  15.263 +	-moz-border-radius: 4px;
  15.264 +	-webkit-border-radius: 4px;
  15.265 +	border-radius: 4px;
  15.266 +}
  15.267 +
  15.268 +/* Form */
  15.269 +
  15.270 +form { display: inline; }
  15.271 +input[type="submit"], input[type="text"], textarea, select {
  15.272 +	color: #444444;
  15.273 +	border: 1px solid #cccccc;
  15.274 +	padding: 4px;
  15.275 +	margin: 4px 0px;
  15.276 +	font-size: 14px;
  15.277 +	line-height: 1.2em;
  15.278 +	background-image: -webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
  15.279 +	background-image: -moz-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
  15.280 +	-webkit-appearance: none;
  15.281 +	-webkit-padding-end: 6px;
  15.282 +	-webkit-padding-start: 6px;
  15.283 +}
  15.284 +
  15.285 +input[type="text"], textarea { background: #fefefe; border: 2px solid #ccc; 
  15.286 +	width: 460px; }
  15.287 +/*input[type="file"] { border: 2px solid #ddd; }*/
  15.288 +/*input[type="checkbox"] { background: #fefefe; }*/
  15.289 +
  15.290 +/* Be compatible with old FF and Webkit version. */
  15.291 +input[type="submit"] {
  15.292 +	-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  15.293 +	-moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  15.294 +	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  15.295 +}
  15.296 +
  15.297 +input[type="submit"]:hover { 
  15.298 +	cursor: pointer;
  15.299 +	color: black;
  15.300 +}
  15.301 +
  15.302 +select { 
  15.303 +	background-image: url(images/down.png), 
  15.304 +		-webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
  15.305 +	background-position: center right;
  15.306 +	background-repeat: no-repeat;
  15.307 +}
  15.308 +
  15.309 +.searchbox input[type=submit] {
  15.310 +	border: 1px solid #b64b22;
  15.311 +	background-color: #b64b22;
  15.312 +	color: white;
  15.313 +	font-weight: bold;
  15.314 +	cursor: pointer;
  15.315 +	padding: 4px 10px;
  15.316 +	font-size: 14px;
  15.317 +	margin-left: -5px;
  15.318 +	-webkit-border-top-right-radius: 4px;
  15.319 +	-webkit-border-bottom-right-radius: 4px;
  15.320 +	-moz-border-radius-topright: 4px;
  15.321 +	-moz-border-radius-bottomright: 4px;
  15.322 +	border-top-right-radius: 4px;
  15.323 +	border-bottom-right-radius: 4px;
  15.324 +}
  15.325 +
  15.326 +.searchbox input[type=submit]:hover { background-color: #a3431f; }
  15.327 +
  15.328 +.searchbox input[type=text] {
  15.329 +	border: 1px solid #333333;
  15.330 +	padding: 4px;
  15.331 +	height: 17px;
  15.332 +	width: 100%;
  15.333 +	-webkit-border-top-left-radius: 4px;
  15.334 +	-webkit-border-bottom-left-radius: 4px;
  15.335 +	-moz-border-radius-topleft: 4px;
  15.336 +	-moz-border-radius-bottomleft: 4px;
  15.337 +	border-top-left-radius: 4px;
  15.338 +	border-bottom-left-radius: 4px;
  15.339 +}
  15.340 +
  15.341 +/* Footer */
  15.342 +
  15.343 +#footer {
  15.344 +	background: #f1f1f1;
  15.345 +	text-align: center;
  15.346 +	border-top: 1px solid #ddd;
  15.347 +	padding: 40px;
  15.348 +	color: #666;
  15.349 +	clear: both;
  15.350 +	margin-bottom: -2%;
  15.351 +}
  15.352 +
  15.353 +#footer a { color: #666; padding: 0 2px; }
  15.354 +
  15.355 +.year:after {
  15.356 +	/* content: "2007-2012"; */
  15.357 +	content: "2012";
  15.358 +}