summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-03-14 14:11:52 -0700
committerArun Persaud <arun@nubati.net>2010-03-14 14:33:31 -0700
commit83fc1a851c69e13808d14f2d5a284c3369409018 (patch)
tree67d2da7a1481269aa939b898f3fd1be4507cf869 /include/output.php
parentc05246b378470eab9c172d8d96328a821302a273 (diff)
downloade-DoKo-83fc1a851c69e13808d14f2d5a284c3369409018.tar.gz
e-DoKo-83fc1a851c69e13808d14f2d5a284c3369409018.tar.bz2
e-DoKo-83fc1a851c69e13808d14f2d5a284c3369409018.zip
NEW FEATURE: added localization support
using gettext to add support for localization
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/output.php b/include/output.php
index 135fe13..79e42c2 100644
--- a/include/output.php
+++ b/include/output.php
@@ -394,7 +394,9 @@ function output_header()
</head>
<body onload="high_last();">
<div class="header">
-<h1> Welcome to E-Doko </h1>
+<?php
+ echo '<h1> '._('Welcome to E-Doko').' </h1>';
+?>
</div>
<?php
@@ -516,6 +518,26 @@ function output_select_timezone($name,$timezone="")
return;
}
+function output_select_language($name,$language="")
+{
+ $LOCALE = array ("English" => "en",
+ "Deutsch" => "de" );
+
+ echo " <select id=\"$name\" name=\"$name\" size=\"1\">\n";
+
+ foreach($LOCALE as $place=>$locale)
+ {
+ if($language==$locale)
+ echo " <option value=\"$locale\" selected=\"selected\">$place</option>\n";
+ else
+ echo " <option value=\"$locale\">$place</option>\n";
+ }
+ echo " </select>\n";
+
+ return;
+}
+
+
function output_password_recovery($email,$password)
{
?>