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

Wrap strings w/ php gettext, update en_US locale + compile

This commit is contained in:
billz 2021-04-06 10:34:39 +01:00
parent bb0fa69985
commit d3c830d69f
3 changed files with 49 additions and 17 deletions

Binary file not shown.

View File

@ -725,6 +725,36 @@ msgstr "Cancel"
msgid "Enable this option to log <code>openvpn</code> activity." msgid "Enable this option to log <code>openvpn</code> activity."
msgstr "Enable this option to log <code>openvpn</code> activity." msgstr "Enable this option to log <code>openvpn</code> activity."
msgid "Authentification Method"
msgstr "Authentification Method"
msgid "Username and password"
msgstr "Username and password"
msgid "Certificates"
msgstr "Certificates"
msgid "Enter username and password"
msgstr "Enter username and password"
msgid "Certificates in the configuration file"
msgstr "Certificates in the configuration file"
msgid "RaspAP supports certificates by including them in the configuration file."
msgstr "RaspAP supports certificates by including them in the configuration file."
msgid "Signing certification authority (CA) certificate (e.g. <code>ca.crt</code>): enclosed in <code>&lt;ca> ... &lt;/ca></code> tags."
msgstr "Signing certification authority (CA) certificate (e.g. <code>ca.crt</code>): enclosed in <code>&lt;ca> ... &lt;/ca></code> tags."
msgid "Client certificate (public key) (e.g. <code>client.crt</code>): enclosed in <code>&lt;cert> ... &lt;/cert></code> tags."
msgstr "Client certificate (public key) (e.g. <code>client.crt</code>): enclosed in <code>&lt;cert> ... &lt;/cert></code> tags."
msgid "Private key of the client certificate (e.g. <code>client.key</code>): enclosed in <code>&lt;key> ... &lt;/key></code> tags."
msgstr "Private key of the client certificate (e.g. <code>client.key</code>): enclosed in <code>&lt;key> ... &lt;/key></code> tags."
msgid "Configuration File"
msgstr "Configuration File"
#: 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

@ -11,17 +11,17 @@
<h5><?php echo _("Authentification Method"); ?></h5> <h5><?php echo _("Authentification Method"); ?></h5>
<div class="col-sm-12 mt-2 mb-2 form-check"> <div class="col-sm-12 mt-2 mb-2 form-check">
<input class="form-check-input" id="ovpn-userpw" name="sel1" value="userpw" data-toggle="" data-parent="#clientsettings" data-target="#UserPW" type="radio" checked> <input class="form-check-input" id="ovpn-userpw" name="sel1" value="userpw" data-toggle="" data-parent="#clientsettings" data-target="#UserPW" type="radio" checked>
<label class="form-check-label">User name and password</label> <label class="form-check-label"><?php echo _("Username and password"); ?></label>
</div> </div>
<div class="col-sm-12 mt-2 mb-2 form-check"> <div class="col-sm-12 mt-2 mb-2 form-check">
<input class="form-check-input" id="ovpn-certs" name="sel1" value="certs" data-toggle="" data-parent="#clientsettings" data-target="#Certs" type="radio"> <input class="form-check-input" id="ovpn-certs" name="sel1" value="certs" data-toggle="" data-parent="#clientsettings" data-target="#Certs" type="radio">
<label class="form-check-label">Certificates</label> <label class="form-check-label"><?php echo _("Certificates"); ?></label>
</div> </div>
<div class="col-sm-12 ml-2"> <div class="col-sm-12 ml-2">
<div class="panel-group" id="clientsettings"> <div class="panel-group" id="clientsettings">
<div class="panel panel-default panel-collapse" id="PanelUserPW" > <div class="panel panel-default panel-collapse" id="PanelUserPW" >
<div class="panel-heading"> <div class="panel-heading">
<h5 class="panel-title">Enter username and password</h5> <h5 class="panel-title"><?php echo _("Enter username and password"); ?></h5>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div class="form-group col-lg-12"> <div class="form-group col-lg-12">
@ -33,17 +33,19 @@
<input type="password" class="form-control" name="authPassword" value="<?php echo htmlspecialchars($authPassword, ENT_QUOTES); ?>" /> <input type="password" class="form-control" name="authPassword" value="<?php echo htmlspecialchars($authPassword, ENT_QUOTES); ?>" />
</div> </div>
</div> </div>
</div> <!-- panel --> </div><!-- panel -->
<div class="panel panel-default panel-collapse collapse in" id="PanelCerts" > <div class="panel panel-default panel-collapse collapse in" id="PanelCerts">
<div class="panel-body"> <div class="panel-body">
<div class="panel-heading"> <div class="panel-heading">
<h5 class="panel-title">Certificates in the configuration file</h5> <h5 class="panel-title"><?php echo _("Certificates in the configuration file"); ?></h5>
</div> </div>
<p> RaspAP does not support the import of the required cerficates. Please paste them into the configuration file <p><?php echo _("RaspAP supports certificates by including them in the configuration file."); ?>
<ul> <ul>
<li>Signing certification authority (CA) certificate (e.g. <code>ca.crt</code>): enclosed in <code>&lt;ca> ... &lt;/ca></code> tags </li> <small>
<li>Client certificate (public key) (e.g. <code>client.crt</code>): enclosed in <code>&lt;cert> ... &lt;/cert></code> tags </li> <li><?php echo _("Signing certification authority (CA) certificate (e.g. <code>ca.crt</code>): enclosed in <code>&lt;ca> ... &lt;/ca></code> tags."); ?></li>
<li>Private key of the client certificate (e.g. <code>client.key</code>): enclosed in <code>&lt;key> ... &lt;/key></code> tags </li> <li><?php echo _("Client certificate (public key) (e.g. <code>client.crt</code>): enclosed in <code>&lt;cert> ... &lt;/cert></code> tags."); ?></li>
<li><?php echo _("Private key of the client certificate (e.g. <code>client.key</code>): enclosed in <code>&lt;key> ... &lt;/key></code> tags."); ?></li>
</small>
</ul> </ul>
</p> </p>
</div> </div>
@ -52,7 +54,7 @@
</div> <!-- col --> </div> <!-- col -->
<div class="col-sm-12 "> <div class="col-sm-12 ">
<div class="form-group"> <div class="form-group">
<h5 class="panel-title">Configuration File</h4> <h5 class="panel-title"><?php echo _("Configuration File"); ?></h4>
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" name="customFile" id="customFile"> <input type="file" class="custom-file-input" name="customFile" id="customFile">
<label class="custom-file-label" for="customFile"><?php echo _("Select OpenVPN configuration file (.ovpn)"); ?></label> <label class="custom-file-label" for="customFile"><?php echo _("Select OpenVPN configuration file (.ovpn)"); ?></label>