1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Update en_US locale + template

This commit is contained in:
billz 2021-02-07 15:24:45 +00:00
parent ee1da31da0
commit 361a37332a
3 changed files with 61 additions and 29 deletions

Binary file not shown.

View File

@ -677,6 +677,33 @@ msgstr "Attempting to start openvpn"
msgid "Attempting to stop openvpn" msgid "Attempting to stop openvpn"
msgstr "Attempting to stop openvpn" msgstr "Attempting to stop openvpn"
msgid "Configurations"
msgstr "Configurations"
msgid "Currently available OpenVPN client configurations are displayed below."
msgstr "Currently available OpenVPN client configurations are displayed below."
msgid "Activating a configuraton will restart the <code>openvpn-client</code> service."
msgstr "Activating a configuraton will restart the <code>openvpn-client</code> service."
msgid "Delete OpenVPN client"
msgstr "Delete OpenVPN client"
msgid "Delete client configuration? This cannot be undone."
msgstr "Delete client configuration? This cannot be undone."
msgid "Activate OpenVPN client"
msgstr "Activate OpenVPN client"
msgid "Activate client configuration? This will restart the openvpn-client service."
msgstr "Activate client configuration? This will restart the openvpn-client service."
msgid "Activate"
msgstr "Activate"
msgid "Cancel"
msgstr "Cancel"
#: includes/torproxy.php #: includes/torproxy.php
msgid "TOR is not running" msgid "TOR is not running"
msgstr "TOR is not running" msgstr "TOR is not running"

View File

@ -1,31 +1,36 @@
<div class="tab-pane fade" id="openvpnconfigs"> <div class="tab-pane fade" id="openvpnconfigs">
<h4 class="mt-3 mb-3"><?php echo _("Configurations"); ?></h4> <div class="row">
<div class="openvpn-configs js-openvpn-configs-container"> <div class="col-md-6">
<?php foreach ($clients as $client) : <h4 class="mt-3 mb-3"><?php echo _("Configurations"); ?></h4>
if ($client == "login.conf") { <p id="openvpnconfigs-description" class="mb-3">
$label = file_get_meta(RASPI_OPENVPN_CLIENT_LOGIN,'#\sfilename\s(.*)'); <small><?php echo _("Currently available OpenVPN client configurations are displayed below.") ?></small>
$btn_class = "active"; <br><small class="text-muted"><?php echo _("Activating a configuraton will restart the <code>openvpn-client</code> service.") ?></small>
} else { </p>
$label = trim(pathinfo($client, PATHINFO_FILENAME), "_login"); <div class="openvpn-configs js-openvpn-configs-container">
$client = $label; <?php foreach ($clients as $client) :
$btn_class = "disabled"; if ($client == "login.conf") {
} $label = file_get_meta(RASPI_OPENVPN_CLIENT_LOGIN,'#\sfilename\s(.*)');
?> $btn_class = "active";
<div class="row openvpn-client-row js-openvpn-client-row mt-2"> } else {
<div class="col-md-5 col-xs-5"> $label = trim(pathinfo($client, PATHINFO_FILENAME), "_login");
<label><?php echo htmlspecialchars($label, ENT_QUOTES); ?></label> $client = $label;
</div> $btn_class = "disabled";
<div class="col-md-2 col-xs-2"> }
<button type="button" class="btn btn-outline-success <?php echo $btn_class; ?> js-activate-openvpn-client" data-record-id="<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" data-toggle="modal" data-target="#ovpn-confirm-activate" /><i class="far fa-check-circle"></i></button> ?>
</div> <div class="row openvpn-client-row js-openvpn-client-row mt-2">
<div class="col-md-2 col-xs-3"> <div class="col-md-6 col-xs-5">
<button type="button" class="btn btn-outline-danger js-remove-openvpn-client" data-record-id="<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" data-toggle="modal" data-target="#ovpn-confirm-delete" /><i class="far fa-trash-alt"></i></button> <label><?php echo htmlspecialchars($label, ENT_QUOTES); ?></label>
</div> </div>
</div><!-- ./row openvpn --> <div class="col-md-2 col-xs-2">
<?php endforeach ?> <button type="button" class="btn btn-outline-success <?php echo $btn_class; ?> js-activate-openvpn-client" data-record-id="<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" data-toggle="modal" data-target="#ovpn-confirm-activate" /><i class="far fa-check-circle"></i></button>
</div><!-- /.openvpn-configs --> </div>
<div class="mb-3"> <div class="col-md-2 col-xs-2">
<button type="button" class="btn btn-outline-danger js-remove-openvpn-client" data-record-id="<?php echo htmlspecialchars($client, ENT_QUOTES); ?>" data-toggle="modal" data-target="#ovpn-confirm-delete" /><i class="far fa-trash-alt"></i></button>
</div>
</div><!-- ./row openvpn -->
<?php endforeach ?>
</div><!-- /.openvpn-configs -->
<div class="mb-3"></div>
</div><!-- /.tab-pane | manage configs tab -->
</div> </div>
</div><!-- /.tab-pane | manage configs tab --> </div>