slitaz-base-files diff rootfs/var/www/cgi-bin/cgi-env.sh @ rev 181

prepa for release
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 24 12:38:33 2012 +0200 (2012-05-24)
parents cd043522cb43
children b2311939ad7e
line diff
     1.1 --- a/rootfs/var/www/cgi-bin/cgi-env.sh	Thu Apr 12 21:52:41 2012 +0200
     1.2 +++ b/rootfs/var/www/cgi-bin/cgi-env.sh	Thu May 24 12:38:33 2012 +0200
     1.3 @@ -1,4 +1,11 @@
     1.4  #!/bin/sh
     1.5 +
     1.6 +# Internationalization.
     1.7 +. /usr/bin/gettext.sh
     1.8 +TEXTDOMAIN='slitaz-base'
     1.9 +. /etc/locale.conf
    1.10 +export TEXTDOMAIN LANG
    1.11 +
    1.12  . /usr/lib/slitaz/httphelper.sh
    1.13  header
    1.14  
    1.15 @@ -6,43 +13,40 @@
    1.16  <!DOCTYPE html>
    1.17  <html xmlns="http://www.w3.org/1999/xhtml">
    1.18  <head>
    1.19 -	<title>CGI SHell Environment</title>
    1.20  	<meta charset="utf-8" />
    1.21 +	<title>$(gettext "CGI SHell Environment")</title>
    1.22  	<link rel="stylesheet" type="text/css" href="../style.css" />
    1.23  </head>
    1.24  <body>
    1.25  
    1.26  <!-- Header -->
    1.27  <div id="header">
    1.28 -	<h1>CGI SHell Environment</h1>
    1.29 +	<h1>$(gettext "CGI SHell Environment")</h1>
    1.30  </div>
    1.31  
    1.32  <!-- Content -->
    1.33  <div id="content">
    1.34  
    1.35 -<p>
    1.36 -	Welcome to the SliTaz web server CGI Shell environment. Let the power of
    1.37 -	SHell script meet the web! Here you can check HTTP info and try some
    1.38 -	requests. 
    1.39 -</p>
    1.40 -<p>
    1.41 -	Including /usr/lib/slitaz/httphelper.sh in your scripts lets you
    1.42 -	use PHP-like syntax such as: \$(GET var)
    1.43 -</p>
    1.44 -<p>
    1.45 -	QUERY_STRING test: 
    1.46 +<p>$(gettext "Welcome to the SliTaz web server CGI Shell environment. Let the \
    1.47 +power of SHell script meet the web! Here you can check HTTP info and try some \
    1.48 +requests.")</p>
    1.49 +
    1.50 +<p>$(gettext "Including /usr/lib/slitaz/httphelper.sh in your scripts lets you \
    1.51 +use PHP-like syntax such as: \$(GET var)")</p>
    1.52 +
    1.53 +<p>$(gettext "QUERY_STRING test:")
    1.54  	<a href="$SCRIPT_NAME?var=value">$SCRIPT_NAME?var=value</a>
    1.55  </p>
    1.56  
    1.57 -<h2>HTTP Info</h2>
    1.58 -<pre>
    1.59 -$(httpinfo)
    1.60 -</pre>
    1.61  
    1.62 -<h2>HTTP Helper</h2>
    1.63 -<pre>
    1.64 -$(httphelper)
    1.65 -</pre>
    1.66 +<h2>$(gettext "HTTP Info")</h2>
    1.67 +
    1.68 +<pre>$(httpinfo)</pre>
    1.69 +
    1.70 +
    1.71 +<h2>$(gettext "HTTP Helper")</h2>
    1.72 +
    1.73 +<pre>$(httphelper)</pre>
    1.74  
    1.75  <!-- End content -->
    1.76  </div>