tazpkg diff pkgs.cgi @ rev 633
Add Polish translation (thanks Pawel Pyrczak); merge tazpkg, tazpkg-notify and other *pkg* translations into one; simplify plural translations using $num; normalize name (Tazpkg, TazPKG -> TazPkg); move markup outside translations; re-use categories names in tazpkg and tazpanel; other tiny improvements.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 25 01:47:48 2013 +0300 (2013-07-25) |
parents | ff5eff537a5f |
children | e959c9d3daea |
line diff
1.1 --- a/pkgs.cgi Mon Jul 01 10:27:49 2013 +0200 1.2 +++ b/pkgs.cgi Thu Jul 25 01:47:48 2013 +0300 1.3 @@ -1,12 +1,12 @@ 1.4 #!/bin/sh 1.5 # 1.6 -# TazPKG CGI interface - Manage packages via a browser 1.7 +# TazPkg CGI interface - Manage packages via a browser 1.8 # 1.9 # This CGI interface extensively uses tazpkg to manage packages and have 1.10 # its own code for some tasks. Please KISS, it is important and keep speed 1.11 # in mind. Thanks, Pankso. 1.12 # 1.13 -# (C) 2011 SliTaz GNU/Linux - BSD License 1.14 +# (C) 2011-2013 SliTaz GNU/Linux - BSD License 1.15 # 1.16 1.17 . lib/libtazpanel 1.18 @@ -14,9 +14,11 @@ 1.19 header 1.20 1.21 # xHTML 5 header with special side bar for categories. 1.22 -TITLE=$(gettext 'TazPanel - Packages') 1.23 +TITLE=$(TEXTDOMAIN='tazpkg'; gettext 'TazPanel - Packages') 1.24 xhtml_header | sed 's/id="content"/id="content-sidebar"/' 1.25 1.26 +export TEXTDOMAIN='tazpkg' 1.27 + 1.28 pkg_info_link() 1.29 { 1.30 echo "$SCRIPT_NAME?info=$1" | sed 's/+/%2B/g' 1.31 @@ -154,21 +156,21 @@ 1.32 cat << EOT 1.33 <div id="sidebar"> 1.34 <h4>$(gettext 'Categories')</h4> 1.35 - <a class="active_base-system" href="$SCRIPT_NAME?cat=base-system&repo=$repo">$(gettext 'Base-system')</a> 1.36 - <a class="active_x-window" href="$SCRIPT_NAME?cat=x-window&repo=$repo">$(gettext 'X window')</a> 1.37 - <a class="active_utilities" href="$SCRIPT_NAME?cat=utilities&repo=$repo">$(gettext 'Utilities')</a> 1.38 - <a class="active_network" href="$SCRIPT_NAME?cat=network&repo=$repo">$(gettext 'Network')</a> 1.39 - <a class="active_games" href="$SCRIPT_NAME?cat=games&repo=$repo">$(gettext 'Games')</a> 1.40 - <a class="active_graphics" href="$SCRIPT_NAME?cat=graphics&repo=$repo">$(gettext 'Graphics')</a> 1.41 - <a class="active_office" href="$SCRIPT_NAME?cat=office&repo=$repo">$(gettext 'Office')</a> 1.42 - <a class="active_multimedia" href="$SCRIPT_NAME?cat=multimedia&repo=$repo">$(gettext 'Multimedia')</a> 1.43 - <a class="active_development" href="$SCRIPT_NAME?cat=development&repo=$repo">$(gettext 'Development')</a> 1.44 - <a class="active_system-tools" href="$SCRIPT_NAME?cat=system-tools&repo=$repo">$(gettext 'System tools')</a> 1.45 - <a class="active_security" href="$SCRIPT_NAME?cat=security&repo=$repo">$(gettext 'Security')</a> 1.46 - <a class="active_misc" href="$SCRIPT_NAME?cat=misc&repo=$repo">$(gettext 'Misc')</a> 1.47 - <a class="active_meta" href="$SCRIPT_NAME?cat=meta&repo=$repo">$(gettext 'Meta')</a> 1.48 - <a class="active_non-free" href="$SCRIPT_NAME?cat=non-free&repo=$repo">$(gettext 'Non free')</a> 1.49 - <a class="active_all" href="$SCRIPT_NAME?cat=all&repo=$repo">$(gettext 'All')</a> 1.50 + <a class="active_base-system" href="$SCRIPT_NAME?cat=base-system&repo=$repo">$(gettext 'base-system')</a> 1.51 + <a class="active_x-window" href="$SCRIPT_NAME?cat=x-window&repo=$repo">$(gettext 'x-window')</a> 1.52 + <a class="active_utilities" href="$SCRIPT_NAME?cat=utilities&repo=$repo">$(gettext 'utilities')</a> 1.53 + <a class="active_network" href="$SCRIPT_NAME?cat=network&repo=$repo">$(gettext 'network')</a> 1.54 + <a class="active_games" href="$SCRIPT_NAME?cat=games&repo=$repo">$(gettext 'games')</a> 1.55 + <a class="active_graphics" href="$SCRIPT_NAME?cat=graphics&repo=$repo">$(gettext 'graphics')</a> 1.56 + <a class="active_office" href="$SCRIPT_NAME?cat=office&repo=$repo">$(gettext 'office')</a> 1.57 + <a class="active_multimedia" href="$SCRIPT_NAME?cat=multimedia&repo=$repo">$(gettext 'multimedia')</a> 1.58 + <a class="active_development" href="$SCRIPT_NAME?cat=development&repo=$repo">$(gettext 'development')</a> 1.59 + <a class="active_system-tools" href="$SCRIPT_NAME?cat=system-tools&repo=$repo">$(gettext 'system-tools')</a> 1.60 + <a class="active_security" href="$SCRIPT_NAME?cat=security&repo=$repo">$(gettext 'security')</a> 1.61 + <a class="active_misc" href="$SCRIPT_NAME?cat=misc&repo=$repo">$(gettext 'misc')</a> 1.62 + <a class="active_meta" href="$SCRIPT_NAME?cat=meta&repo=$repo">$(gettext 'meta')</a> 1.63 + <a class="active_non-free" href="$SCRIPT_NAME?cat=non-free&repo=$repo">$(gettext 'non-free')</a> 1.64 + <a class="active_all" href="$SCRIPT_NAME?cat=all&repo=$repo">$(gettext 'all')</a> 1.65 EOT 1.66 1.67 if [ -d $LOCALSTATE/undigest ]; then 1.68 @@ -578,7 +580,7 @@ 1.69 sidebar 1.70 loading_msg 1.71 cat << EOT 1.72 -<h2>Tazpkg: $cmd</h2> 1.73 +<h2>TazPkg: $cmd</h2> 1.74 1.75 <form method="get" action="$SCRIPT_NAME"> 1.76 <div id="actions"> 1.77 @@ -729,7 +731,7 @@ 1.78 1.79 *\ admin\ * ) 1.80 # 1.81 - # Tazpkg configuration page 1.82 + # TazPkg configuration page 1.83 # 1.84 cmd=$(GET admin) 1.85 case "$cmd" in 1.86 @@ -775,7 +777,7 @@ 1.87 cat << EOT 1.88 <h2>$(gettext 'Administration')</h2> 1.89 <div> 1.90 - <p>$(gettext 'Tazpkg administration and settings')</p> 1.91 + <p>$(gettext 'TazPkg administration and settings')</p> 1.92 </div> 1.93 <div id="actions"> 1.94 <a class="button" href='$SCRIPT_NAME?admin=&action=saveconf'> 1.95 @@ -992,5 +994,6 @@ 1.96 esac 1.97 1.98 # xHTML 5 footer 1.99 +export TEXTDOMAIN='tazpkg' 1.100 xhtml_footer 1.101 exit 0