Ver Fonte

IPV6: Small editional corrections after review

asmcc há 2 anos atrás
pai
commit
04e7e1fd35
2 ficheiros alterados com 9 adições e 9 exclusões
  1. 6 6
      web/add/web/index.php
  2. 3 3
      web/templates/pages/edit_dns.php

+ 6 - 6
web/add/web/index.php

@@ -14,10 +14,10 @@ if (!empty($_POST["ok"])) {
 
 	// Check for empty fields
 	if (empty($_POST["v_domain"])) {
-		$errors[] = _("domain");
+		$errors[] = _("Domain");
 	}
 	if (empty($_POST["v_ip"]) && empty($_POST["v_ipv6"])) {
-		$errors[] = _("ipv4 and ipv6");
+		$errors[] = _("IPV4 and IPV6 Address");
 	}
 
 	if (!empty($errors[0])) {
@@ -130,10 +130,10 @@ if (!empty($_POST["ok"])) {
 
 	// Flush field values on success
 	if (empty($_SESSION["error_msg"])) {
-		$_SESSION["ok_msg"] = sprintf(
-			_("WEB_DOMAIN_CREATED_OK"),
-			htmlentities($v_domain),
-			htmlentities($v_domain),
+		$_SESSION["ok_msg"] = htmlify_trans(
+			sprintf(_("Domain {%s} has been created successfully."), htmlentities($v_domain)),
+			"</b></a>",
+			'<a href="/edit/web/?domain=' . htmlentities($v_domain) . '"><b>',
 		);
 		unset($v_domain);
 		unset($v_aliases);

+ 3 - 3
web/templates/pages/edit_dns.php

@@ -22,7 +22,7 @@
 		<input type="hidden" name="save" value="save">
 
 		<div class="form-container">
-			<h1 class="form-title"><?= _("Editing DNS Domain") ?></h1>
+			<h1 class="form-title"><?= _("Edit DNS Domain") ?></h1>
 			<?php show_alert_message($_SESSION); ?>
 			<div class="u-mb10">
 				<label for="v_domain" class="form-label"><?= _("Domain") ?></label>
@@ -30,7 +30,7 @@
 				<input type="hidden" name="v_domain" value="<?= htmlentities(trim($v_domain, "'")) ?>">
 			</div>
 			<div class="u-mb10">
-				<label for="v_ip" class="form-label"><?= _("IPV4 address") ?></label>
+				<label for="v_ip" class="form-label"><?= _("IPV4 Address") ?></label>
 				<div class="u-pos-relative">
 					<select class="form-select" tabindex="-1" onchange="this.nextElementSibling.value=this.value">
 						<option value="">clear</option>
@@ -48,7 +48,7 @@
 				</div>
 			</div>
 			<div class="u-mb10">
-				<label for="v_ipv6" class="form-label"><?= _("IPV6 address") ?></label>
+				<label for="v_ipv6" class="form-label"><?= _("IPV6 Address") ?></label>
 				<div class="u-pos-relative">
 					<select class="form-select" tabindex="-1" onchange="this.nextElementSibling.value=this.value">
 						<option value="">clear</option>