[feladat @ 3]
authorrejo
Sat, 14 Apr 2007 11:37:27 +0000
changeset 2 9a485c41cfcf
parent 1 58094faf794d
child 3 64525a2eb098
[feladat @ 3] First set of changes to provide translation framework.
add_record.php
delete_domain.php
delete_record.php
delete_user.php
edit.php
edit_record.php
edit_user.php
index.php
install.php.orig
search.php
seq_update.php
test_setup.php
users.php
--- a/add_record.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/add_record.php	Sat Apr 14 11:37:27 2007 +0000
@@ -28,13 +28,13 @@
 }
 include_once("inc/header.inc.php");
 ?>
-<H2>Add record to zone "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
-<FONT CLASS="nav"><BR><A HREF="index.php">DNS Admin</A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["id"] ?>"><?= get_domain_name_from_id($_GET["id"]) ?></A> &gt;&gt; Add record<BR><BR></FONT>
+<H2><? echo _('Add record to zone'); ?> "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
+<FONT CLASS="nav"><BR><A HREF="index.php"><? echo _('DNS Admin'); ?></A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["id"] ?>"><?= get_domain_name_from_id($_GET["id"]) ?></A> &gt;&gt; <? echo _('Add record'); ?><BR><BR></FONT>
 
 <FORM METHOD="post">
 <INPUT TYPE="hidden" NAME="zoneid" VALUE="<?= $_GET["id"] ?>">
 <TABLE BORDER="0" CELLSPACING="4">
-<TR STYLE="font-weight: Bold"><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg">Type</TD><TD CLASS="tdbg">Priority</TD><TD CLASS="tdbg">Content</TD><TD CLASS="tdbg">TimeToLive</TD></TR>
+<TR STYLE="font-weight: Bold"><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Type'); ?></TD><TD CLASS="tdbg"><? echo _('Priority'); ?></TD><TD CLASS="tdbg"><? echo _('Content'); ?></TD><TD CLASS="tdbg"><? echo _('TimeToLive'); ?></TD></TR>
 <TR><TD CLASS="tdbg"><INPUT TYPE="text" NAME="name" CLASS="input">.<?= get_domain_name_from_id($_GET["id"]) ?></TD><TD CLASS="tdbg">IN</TD><TD CLASS="tdbg"><SELECT NAME="type">
 <?
 $dname = get_domain_name_from_id($_GET["id"]);
@@ -50,7 +50,7 @@
 }
 ?></SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" CLASS="sinput" VALUE="<?=$DEFAULT_TTL?>"></TD></TR>
 </TABLE>
-<BR><INPUT TYPE="submit" NAME="commit" VALUE="Add record" CLASS="button">
+<BR><INPUT TYPE="submit" NAME="commit" VALUE="<? echo _('Add record'); ?>" CLASS="button">
 </FORM>
 
 <? include_once("inc/footer.inc.php"); ?>
--- a/delete_domain.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/delete_domain.php	Sat Apr 14 11:37:27 2007 +0000
@@ -35,11 +35,11 @@
         }
         include_once("inc/header.inc.php");
         $info = get_domain_info_from_id($_GET["id"]);
-        ?><H2>Delete domain "<?= $info["name"] ?>"</H2>
-        Owner: <?= $info["owner"] ?><BR>
-        Number of records in zone: <?= $info["numrec"] ?><BR><BR>
-        <FONT CLASS="warning">Are you sure?</FONT><BR><BR>
-        <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="Yes"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="No">
+        ?><H2><? echo _('Delete domain'); ?> "<?= $info["name"] ?>"</H2>
+        <? echo _('Owner'); ?>: <?= $info["owner"] ?><BR>
+        <? echo _('Number of records in zone'); ?>: <?= $info["numrec"] ?><BR><BR>
+        <FONT CLASS="warning"><? echo _('Are you sure'); ?>?</FONT><BR><BR>
+        <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="<? echo _('Yes'); ?>"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="<? echo _('No'); ?>">
         <?
 } elseif ($_GET["edit"]) {
         include_once("inc/header.inc.php");
--- a/delete_record.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/delete_record.php	Sat Apr 14 11:37:27 2007 +0000
@@ -28,15 +28,15 @@
                 clean_page("edit.php?id=".$_GET["domain"]);
         }
         include_once("inc/header.inc.php");
-        ?><H2>Delete record "<?
+        ?><H2><? echo _('Delete record'); ?> "<?
         $data = get_record_from_id($_GET["id"]);
         print $data["name"]." IN ".$data["type"]." ".$data["content"];
         ?>"</H2><?
         if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") {
-                print "<FONT CLASS=\"warning\">You are trying to delete a record that is needed for this zone to work.</FONT><BR>";
+                print "<FONT CLASS=\"warning\">" . ('You are trying to delete a record that is needed for this zone to work.') . "</FONT><BR>";
         }
-        ?><BR><FONT CLASS="warning">Are you sure?</FONT><BR><BR>
-        <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="Yes"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="No">
+        ?><BR><FONT CLASS="warning"><? echo _('Are you sure?'); ?></FONT><BR><BR>
+        <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=1'" VALUE="<? echo _('Yes'); ?>"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='<?= $_SERVER["REQUEST_URI"] ?>&confirm=0'" VALUE="<? echo _('No'); ?>">
         <?
 } else {
         include_once("inc/header.inc.php");
--- a/delete_user.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/delete_user.php	Sat Apr 14 11:37:27 2007 +0000
@@ -51,13 +51,13 @@
                 clean_page($BASE_URL . $BASE_PATH . "users.php");
         }
         include_once("inc/header.inc.php");
-        ?><H2>Delete user "<?= get_fullname_from_userid($id) ?>"</H2>
+        ?><H2><? echo _('Delete user'); ?> "<?= get_fullname_from_userid($id) ?>"</H2>
         <FORM METHOD="post">
         <?
         $domains = get_domains_from_userid($id);
         if (count($domains) > 0) 
         {
-        	?>This user has access to the following domain(s):<BR><?
+        	echo _('This user has access to the following domain(s)'); ?> :<BR><?
                 $users = show_users($id);
                 if(count($users) < 1) 
                 {
@@ -90,17 +90,17 @@
                 ?></TABLE><?
         }
         
-        $message = "You are going to delete this user, are you sure?";
+        $message = _('You are going to delete this user, are you sure?');
         if(($numrows = $db->getOne("select count(id) from zones where owner=$id")) != 0)
         {
-        	$message .= " This user has access to $numrows domain(s), by deleting him you will also delete these domains";
+        	$message .= " " . _('This user has access to $numrows domain(s), by deleting him you will also delete these domains');
         }
 
         ?>
         <BR><FONT CLASS="warning"><?= $message ?></FONT><BR><BR>
         <INPUT TYPE="hidden" NAME="id" VALUE="<?=$id ?>">
         <INPUT TYPE="hidden" NAME="confirm" VALUE="1">
-        <INPUT TYPE="submit" CLASS="button" VALUE="Yes"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='users.php'" VALUE="No"></FORM>
+        <INPUT TYPE="submit" CLASS="button" VALUE="<? echo _('Yes'); ?>"> <INPUT TYPE="button" CLASS="button" OnClick="location.href='users.php'" VALUE="<? echo _('No'); ?>"></FORM>
         <?
         include_once("inc/footer.inc.php");
 } 
--- a/edit.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/edit.php	Sat Apr 14 11:37:27 2007 +0000
@@ -49,13 +49,13 @@
 
 include_once("inc/header.inc.php");
 ?>
-<H2>Edit domain "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
+<H2><? echo _('Edit domain'); ?> "<?= get_domain_name_from_id($_GET["id"]) ?>"</H2>
 <?
 $info = get_domain_info_from_id($_GET["id"]);
 if(!isset($info["ownerid"]))
 {
 	?>
-	<P CLASS="warning">This domain isnt owned by anyone yet, please assign someone</P>
+	<P CLASS="warning"><? echo _('This domain isnt owned by anyone yet, please assign someone.'); ?></P>
 	<?
 }
 ?>
@@ -66,7 +66,7 @@
 	<TR>
 		<FORM METHOD="post" ACTION="edit.php?id=<?=$_GET['id']?>">
 		<TD CLASS="none" VALIGN="middle" style="width: 250px;">
-			<B>Add an owner:</B>
+			<B><? echo _('Add an owner'); ?>:</B>
 			<INPUT TYPE="hidden" NAME="domain" VALUE="<?= $_GET["id"] ?>">
 			<SELECT NAME="newowner">
 			<?
@@ -85,7 +85,7 @@
 			</SELECT>
 		</TD>
 		<TD CLASS="none" VALIGN="middle"  align="right">
-			<INPUT TYPE="submit" CLASS="sbutton" NAME="co" VALUE="add">
+			<INPUT TYPE="submit" CLASS="sbutton" NAME="co" VALUE="<? echo _('add'); ?>">
 		</TD>
 		</FORM>
 	</TR>
@@ -98,7 +98,7 @@
 {?>
 	<TR>
 		<TD CLASS="text" ALIGN="left" COLSPAN="2" style="width:150px;">
-			<B>Current listed owners:</B>
+			<B><? echo _('Current listed owners'); ?>:</B>
 		</TD>
 	</TR>
 	<?
@@ -112,7 +112,7 @@
 			</TD>
 			<TD CLASS="text" align="right">
 				<INPUT TYPE="hidden" NAME="del_user" VALUE="<?=$user["id"]?>">
-				<INPUT TYPE="submit" CLASS="sbutton" NAME="co" VALUE="delete">
+				<INPUT TYPE="submit" CLASS="sbutton" NAME="co" VALUE="<? echo _('delete'); ?>">
 			</TD>
 			</FORM>
 		</TR>
@@ -129,11 +129,11 @@
             <TD CLASS="text">&nbsp;</TD>
         </TR>
 		<TR>
-			<TD CLASS="text" COLSPAN="2"><B>Type of this domain: </B><?=$domain_type?></TD>
+			<TD CLASS="text" COLSPAN="2"><B><? echo _('Type of this domain'); ?>: </B><?=$domain_type?></TD>
 		</TR>
 		<FORM ACTION="<?=$_SERVER['PHP_SELF']?>?&amp;id=<?=$_GET['id']?>" METHOD="post">
 		<TR>
-            <TD CLASS="text"><B>Change type: </B>
+            <TD CLASS="text"><B><? echo _('Change type'); ?>: </B>
                 <SELECT NAME="newtype">
                 <?
                 foreach($server_types as $s)
@@ -149,7 +149,7 @@
                 </SELECT>
             </TD>
             <TD CLASS="text">
-                <INPUT TYPE="submit" CLASS="sbutton" NAME="type_change" VALUE="change">
+                <INPUT TYPE="submit" CLASS="sbutton" NAME="type_change" VALUE="<? echo _('change'); ?>">
             </TD>
         </TR>
         </FORM>
@@ -157,9 +157,9 @@
 </TABLE>
 <br />
 <FONT CLASS="nav">
-<A HREF="index.php">DNS Admin</A> &gt;&gt; <?= get_domain_name_from_id($_GET["id"]) ?>
+<A HREF="index.php"><? echo _('DNS Admin'); ?></A> &gt;&gt; <?= get_domain_name_from_id($_GET["id"]) ?>
 </FONT>
-<br /><br /><small><b>Number of records:</b> <?= $info["numrec"] ?>
+<br /><br /><small><b><? echo _('Number of records'); ?>:</b> <?= $info["numrec"] ?>
 
 <?
 show_pages($info["numrec"],ROWAMOUNT,$_GET["id"]);
@@ -182,12 +182,12 @@
 	?>
 	<TR STYLE="font-weight: Bold;">
 	<TD CLASS="tdbg">&nbsp;</TD>
-	<? if (level(10)) { echo "<TD CLASS=\"tdbg\">Sub-Owners</TD>"; } ?>
-	<TD CLASS="tdbg">Name</TD>
-	<TD CLASS="tdbg">Type</TD>
-	<TD CLASS="tdbg">Content</TD>
-	<TD CLASS="tdbg">Priority</TD>
-	<TD CLASS="tdbg">TTL</TD>
+	<? if (level(10)) { echo "<TD CLASS=\"tdbg\">" . _('Sub-Owners') . "</TD>"; } ?>
+	<TD CLASS="tdbg"><? echo _('Name'); ?></TD>
+	<TD CLASS="tdbg"><? echo _('Type'); ?></TD>
+	<TD CLASS="tdbg"><? echo _('Content'); ?></TD>
+	<TD CLASS="tdbg"><? echo _('Priority'); ?></TD>
+	<TD CLASS="tdbg"><? echo _('TTL'); ?></TD>
 	</TR>
 	<?
 	$recs = sort_zone($rec_result);
@@ -199,8 +199,8 @@
 	        {
                 // get_name_from_record_id($r["id"]) != get_domain_name_from_id(recid_to_domid($r["id"])) <-- hmm..
                 ?>
-	            <A HREF="edit_record.php?id=<?= $r['id'] ?>&amp;domain=<?= $_GET["id"] ?>"><IMG SRC="images/edit.gif" ALT="[ edit record ]" BORDER="0"></A>
-	            <A HREF="delete_record.php?id=<?= $r['id'] ?>&amp;domain=<?= $_GET["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ delete record ]" BORDER="0"></A>
+	            <A HREF="edit_record.php?id=<?= $r['id'] ?>&amp;domain=<?= $_GET["id"] ?>"><IMG SRC="images/edit.gif" ALT="[ <? echo _('edit record'); ?> ]" BORDER="0"></A>
+	            <A HREF="delete_record.php?id=<?= $r['id'] ?>&amp;domain=<?= $_GET["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('delete record'); ?> ]" BORDER="0"></A>
 	            <?
 	        }
 
@@ -238,7 +238,7 @@
 {
 	?>
 	<TR>
-	<TD CLASS="tdbg"><DIV CLASS="warning">No records for this domain</DIV></TD>
+	<TD CLASS="tdbg"><DIV CLASS="warning"><? echo _('No records for this domain.'); ?></DIV></TD>
 	</TR>
 	<?
 }
@@ -259,7 +259,7 @@
 ?>
 </select>
 
-<input type="submit" class="button" value="Assign to user">
+<input type="submit" class="button" value="<? echo _('Assign to user'); ?>">
 </form>
 <? } ?>
 
@@ -268,12 +268,12 @@
 <?
 if ($_SESSION[$_GET["id"]."_ispartial"] != 1)  {
 ?>
-<INPUT TYPE="button" CLASS="button" OnClick="location.href='add_record.php?id=<?= $_GET["id"] ?>'" VALUE="Add record">
+<INPUT TYPE="button" CLASS="button" OnClick="location.href='add_record.php?id=<?= $_GET["id"] ?>'" VALUE="<? echo _('Add record'); ?>">
 <?
 }
 ?>
 
-<? if (level(5)) { ?>&nbsp;&nbsp;<INPUT TYPE="button" CLASS="button" OnClick="location.href='delete_domain.php?id=<?= $_GET["id"] ?>'" VALUE="Delete zone"><?
+<? if (level(5)) { ?>&nbsp;&nbsp;<INPUT TYPE="button" CLASS="button" OnClick="location.href='delete_domain.php?id=<?= $_GET["id"] ?>'" VALUE="<? echo _('Delete zone'); ?>"><?
 }
 include_once("inc/footer.inc.php");
 ?>
--- a/edit_record.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/edit_record.php	Sat Apr 14 11:37:27 2007 +0000
@@ -57,14 +57,14 @@
 include_once("inc/header.inc.php");
 
 ?>
-<H2>Edit record in zone "<?= get_domain_name_from_id($_GET["domain"]) ?>"</H2>
-<FONT CLASS="nav"><BR><A HREF="index.php">DNS Admin</A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["domain"] ?>"><?= get_domain_name_from_id($_GET["domain"]) ?></A> &gt;&gt; Edit record<BR><BR></FONT>
+<H2><? echo _('Edit record in zone'); ?> "<?= get_domain_name_from_id($_GET["domain"]) ?>"</H2>
+<FONT CLASS="nav"><BR><A HREF="index.php"><? echo _('DNS Admin'); ?></A> &gt;&gt; <A HREF="edit.php?id=<?= $_GET["domain"] ?>"><?= get_domain_name_from_id($_GET["domain"]) ?></A> &gt;&gt; <? echo _('Edit record'); ?><BR><BR></FONT>
 
 <FORM METHOD="post" ACTION="edit_record.php">
 <INPUT TYPE="hidden" NAME="recordid" VALUE="<?= $_GET["id"] ?>">
 <INPUT TYPE="hidden" NAME="domainid" VALUE="<?= $_GET["domain"] ?>">
 <TABLE BORDER="0" CELLSPACING="4">
-<TR STYLE="font-weight: Bold"><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg">Type</TD><TD CLASS="tdbg">Priority</TD><TD CLASS="tdbg">Content</TD><TD CLASS="tdbg">TimeToLive</TD></TR>
+<TR STYLE="font-weight: Bold"><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Type'); ?></TD><TD CLASS="tdbg"><? echo _('Priority'); ?></TD><TD CLASS="tdbg"><? echo _('Content'); ?></TD><TD CLASS="tdbg"><? echo _('TimeToLive'); ?></TD></TR>
 
 <?
 	$rec = get_record_from_id($_GET["id"]);
@@ -101,18 +101,18 @@
 ?>
 </SELECT></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="prio" VALUE="<?= $rec["prio"] ?>" CLASS="sinput"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="content" VALUE="<?= $rec["content"] ?>" CLASS="input"></TD><TD CLASS="tdbg"><INPUT TYPE="text" NAME="ttl" VALUE="<?= $rec["ttl"] ?>" CLASS="sinput"></TD></TR>
 </TABLE>
-<BR><INPUT TYPE="submit" NAME="commit" VALUE="Commit changes" CLASS="button">&nbsp;&nbsp;<INPUT TYPE="reset" NAME="reset" VALUE="Reset changes" CLASS="button">
+<BR><INPUT TYPE="submit" NAME="commit" VALUE="<? echo _('Commit changes'); ?>" CLASS="button">&nbsp;&nbsp;<INPUT TYPE="reset" NAME="reset" VALUE="<? echo _('Reset changes'); ?>" CLASS="button">
 </FORM>
 
 <?if (level(10)) { ?>
 <table style="width:140px">
-<tr><td CLASS="tdbg"><b>Sub-users</b></td><td CLASS="tdbg"> </td></tr>
+<tr><td CLASS="tdbg"><b><? echo _('Sub-users'); ?></b></td><td CLASS="tdbg"> </td></tr>
 <?
 $x_result = $db->query("SELECT r.id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$_GET['id']."' AND u.id=r.user_id");
 while ($x_r = $x_result->fetchRow()) {
    echo "<tr><td CLASS=\"tdbg\">".$x_r["username"]."</td><td CLASS=\"tdbg\">";
    echo "<a href=\"".$_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&domain=".$_GET["domain"]."&delid=".$x_r["id"]."\">";
-   echo "<img src=\"images/delete.gif\" alt=\"trash\" border=\"0\"/></a></td></tr>";
+   echo "<img src=\"images/delete.gif\" alt=\"" . _('trash') . "\" border=\"0\"/></a></td></tr>";
 }
 ?>
 </table>
--- a/edit_user.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/edit_user.php	Sat Apr 14 11:37:27 2007 +0000
@@ -51,12 +51,12 @@
 }
 
 ?>
-<H2>Edit user "<?= get_fullname_from_userid($_GET["id"]) ?>"</H2>
+<H2><? echo _('Edit user'); ?> "<?= get_fullname_from_userid($_GET["id"]) ?>"</H2>
 <?
 if (level(10))
 {
 ?>
-<FONT CLASS="nav"><BR><A HREF="users.php">User Admin</A> >> Edit User</FONT><BR><BR>
+<FONT CLASS="nav"><BR><A HREF="users.php"><? echo _('User Admin'); ?></A> &gt;&gt; <? echo _('Edit User'); ?></FONT><BR><BR>
 <?
 }
 
@@ -66,14 +66,14 @@
 ?>
 <FORM  METHOD="post">
 <TABLE BORDER="0" CELLSPACING="4">
-<TR><TD CLASS="tdbg">User name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="username" VALUE="<?=$r["username"]?>"></TD></TR>
-<TR><TD CLASS="tdbg">Full name:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE="<?=$r["fullname"]?>"></TD></TR>
-<TR><TD CLASS="tdbg">Password:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="password" VALUE=""></TD></TR>
-<TR><TD CLASS="tdbg">E-mail:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE="<?=$r["email"]?>"></TD></TR>
-<TR><TD CLASS="tdbg">User level:</TD><TD CLASS="tdbg"><SELECT NAME="level"><OPTION VALUE="1" <? if($r["level"] == 1) { echo "SELECTED"; } ?>>1 (Normal user)</OPTION><OPTION VALUE="5" <? if($r["level"] == 5) { echo "SELECTED"; } ?>>5 (Administrator)</OPTION><OPTION VALUE="10" <? if($r["level"] == 10) { echo "SELECTED"; } ?>>10 (Administrator w/ user admin rights)</OPTION></SELECT></TD></TR>
-<TR><TD CLASS="tdbg">Description:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"><?=$r["description"]?></TEXTAREA></TD></TR>
-<TR><TD CLASS="tdbg">Active:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="active" VALUE="1" <? if($r["active"]) { ?>CHECKED<? } ?>></TD></TR>
-<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="commit" VALUE="Commit changes"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('User name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="username" VALUE="<?=$r["username"]?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Full name'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE="<?=$r["fullname"]?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Password'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="password" VALUE=""></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('E-mail'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE="<?=$r["email"]?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('User level'); ?>:</TD><TD CLASS="tdbg"><SELECT NAME="level"><OPTION VALUE="1" <? if($r["level"] == 1) { echo "SELECTED"; } ?>>1 (<? echo _('Normal user'); ?>)</OPTION><OPTION VALUE="5" <? if($r["level"] == 5) { echo "SELECTED"; } ?>>5 (<? echo _('Administrator'); ?>)</OPTION><OPTION VALUE="10" <? if($r["level"] == 10) { echo "SELECTED"; } ?>>10 (<? echo _('Administrator w/ user admin rights'); ?>)</OPTION></SELECT></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"><?=$r["description"]?></TEXTAREA></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Active'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="active" VALUE="1" <? if($r["active"]) { ?>CHECKED<? } ?>></TD></TR>
+<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="commit" VALUE="<? echo _('Commit changes'); ?>"></TD></TR>
 <INPUT TYPE="HIDDEN" NAME="number" VALUE="<?= $_GET["id"] ?>">
 </TABLE>
 </FORM>
--- a/index.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/index.php	Sat Apr 14 11:37:27 2007 +0000
@@ -108,33 +108,33 @@
 <?
 if (level(10))
 {
-	?><A HREF="users.php">User Admin</A> <A HREF="seq_update.php">Synchronize Database</A><?
+	?><A HREF="users.php"><? echo _('User Admin'); ?></A> <A HREF="seq_update.php"><? echo _('Synchronize Database'); ?></A><?
 }
 ?>
- <A HREF="search.php">Search records</A>
+ <A HREF="search.php"><? echo _('Search records'); ?></A>
 </P>
 
 <BR>
-Welcome, <?= $_SESSION["name"] ?>.
+<? echo _('Welcome'); ?>, <?= $_SESSION["name"] ?>.
 <BR>
 
-Your userlevel is: <?= $_SESSION["level"] ?> (<?= leveldescription($_SESSION["level"]) ?>)
+<? echo _('Your userlevel is'); ?>: <?= $_SESSION["level"] ?> (<?= leveldescription($_SESSION["level"]) ?>)
 <BR><BR>
 
 <?
 if ($error != "")
 {
-	?><H3><FONT COLOR="red">Error: <?= $error ?></FONT></H3><?
+	?><H3><FONT COLOR="red"><? echo _('Error'); ?>: <?= $error ?></FONT></H3><?
 }
 ?>
 
-<B>Current domains in DNS (click to view or edit):</B>
+<B><? echo _('Current domains in DNS (click to view or edit)'); ?>:</B>
 <BR>
 
 <?
 $doms = get_domains(0);
 $num_domains = count($doms);
-echo "<br /><small><b>Number of domains: </b>".$num_domains."<br />";
+echo "<br /><small><b><? echo _('Number of domains'); ?>: </b>".$num_domains."<br />";
 
 if ($num_domains > ROWAMOUNT) {
    show_letters(LETTERSTART,$doms);
@@ -148,7 +148,7 @@
 
 <br />
 <TABLE BORDER="0" CELLSPACING="4">
-<TR STYLE="font-weight: Bold;"><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg">Records</TD><TD CLASS="tdbg">Owner</TD></TR>
+<TR STYLE="font-weight: Bold;"><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg"><? echo _('Records'); ?></TD><TD CLASS="tdbg"><? echo _('Owner'); ?></TD></TR>
 <?
 
 if ($num_domains < ROWAMOUNT) {
@@ -160,7 +160,7 @@
 // If the user doesnt have any domains print a message saying so
 if ($doms < 0)
 {
-	?><TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg" COLSPAN="4"><b>No domains in this listing, sorry.</b></FONT></TD></TR><?
+	?><TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg" COLSPAN="4"><b><? echo _('No domains in this listing, sorry.'); ?></b></FONT></TD></TR><?
 }
 
 // If he has domains, dump them (duh)
@@ -172,7 +172,7 @@
 		<? if (level(5))
 		{
 			?>
-			<A HREF="delete_domain.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ delete zone ]" BORDER="0"></A><?
+			<A HREF="delete_domain.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('delete zone'); ?> ]" BORDER="0"></A><?
 		}
 		else
 		{
@@ -187,7 +187,7 @@
 ?>
 </TABLE>
 
-<small>You only administer some records of domains marked with an (*)</small>
+<small><? echo _('You only administer some records of domains marked with an (*).'); ?></small>
 
 <?
 if (level(5))
@@ -198,12 +198,12 @@
 	?>
 	<BR><BR>
 	<FORM METHOD="post" ACTION="index.php">
-	<B>Create new domain:</B><BR>
+	<B><? echo _('Create new domain'); ?>:</B><BR>
 	<TABLE BORDER="0" CELLSPACING="4">
-	<TR><TD CLASS="tdbg">Domain name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="domain" VALUE="<? if ($error) print $_POST["domain"]; ?>"></TD></TR>
-	<TR><TD CLASS="tdbg">Web IP:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="webip" VALUE="<? if ($error) print $_POST["webip"]; ?>"></TD></TR>
-	<TR><TD CLASS="tdbg">Mail IP:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="mailip" VALUE="<? if ($error) print $_POST["mailip"]; ?>"></TD></TR>
-	<TR><TD CLASS="tdbg">Owner:</TD><TD CLASS="tdbg">
+	<TR><TD CLASS="tdbg"><? echo _('Domain name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="domain" VALUE="<? if ($error) print $_POST["domain"]; ?>"></TD></TR>
+	<TR><TD CLASS="tdbg"><? echo _('Web IP'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="webip" VALUE="<? if ($error) print $_POST["webip"]; ?>"></TD></TR>
+	<TR><TD CLASS="tdbg"><? echo _('Mail IP'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="mailip" VALUE="<? if ($error) print $_POST["mailip"]; ?>"></TD></TR>
+	<TR><TD CLASS="tdbg"><? echo _('Owner'); ?>:</TD><TD CLASS="tdbg">
 	<SELECT NAME="owner">
 	<?
 	foreach ($users as $u)
@@ -217,7 +217,7 @@
 	if($MASTER_SLAVE_FUNCTIONS == true)
 	{
 	?>
-	<TR><TD CLASS="tdbg">Domain type:</TD><TD CLASS="tdbg">
+	<TR><TD CLASS="tdbg"><? echo _('Domain type'); ?>:</TD><TD CLASS="tdbg">
 	<SELECT NAME="dom_type">
 	<?
 	foreach($server_types as $s)
@@ -228,8 +228,8 @@
 	</SELECT>
 	</TD></TR>
 	<? } ?>
-	<TR><TD CLASS="tdbg">Create zone without<BR>applying records-template:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="empty" VALUE="1"></TD></TR>
-	<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="Add domain"></TD></TR>
+	<TR><TD CLASS="tdbg"><? echo _('Create zone without'); ?><BR><? echo _('applying records-template'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="empty" VALUE="1"></TD></TR>
+	<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Add domain'); ?>"></TD></TR>
 	</TABLE>
 	</FORM>
 <?
@@ -238,12 +238,12 @@
 
 <BR><BR>
 <FORM METHOD="post" ACTION="index.php">
-<B>Change your password:</B><BR>
+<B><? echo _('Change your password'); ?>:</B><BR>
 <TABLE BORDER="0" CELLSPACING="4">
-<TR><TD CLASS="tdbg">Current password:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="currentpass" VALUE=""></TD></TR>
-<TR><TD CLASS="tdbg">New Password:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass" VALUE=""></TD></TR>
-<TR><TD CLASS="tdbg">New Password:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass2" VALUE=""></TD></TR>
-<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="passchange" VALUE="Change password"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Current password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="currentpass" VALUE=""></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('New Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass" VALUE=""></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('New Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="newpass2" VALUE=""></TD></TR>
+<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="passchange" VALUE="<? echo _('Change password'); ?>"></TD></TR>
 </TABLE>
 </FORM>
 <?
--- a/install.php.orig	Tue Apr 10 22:40:43 2007 +0000
+++ b/install.php.orig	Sat Apr 14 11:37:27 2007 +0000
@@ -60,7 +60,7 @@
         if ($msg)
 	    {
 		?>
-                <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2>Oops! An error occured!</H2>
+                <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2>
        	        <BR>
                	<FONT STYLE="font-weight: Bold"><?= nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
                 <?
@@ -168,12 +168,12 @@
 		{
 
 			?>
-<h2>PowerAdmin has succesfully been installed.</h2>
+<h2><? echo _('PowerAdmin has succesfully been installed.'); ?></h2>
 <br />
-Remove this file (install.php) from your webdir.<br />
-<b>WARNING:</b> PowerAdmin will not work until you delete install.php<br />
+<? echo _('Remove this file (install.php) from your webdir.'); ?><br />
+<b><? echo _('WARNING'); ?>:</b> <? echo _('PowerAdmin will not work until you delete install.php'); ?><br />
 <br />
-You can click <a href="index.php">here</a> to start using PowerAdmin
+<? echo _('You can click'); ?> <a href="index.php">here</a> <? echo _('to start using PowerAdmin'); ?>
 </BODY></HTML>
 <?php
 			die();
@@ -182,7 +182,7 @@
 	}
 	else
 	{
-		echo "<DIV CLASS=\"warning\">You didnt fill in one of the required fields!</DIV>";
+		echo "<DIV CLASS=\"warning\">" . _('You didnt fill in one of the required fields!') . "</DIV>";
 	}
 }
 
@@ -190,21 +190,21 @@
 {
 ?>
 
-<H2>PowerAdmin for PowerDNS</H2>
+<H2><? echo _('PowerAdmin for PowerDNS'); ?></H2>
 <BR>
-<B>This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
-administrator login.<BR>
-Fields marked with a <FONT COLOR="#FF0000">*</FONT> are required.
+<B><? echo _('This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
+administrator login.'); ?><BR>
+<? echo _('Fields marked with a'); ?> <FONT COLOR="#FF0000">*</FONT> <? echo _('are required.'); ?>
 </B><BR><BR>
 
 <FORM METHOD="post">
 <TABLE BORDER="0" CELLSPACING="4">
-<TR><TD CLASS="tdbg">Login Name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
-<TR><TD CLASS="tdbg">Password:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
-<TR><TD CLASS="tdbg">Full name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
-<TR><TD CLASS="tdbg">Email:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
-<TR><TD CLASS="tdbg">Description:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
-<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="Make Account"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Login Name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Full name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Email'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
+<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Make Account'); ?>"></TD></TR>
 </TABLE>
 </FORM>
 
--- a/search.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/search.php	Sat Apr 14 11:37:27 2007 +0000
@@ -35,26 +35,26 @@
 // we will continue after the search form ... 
 include_once('inc/header.inc.php');
 ?>
-<P><H2>Search zones or records</H2></P>
+<P><H2><? echo _('Search zones or records'); ?></H2></P>
 <P CLASS="nav">
-<A HREF="index.php">DNS Admin</A> 
+<A HREF="index.php"><? echo _('DNS Admin'); ?></A> 
 <?
 if (level(10))
 {
-	?><A HREF="users.php">User Admin</A> <A HREF="seq_update.php">Synchronize Database</A><?
+	?><A HREF="users.php"><? echo _('User Admin'); ?></A> <A HREF="seq_update.php"><? echo _('Synchronize Database'); ?></A><?
 }
 ?>
 </P><BR>
-Type a hostname or a record in the box below and press search to see if the record exists in the system.
+<? echo _('Type a hostname or a record in the box below and press search to see if the record exists in the system.'); ?>
 	<table border = "0" cellspacing = "4">
 	<form method = "post" action="<?=$_SERVER['PHP_SELF']?>">
 		<tr>
-			<td class = "tdbg"><b>Enter a hostname or IP address</b></td>
+			<td class = "tdbg"><b><? echo _('Enter a hostname or IP address'); ?></b></td>
 			<td width = "510" class = "tdbg"><input type = "text" class = "input" name = "q"></td>
 		</tr>
 		<tr>
 			<td class = "tdbg">&nbsp;</td>
-			<td class = "tdbg"><input type = "submit" class = "button" name = "s_submit" value = "Search"></td>
+			<td class = "tdbg"><input type = "submit" class = "button" name = "s_submit" value = "<? echo _('Search'); ?>"></td>
 		</tr>
 	</form>
 	</table>
@@ -70,14 +70,14 @@
 	if (count($search_result) == 2 && count($search_result['domains']))
   	{
 	?>
-	<b>Domains found:</b>
+	<b><? echo _('Domains found'); ?>:</b>
 	<p>
 	<table border = "0" cellspacing = "4">
 		<tr style = "font-weight: Bold;">
 			<td class = "tdbg">&nbsp;</td>
-			<td class = "tdbg">Name</td>
-			<td class = "tdbg">Records</td>
-			<td class = "tdbg">Owner</td>
+			<td class = "tdbg"><? echo _('Name'); ?></td>
+			<td class = "tdbg"><? echo _('Records'); ?></td>
+			<td class = "tdbg"><? echo _('Owner'); ?></td>
 		</tr>
 		<?php
 		foreach($search_result['domains'] as $d)
@@ -88,7 +88,7 @@
 			<?php 
 			if (level(5))
 			{
-				echo '<a href = "delete_domain.php?id='.$d['id'].'"><img src = "images/delete.gif" alt = "[ delete zone ]" border = "0"></a>';
+				echo '<a href = "delete_domain.php?id='.$d['id'].'"><img src = "images/delete.gif" alt = "[ ' .  _('delete zone') . ' ]" border = "0"></a>';
 			}
 			else 
 			{
@@ -113,16 +113,16 @@
 	if(count($search_result['records']))
 	{
 		?>
-		<b>Records found:</b>
+		<b><? echo _('Records found'); ?>:</b>
 		<p>
 		<table border = "0" cellspacing = "4">
 			<tr style = "font-weight: Bold;">
 				<td class = "tdbg">&nbsp;</td>
-				<td class = "tdbg">Name</td>
-				<td class = "tdbg">Type</td>
-				<td class = "tdbg">Content</td>
-				<td class = "tdbg">Priority</td>
-				<td class = "tdbg">TTL</td>
+				<td class = "tdbg"><? echo _('Name'); ?></td>
+				<td class = "tdbg"><? echo _('Type'); ?></td>
+				<td class = "tdbg"><? echo _('Content'); ?></td>
+				<td class = "tdbg"><? echo _('Priority'); ?></td>
+				<td class = "tdbg"><? echo _('TTL'); ?></td>
 			</tr>
 		<?php
 		foreach($search_result['records'] as $r)
@@ -138,8 +138,8 @@
 			  $GLOBALS["ALLOW_NS_EDIT"] != 1))
 			{
 				?>
-				<a href = "edit_record.php?id=<?=$r['id']?>&amp;domain=<?=$r['domain_id']?>"><img src = "images/edit.gif" alt = "[ edit record ]" border = "0"></a>
-				<a href = "delete_record.php?id=<?=$r['id']?>&amp;domain=<?=$r['domain_id']?>"><img src = "images/delete.gif" alt = "[ delete record ]" border = "0"></a>
+				<a href = "edit_record.php?id=<?=$r['id']?>&amp;domain=<?=$r['domain_id']?>"><img src = "images/edit.gif" alt = "[ <? echo _('edit record'); ?> ]" border = "0"></a>
+				<a href = "delete_record.php?id=<?=$r['id']?>&amp;domain=<?=$r['domain_id']?>"><img src = "images/delete.gif" alt = "[ <? echo _('delete record'); ?> ]" border = "0"></a>
 				<?php 
 			} // big if ;-)
 			?>
@@ -170,7 +170,7 @@
 		<table border = "0" cellspacing = "4">
 			<tr>
 				<td width = "510" class = "tdbg">
-				Nothing found for query "<?=$_POST['q']?>"
+				<? echo _('Nothing found for query'); ?> "<?=$_POST['q']?>"
 				</td>
 			</tr>
 		</table>
--- a/seq_update.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/seq_update.php	Sat Apr 14 11:37:27 2007 +0000
@@ -23,7 +23,7 @@
 // Ok we have to synch it all.
 // What to do? Find the MAX(id) on each table and set it to the _seq table.
 
-echo "<P><B>Synching databases. This is useful if you did manual insertions (in case you havent been here yet)</B></P>";
+echo "<P><B>" . _('Synching databases. This is useful if you did manual insertions (in case you havent been here yet).') . "</B></P>";
 
 if(!level(10))
 {
--- a/test_setup.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/test_setup.php	Sat Apr 14 11:37:27 2007 +0000
@@ -55,11 +55,11 @@
 
 if($bad)
 {
-	?><TABLE CLASS="error"><TR><TD CLASS="error"><H2>Not all tables are ok!</H2><?
+	?><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Not all tables are ok!'); ?></H2><?
 }
 else
 {
-	?><TABLE CLASS="messagetable"><TR><TD CLASS="message"><H2>Successful!</H2><?
+	?><TABLE CLASS="messagetable"><TR><TD CLASS="message"><H2><? echo _('Successful!'); ?></H2><?
 }
 ?>
 <BR>
@@ -67,16 +67,16 @@
 <?
 if($bad)
 {
-	?>Sorry, but there are error(s) found in the following table(s):<?
+	echo _('Sorry, but there are error(s) found in the following table(s):'); 
 	foreach($bad_array as $table)
 	{
 		echo " '$table'";
 		}
-		?>.</P><P>Please fix these errors and run the script again.</P><?
+		?>.</P><P><? echo _('Please fix these errors and run the script again.'); ?></P><?
 	}
 	else
 	{
-		echo "Successful! Everything is set up ok, you can rumble!";
+		echo _('Successful! Everything is set up ok, you can rumble!"');
 	}
 ?>
 <BR></TD></TR></TABLE></P>
--- a/users.php	Tue Apr 10 22:40:43 2007 +0000
+++ b/users.php	Sat Apr 14 11:37:27 2007 +0000
@@ -33,26 +33,26 @@
         }
         else
         {
-        	$error = "Usernames cant contain spaces";
+        	$error = _('Usernames cant contain spaces');
         }
 }
 elseif($_POST["submit"])
 {
-	$error = "Please fill in all fields";
+	$error = _('Please fill in all fields');
 }
 
 // Dirty hack, maybe revise?
 include_once("inc/header.inc.php");
 ?>
-<H2>User Admin</H2>
+<H2><? echo _('User Admin'); ?></H2>
 <P CLASS="nav">
-<A HREF="index.php">DNS Admin</A>
+<A HREF="index.php"><? echo _('DNS Admin'); ?></A>
 <?
 if (level(10))
 {
-	?> <A HREF="seq_update.php">Synchronize Database</A> <?
+	?> <A HREF="seq_update.php"><? echo _('Synchronize Database'); ?></A> <?
 }
-?><A HREF="search.php">Search records</A></P><BR><?
+?><A HREF="search.php"><? echo _('Search records'); ?></A></P><BR><?
 // End
 
 if (!level(10)) 
@@ -62,27 +62,27 @@
 
 if ($error != "") 
 {
-        ?><H3><FONT COLOR="red">Error: <?= $error ?></FONT></H3><?
+        ?><H3><FONT COLOR="red"><? echo _('Error'); ?>: <?= $error ?></FONT></H3><?
 }
 
-echo "<B>Current users (click to edit):</B>";
+echo "<B>" . _('Current users (click to edit)') . ":</B>";
 
 $users = show_users('');
 
-echo "<br /><br /><small><b>Number of users:</b> ".count($users);
+echo "<br /><br /><small><b>" . _('Number of users') . ":</b> ".count($users);
 
 show_pages(count($users),ROWAMOUNT);
 ?>
 
 <br /><br /><TABLE BORDER="0" CELLSPACING="4">
-<TR STYLE="font-weight: Bold;"><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg">Name</TD><TD CLASS="tdbg">Domains</TD><TD CLASS="tdbg">Domain list</TD><TD CLASS="tdbg">Level</TD><TD CLASS="tdbg">Status</TD></TR>
+<TR STYLE="font-weight: Bold;"><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><? echo _('Name'); ?></TD><TD CLASS="tdbg"><? echo _('Domains'); ?></TD><TD CLASS="tdbg"><? echo _('Domain list'); ?></TD><TD CLASS="tdbg"><? echo _('Level'); ?></TD><TD CLASS="tdbg"><? echo _('Status'); ?></TD></TR>
 <?
 $users = show_users('',ROWSTART,ROWAMOUNT);
 foreach ($users as $c)
 {
         ?>
         <TR>
-        <TD VALIGN="top" CLASS="tdbg"><A HREF="delete_user.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ delete user ]" BORDER="0"></A></TD>
+        <TD VALIGN="top" CLASS="tdbg"><A HREF="delete_user.php?id=<?= $c["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('delete user'); ?> ]" BORDER="0"></A></TD>
         <TD VALIGN="top" CLASS="tdbg"><A HREF="edit_user.php?id=<?= $c["id"] ?>"><?= $c["fullname"] ?></A> (<?= $c["username"] ?>)</TD>
         <TD VALIGN="top" CLASS="tdbg"><?= $c["numdomains"] ?></TD>
         <TD CLASS="tdbg">
@@ -90,7 +90,7 @@
         $domains = get_domains_from_userid($c["id"]);
         foreach ($domains as $d)
         {
-                ?><A HREF="delete_domain.php?id=<?= $d["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ delete domain ]" BORDER="0"></A>&nbsp;<A HREF="edit.php?id=<?= $d["id"] ?>"><?= $d["name"] ?></A><BR><?
+                ?><A HREF="delete_domain.php?id=<?= $d["id"] ?>"><IMG SRC="images/delete.gif" ALT="[ <? echo _('delete domain'); ?> ]" BORDER="0"></A>&nbsp;<A HREF="edit.php?id=<?= $d["id"] ?>"><?= $d["name"] ?></A><BR><?
         }
         ?></TD><TD CLASS="tdbg"><?= $c["level"] ?></TD><TD VALIGN="middle" CLASS="tdbg"><?= get_status($c["active"]) ?></TD></TR><?
         print "\n";
@@ -100,16 +100,16 @@
 <BR><BR>
 
 <FORM METHOD="post" action="users.php">
-<B>Create new user:</B><BR>
+<B><? echo _('Create new user'); ?>:</B><BR>
 <TABLE BORDER="0" CELLSPACING="4">
-<TR><TD CLASS="tdbg">User name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="username" VALUE="<? if ($error) print $_POST["username"]; ?>"></TD></TR>
-<TR><TD CLASS="tdbg">Full name:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE="<? if ($error) print $_POST["fullname"]; ?>"></TD></TR>
-<TR><TD CLASS="tdbg">Password:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="password" VALUE="<? if ($error) print $_POST["password"]; ?>"></TD></TR>
-<TR><TD CLASS="tdbg">E-mail:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE="<? if ($error) print $_POST["email"]; ?>"></TD></TR>
-<TR><TD CLASS="tdbg">User level:</TD><TD CLASS="tdbg"><SELECT NAME="level"><OPTION VALUE="1">1 (<?= leveldescription(1) ?>)</OPTION><OPTION VALUE="5">5 (<?= leveldescription(5) ?>)</OPTION><OPTION VALUE="10">10 (<?= leveldescription(10) ?>)</OPTION></SELECT></TD></TR>
-<TR><TD CLASS="tdbg">Description:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"><? if ($error) print $_POST["description"]; ?></TEXTAREA></TD></TR>
-<TR><TD CLASS="tdbg">Active:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="active" VALUE="1" CHECKED></TD></TR>
-<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="Add user"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('User name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="username" VALUE="<? if ($error) print $_POST["username"]; ?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Full name'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE="<? if ($error) print $_POST["fullname"]; ?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Password'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="password" VALUE="<? if ($error) print $_POST["password"]; ?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('E-mail'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE="<? if ($error) print $_POST["email"]; ?>"></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('User level'); ?>:</TD><TD CLASS="tdbg"><SELECT NAME="level"><OPTION VALUE="1">1 (<?= leveldescription(1) ?>)</OPTION><OPTION VALUE="5">5 (<?= leveldescription(5) ?>)</OPTION><OPTION VALUE="10">10 (<?= leveldescription(10) ?>)</OPTION></SELECT></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"><? if ($error) print $_POST["description"]; ?></TEXTAREA></TD></TR>
+<TR><TD CLASS="tdbg"><? echo _('Active'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="checkbox" NAME="active" VALUE="1" CHECKED></TD></TR>
+<TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Add user'); ?>"></TD></TR>
 </TABLE>
 </FORM>
 <?