Commit 52850fd6 authored by Franco Fichtner's avatar Franco Fichtner

www: nitpicking on natural language in menus

* Abbreviations are generally discouraged in persistent
  menu items.  They look unprofessional or plain sloppy.

* Items should be short and concise.  One word if possible.
  Always avoid doubled meanings like e.g. "HA" + "Sync".

* "Manager" this and that everwhere is simply annoying.
parent bb1d3336
...@@ -1219,8 +1219,8 @@ $priv_list['page-system-groupmanager-addprivs']['match'] = array(); ...@@ -1219,8 +1219,8 @@ $priv_list['page-system-groupmanager-addprivs']['match'] = array();
$priv_list['page-system-groupmanager-addprivs']['match'][] = "system_groupmanager_addprivs.php*"; $priv_list['page-system-groupmanager-addprivs']['match'][] = "system_groupmanager_addprivs.php*";
$priv_list['page-system-hasync'] = array(); $priv_list['page-system-hasync'] = array();
$priv_list['page-system-hasync']['name'] = gettext("Webcfg - System: High Availability Sync"); $priv_list['page-system-hasync']['name'] = gettext("Webcfg - System: High Availability");
$priv_list['page-system-hasync']['descr'] = gettext("Allow access to the 'System: High Availability Sync' page."); $priv_list['page-system-hasync']['descr'] = gettext("Allow access to the 'System: High Availability' page.");
$priv_list['page-system-hasync']['match'] = array(); $priv_list['page-system-hasync']['match'] = array();
$priv_list['page-system-hasync']['match'][] = "system_hasync.php*"; $priv_list['page-system-hasync']['match'][] = "system_hasync.php*";
......
...@@ -2039,7 +2039,7 @@ function upgrade_055_to_056() { ...@@ -2039,7 +2039,7 @@ function upgrade_055_to_056() {
if (!is_array($config['cert'])) if (!is_array($config['cert']))
$config['cert'] = array(); $config['cert'] = array();
/* migrate ipsec ca's to cert manager */ /* migrate ipsec ca's to certificate manager */
if (is_array($config['ipsec']['cacert'])) { if (is_array($config['ipsec']['cacert'])) {
foreach($config['ipsec']['cacert'] as & $cacert) { foreach($config['ipsec']['cacert'] as & $cacert) {
$ca = array(); $ca = array();
...@@ -2054,7 +2054,7 @@ function upgrade_055_to_056() { ...@@ -2054,7 +2054,7 @@ function upgrade_055_to_056() {
unset($config['ipsec']['cacert']); unset($config['ipsec']['cacert']);
} }
/* migrate phase1 certificates to cert manager */ /* migrate phase1 certificates to certificate manager */
if (is_array($config['ipsec']['phase1'])) { if (is_array($config['ipsec']['phase1'])) {
foreach($config['ipsec']['phase1'] as & $ph1ent) { foreach($config['ipsec']['phase1'] as & $ph1ent) {
$cert = array(); $cert = array();
......
...@@ -250,7 +250,7 @@ if (file_exists('/var/run/booting')) { ...@@ -250,7 +250,7 @@ if (file_exists('/var/run/booting')) {
} }
if (is_array($config['hasync'])) { if (is_array($config['hasync'])) {
update_filter_reload_status("Building high availability sync information"); update_filter_reload_status("Building high availability information");
$hasync = $config['hasync']; $hasync = $config['hasync'];
if (empty($hasync['synchronizetoip'])) { if (empty($hasync['synchronizetoip'])) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<GeneralSetup VisibleName="General Setup" url="/system_general.php"/> <GeneralSetup VisibleName="General Setup" url="/system_general.php"/>
<HighAvailSync VisibleName="High Availability Sync" url="/system_hasync.php"/> <HighAvailSync VisibleName="High Availability" url="/system_hasync.php"/>
<Routing url="/system_gateways.php"/> <Routing url="/system_gateways.php"/>
......
<?php <?php
/* /*
Copyright (C) 2014 Deciso B.V. Copyright (C) 2014 Deciso B.V.
Copyright (C) 2004 Scott Ullrich Copyright (C) 2004 Scott Ullrich
...@@ -182,7 +183,7 @@ include("head.inc"); ...@@ -182,7 +183,7 @@ include("head.inc");
<p class="vexpl"> <p class="vexpl">
<span class="red"><strong><?=gettext("Note"); ?>:</strong></span> <span class="red"><strong><?=gettext("Note"); ?>:</strong></span>
<br /> <br />
<?=gettext("You can configure high availability sync settings"); ?> <a href="system_hasync.php"><?=gettext("here"); ?></a>. <?=gettext("You can configure high availability settings"); ?> <a href="system_hasync.php"><?=gettext("here"); ?></a>.
</p> </p>
<?php <?php
......
...@@ -126,17 +126,17 @@ function active_main_menu() { ...@@ -126,17 +126,17 @@ function active_main_menu() {
// System // System
$system_menu = array(); $system_menu = array();
$system_menu[] = array(gettext("Settings"), "/system_general.php"); $system_menu[] = array(gettext("Certificates"), "/system_camanager.php");
$system_menu[] = array(gettext("Firmware"), "/system_firmware_check.php"); $system_menu[] = array(gettext("Firmware"), "/system_firmware_check.php");
$system_menu[] = array(gettext("High Avail. Sync"), "/system_hasync.php"); $system_menu[] = array(gettext("High Availability"), "/system_hasync.php");
$system_menu[] = array(gettext("Setup Wizard"), "/wizard.php?xml=setup_wizard.xml");
$system_menu[] = array(gettext("Routing"), "/system_gateways.php"); $system_menu[] = array(gettext("Routing"), "/system_gateways.php");
$system_menu[] = array(gettext("Cert Manager"), "/system_camanager.php"); $system_menu[] = array(gettext("Settings"), "/system_general.php");
if (!isAllowedPage("system_usermanager.php*")) $system_menu[] = array(gettext("Setup Wizard"), "/wizard.php?xml=setup_wizard.xml");
if (!isAllowedPage("system_usermanager.php*")) {
$system_menu[] = array(gettext("User Manager"), "/system_usermanager_passwordmg.php"); $system_menu[] = array(gettext("User Manager"), "/system_usermanager_passwordmg.php");
else } else {
$system_menu[] = array(gettext("User Manager"), "/system_usermanager.php"); $system_menu[] = array(gettext("User Manager"), "/system_usermanager.php");
$system_menu = msort($system_menu,0); }
// Interfaces // Interfaces
$interfaces_menu = array(); $interfaces_menu = array();
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>. Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
...@@ -949,7 +950,7 @@ function enable_change(enable_change) { ...@@ -949,7 +950,7 @@ function enable_change(enable_change) {
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<?php else: ?> <?php else: ?>
<b><?=gettext("No Certificates defined."); ?></b> <br />Create one under <a href="system_certmanager.php">System &gt; Cert Manager</a>. <b><?=gettext("No Certificates defined."); ?></b> <br />Create one under <a href="system_certmanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2010 Ermal Luçi Copyright (C) 2010 Ermal Luçi
Copyright (C) 2008 Shrew Soft Inc. Copyright (C) 2008 Shrew Soft Inc.
All rights reserved. All rights reserved.
...@@ -546,7 +547,7 @@ function select_clicked() { ...@@ -546,7 +547,7 @@ function select_clicked() {
<br /><span><?=gettext("This option is used if 'SSL Encrypted' option is choosen.");?> <br /> <br /><span><?=gettext("This option is used if 'SSL Encrypted' option is choosen.");?> <br />
<?=gettext("It must match with the CA in the AD otherwise problems will arise.");?></span> <?=gettext("It must match with the CA in the AD otherwise problems will arise.");?></span>
<?php else: ?> <?php else: ?>
<b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System &gt; Cert Manager</a>. <b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2012 Darren Embry <dse@webonastick.com>. Copyright (C) 2012 Darren Embry <dse@webonastick.com>.
...@@ -66,7 +67,7 @@ if ($_POST) { ...@@ -66,7 +67,7 @@ if ($_POST) {
$a_hasync['synchronizetoip'] = $pconfig['synchronizetoip']; $a_hasync['synchronizetoip'] = $pconfig['synchronizetoip'];
$a_hasync['username'] = $pconfig['username']; $a_hasync['username'] = $pconfig['username'];
$a_hasync['password'] = $pconfig['password']; $a_hasync['password'] = $pconfig['password'];
write_config("Updated High Availability Sync configuration"); write_config("Updated High Availability configuration");
interfaces_carp_setup(); interfaces_carp_setup();
header("Location: system_hasync.php"); header("Location: system_hasync.php");
exit(); exit();
...@@ -84,7 +85,7 @@ $pconfig['password'] = $a_hasync['password']; ...@@ -84,7 +85,7 @@ $pconfig['password'] = $a_hasync['password'];
$ifaces = get_configured_interface_with_descr(); $ifaces = get_configured_interface_with_descr();
$ifaces["lo0"] = "loopback"; $ifaces["lo0"] = "loopback";
$pgtitle = array(gettext("System"),gettext("High Availability Sync")); $pgtitle = array(gettext("System"),gettext("High Availability"));
$shortcut_section = "carp"; $shortcut_section = "carp";
include("head.inc"); include("head.inc");
?> ?>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Shrew Soft Inc. Copyright (C) 2008 Shrew Soft Inc.
...@@ -760,7 +761,7 @@ function autotls_change() { ...@@ -760,7 +761,7 @@ function autotls_change() {
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<?php else: ?> <?php else: ?>
<b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System &gt; Cert Manager</a>. <b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
...@@ -789,7 +790,7 @@ function autotls_change() { ...@@ -789,7 +790,7 @@ function autotls_change() {
<option value="" <?PHP if (empty($pconfig['certref'])) echo "selected=\"selected\""; ?>>None (Username and Password required)</option> <option value="" <?PHP if (empty($pconfig['certref'])) echo "selected=\"selected\""; ?>>None (Username and Password required)</option>
</select> </select>
<?php if (!count($a_cert)): ?> <?php if (!count($a_cert)): ?>
<b>No Certificates defined.</b> <br />Create one under <a href="system_certmanager.php">System &gt; Cert Manager</a> if one is required for this connection. <b>No Certificates defined.</b> <br />Create one under <a href="system_certmanager.php">System: Certificates</a> if one is required for this connection.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Shrew Soft Inc. Copyright (C) 2008 Shrew Soft Inc.
...@@ -960,7 +961,7 @@ function tuntap_change() { ...@@ -960,7 +961,7 @@ function tuntap_change() {
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<?php else: ?> <?php else: ?>
<b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System &gt; Cert Manager</a>. <b>No Certificate Authorities defined.</b> <br />Create one under <a href="system_camanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
...@@ -985,7 +986,7 @@ function tuntap_change() { ...@@ -985,7 +986,7 @@ function tuntap_change() {
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<?php else: ?> <?php else: ?>
<b>No Certificate Revocation Lists (CRLs) defined.</b> <br />Create one under <a href="system_crlmanager.php">System &gt; Cert Manager</a>. <b>No Certificate Revocation Lists (CRLs) defined.</b> <br />Create one under <a href="system_crlmanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
...@@ -1014,7 +1015,7 @@ function tuntap_change() { ...@@ -1014,7 +1015,7 @@ function tuntap_change() {
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<?php else: ?> <?php else: ?>
<b>No Certificates defined.</b> <br />Create one under <a href="system_certmanager.php">System &gt; Cert Manager</a>. <b>No Certificates defined.</b> <br />Create one under <a href="system_certmanager.php">System: Certificates</a>.
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment