# HG changeset patch
# User rejo
# Date 1176550647 0
# Node ID 9a485c41cfcf6b76441ee22c2755e624db797fb7
# Parent 58094faf794dbc2da49a939d0d8d8c9a1d193c53
[feladat @ 3]
First set of changes to provide translation framework.
diff -r 58094faf794d -r 9a485c41cfcf add_record.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");
?>
-
Add record to zone "= get_domain_name_from_id($_GET["id"]) ?>"
-DNS Admin >> ">= get_domain_name_from_id($_GET["id"]) ?> >> Add record
+ echo _('Add record to zone'); ?> "= get_domain_name_from_id($_GET["id"]) ?>"
+ echo _('DNS Admin'); ?> >> ">= get_domain_name_from_id($_GET["id"]) ?> >> echo _('Add record'); ?>
include_once("inc/footer.inc.php"); ?>
diff -r 58094faf794d -r 9a485c41cfcf delete_domain.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"]);
- ?>Delete domain "= $info["name"] ?>"
- Owner: = $info["owner"] ?>
- Number of records in zone: = $info["numrec"] ?>
- Are you sure?
- &confirm=1'" VALUE="Yes"> &confirm=0'" VALUE="No">
+ ?> echo _('Delete domain'); ?> "= $info["name"] ?>"
+ echo _('Owner'); ?>: = $info["owner"] ?>
+ echo _('Number of records in zone'); ?>: = $info["numrec"] ?>
+ echo _('Are you sure'); ?>?
+ &confirm=1'" VALUE=" echo _('Yes'); ?>"> &confirm=0'" VALUE=" echo _('No'); ?>">
} elseif ($_GET["edit"]) {
include_once("inc/header.inc.php");
diff -r 58094faf794d -r 9a485c41cfcf delete_record.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");
- ?>Delete record "
+ ?> echo _('Delete record'); ?> "
$data = get_record_from_id($_GET["id"]);
print $data["name"]." IN ".$data["type"]." ".$data["content"];
?>"
if (($data["type"] == "NS" && $data["name"] == get_domain_name_from_id($_GET["domain"])) || $data["type"] == "SOA") {
- print "You are trying to delete a record that is needed for this zone to work. ";
+ print "" . ('You are trying to delete a record that is needed for this zone to work.') . " ";
}
- ?>Are you sure?
- &confirm=1'" VALUE="Yes"> &confirm=0'" VALUE="No">
+ ?> echo _('Are you sure?'); ?>
+ &confirm=1'" VALUE=" echo _('Yes'); ?>"> &confirm=0'" VALUE=" echo _('No'); ?>">
} else {
include_once("inc/header.inc.php");
diff -r 58094faf794d -r 9a485c41cfcf delete_user.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");
- ?>Delete user "= get_fullname_from_userid($id) ?>"
+ ?> echo _('Delete user'); ?> "= get_fullname_from_userid($id) ?>"
+
include_once("inc/footer.inc.php");
}
diff -r 58094faf794d -r 9a485c41cfcf edit.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");
?>
-Edit domain "= get_domain_name_from_id($_GET["id"]) ?>"
+ echo _('Edit domain'); ?> "= get_domain_name_from_id($_GET["id"]) ?>"
$info = get_domain_info_from_id($_GET["id"]);
if(!isset($info["ownerid"]))
{
?>
- This domain isnt owned by anyone yet, please assign someone
+ echo _('This domain isnt owned by anyone yet, please assign someone.'); ?>
}
?>
@@ -66,7 +66,7 @@
@@ -98,7 +98,7 @@
{?>
- Current listed owners:
+ echo _('Current listed owners'); ?>:
@@ -112,7 +112,7 @@
">
-
+
@@ -129,11 +129,11 @@
- Type of this domain: =$domain_type?>
+ echo _('Type of this domain'); ?>: =$domain_type?>
@@ -157,9 +157,9 @@
-DNS Admin >> = get_domain_name_from_id($_GET["id"]) ?>
+ echo _('DNS Admin'); ?> >> = get_domain_name_from_id($_GET["id"]) ?>
-Number of records: = $info["numrec"] ?>
+ echo _('Number of records'); ?>: = $info["numrec"] ?>
show_pages($info["numrec"],ROWAMOUNT,$_GET["id"]);
@@ -182,12 +182,12 @@
?>
- if (level(10)) { echo "Sub-Owners "; } ?>
- Name
- Type
- Content
- Priority
- TTL
+ if (level(10)) { echo "" . _('Sub-Owners') . " "; } ?>
+ echo _('Name'); ?>
+ echo _('Type'); ?>
+ echo _('Content'); ?>
+ echo _('Priority'); ?>
+ echo _('TTL'); ?>
$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..
?>
- ">
- ">
+ ">
+ ">
}
@@ -238,7 +238,7 @@
{
?>
- No records for this domain
+ echo _('No records for this domain.'); ?>
}
@@ -259,7 +259,7 @@
?>
-
+
} ?>
@@ -268,12 +268,12 @@
if ($_SESSION[$_GET["id"]."_ispartial"] != 1) {
?>
- '" VALUE="Add record">
+ '" VALUE=" echo _('Add record'); ?>">
}
?>
- if (level(5)) { ?> '" VALUE="Delete zone">
+ if (level(5)) { ?> '" VALUE=" echo _('Delete zone'); ?>">
}
include_once("inc/footer.inc.php");
?>
diff -r 58094faf794d -r 9a485c41cfcf edit_record.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");
?>
-Edit record in zone "= get_domain_name_from_id($_GET["domain"]) ?>"
-DNS Admin >> ">= get_domain_name_from_id($_GET["domain"]) ?> >> Edit record
+ echo _('Edit record in zone'); ?> "= get_domain_name_from_id($_GET["domain"]) ?>"
+ echo _('DNS Admin'); ?> >> ">= get_domain_name_from_id($_GET["domain"]) ?> >> echo _('Edit record'); ?>
-Sub-users
+ echo _('Sub-users'); ?>
$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 "".$x_r["username"]." ";
echo "";
- echo " ";
+ echo " ";
}
?>
diff -r 58094faf794d -r 9a485c41cfcf edit_user.php
--- 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 @@
}
?>
-Edit user "= get_fullname_from_userid($_GET["id"]) ?>"
+ echo _('Edit user'); ?> "= get_fullname_from_userid($_GET["id"]) ?>"
if (level(10))
{
?>
-User Admin >> Edit User
+ echo _('User Admin'); ?> >> echo _('Edit User'); ?>
}
@@ -66,14 +66,14 @@
?>
diff -r 58094faf794d -r 9a485c41cfcf index.php
--- 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))
{
- ?>User Admin Synchronize Database
+ ?> echo _('User Admin'); ?> echo _('Synchronize Database'); ?>
}
?>
- Search records
+ echo _('Search records'); ?>
-Welcome, = $_SESSION["name"] ?>.
+ echo _('Welcome'); ?>, = $_SESSION["name"] ?>.
-Your userlevel is: = $_SESSION["level"] ?> (= leveldescription($_SESSION["level"]) ?>)
+ echo _('Your userlevel is'); ?>: = $_SESSION["level"] ?> (= leveldescription($_SESSION["level"]) ?>)
if ($error != "")
{
- ?>Error: = $error ?>
+ ?> echo _('Error'); ?>: = $error ?>
}
?>
-Current domains in DNS (click to view or edit):
+ echo _('Current domains in DNS (click to view or edit)'); ?>:
$doms = get_domains(0);
$num_domains = count($doms);
-echo "Number of domains: ".$num_domains." ";
+echo " echo _('Number of domains'); ?>: ".$num_domains." ";
if ($num_domains > ROWAMOUNT) {
show_letters(LETTERSTART,$doms);
@@ -148,7 +148,7 @@
- Name Records Owner
+ echo _('Name'); ?> echo _('Records'); ?> echo _('Owner'); ?>
if ($num_domains < ROWAMOUNT) {
@@ -160,7 +160,7 @@
// If the user doesnt have any domains print a message saying so
if ($doms < 0)
{
- ?> No domains in this listing, sorry.
+ ?> echo _('No domains in this listing, sorry.'); ?>
}
// If he has domains, dump them (duh)
@@ -172,7 +172,7 @@
if (level(5))
{
?>
- ">
+ ">
}
else
{
@@ -187,7 +187,7 @@
?>
-You only administer some records of domains marked with an (*)
+ echo _('You only administer some records of domains marked with an (*).'); ?>
if (level(5))
@@ -198,12 +198,12 @@
?>
- Create new domain:
+ echo _('Create new domain'); ?>:
@@ -238,12 +238,12 @@
-Change your password:
+ echo _('Change your password'); ?>:
diff -r 58094faf794d -r 9a485c41cfcf install.php.orig
--- 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)
{
?>
-
Oops! An error occured!
+
echo _('Oops! An error occured!'); ?>
= nl2br($msg) ?><< back
@@ -168,12 +168,12 @@
{
?>
-PowerAdmin has succesfully been installed.
+ echo _('PowerAdmin has succesfully been installed.'); ?>
-Remove this file (install.php) from your webdir.
-WARNING: PowerAdmin will not work until you delete install.php
+ echo _('Remove this file (install.php) from your webdir.'); ?>
+ echo _('WARNING'); ?>: echo _('PowerAdmin will not work until you delete install.php'); ?>
-You can click here to start using PowerAdmin
+ echo _('You can click'); ?> here echo _('to start using PowerAdmin'); ?>