mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Replaced strings with gettext() alias
This commit is contained in:
parent
244148cbee
commit
be4ccda6f7
39
includes/networking.php
Normal file → Executable file
39
includes/networking.php
Normal file → Executable file
@ -23,12 +23,11 @@ function DisplayNetworkingConfig(){
|
|||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel panel-heading">
|
<div class="panel panel-heading">
|
||||||
<i class="fa fa-sitemap fa-fw"></i> Configure Networking
|
<i class="fa fa-sitemap fa-fw"></i> <?php echo _("Configure networking"); ?></div>
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div id="msgNetworking"></div>
|
<div id="msgNetworking"></div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li role="presentation" class="active"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab">Summary</a></li>
|
<li role="presentation" class="active"><a href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><?php echo _("Summary"); ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
foreach($interfaces as $interface) {
|
foreach($interfaces as $interface) {
|
||||||
echo '<li role="presentation"><a href="#'.$interface.'" aria-controls="'.$interface.'" role="tab" data-toggle="tab">'.$interface.'</a></li>';
|
echo '<li role="presentation"><a href="#'.$interface.'" aria-controls="'.$interface.'" role="tab" data-toggle="tab">'.$interface.'</a></li>';
|
||||||
@ -37,7 +36,7 @@ function DisplayNetworkingConfig(){
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div role="tabpanel" class="tab-pane active" id="summary">
|
<div role="tabpanel" class="tab-pane active" id="summary">
|
||||||
<h4>Current Settings</h4>
|
<h4><?php echo _("Current settings"); ?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php
|
||||||
foreach($interfaces as $interface) {
|
foreach($interfaces as $interface) {
|
||||||
@ -52,7 +51,7 @@ function DisplayNetworkingConfig(){
|
|||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<a href="#" class="btn btn-outline btn-primary" id="btnSummaryRefresh"><i class="fa fa-refresh"></i> Refresh</a>
|
<a href="#" class="btn btn-outline btn-primary" id="btnSummaryRefresh"><i class="fa fa-refresh"></i> <?php echo _("Refresh"); ?></a>
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.col-lg-12 -->
|
||||||
</div><!-- /.tab-pane -->
|
</div><!-- /.tab-pane -->
|
||||||
@ -64,49 +63,49 @@ function DisplayNetworkingConfig(){
|
|||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<form id="frm-'.$interface.'">
|
<form id="frm-'.$interface.'">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<h4>Adapter IP Address Settings</h4>
|
<h4>' . _("Adapter IP Address Settings") . '</h4>
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.$interface.'-addresstype" id="'.$interface.'-dhcp" autocomplete="off">DHCP
|
<input type="radio" name="'.$interface.'-addresstype" id="'.$interface.'-dhcp" autocomplete="off">' . _("DHCP") . '
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.$interface.'-addresstype" id="'.$interface.'-static" autocomplete="off">Static IP
|
<input type="radio" name="'.$interface.'-addresstype" id="'.$interface.'-static" autocomplete="off">' . _("Static IP") . '
|
||||||
</label>
|
</label>
|
||||||
</div><!-- /.btn-group -->
|
</div><!-- /.btn-group -->
|
||||||
<h4>Enable Fallback to Static Option</h4>
|
<h4>' . _("Enable Fallback to Static Option") . '</h4>
|
||||||
<div class="btn-group" data-toggle="buttons">
|
<div class="btn-group" data-toggle="buttons">
|
||||||
<label class="btn btn-primary">
|
<label class="btn btn-primary">
|
||||||
<input type="radio" name="'.$interface.'-dhcpfailover" id="'.$interface.'-failover" autocomplete="off">Enabled
|
<input type="radio" name="'.$interface.'-dhcpfailover" id="'.$interface.'-failover" autocomplete="off">' . _("Enabled") . '
|
||||||
</label>
|
</label>
|
||||||
<label class="btn btn-warning">
|
<label class="btn btn-warning">
|
||||||
<input type="radio" name="'.$interface.'-dhcpfailover" id="'.$interface.'-nofailover" autocomplete="off">Disabled
|
<input type="radio" name="'.$interface.'-dhcpfailover" id="'.$interface.'-nofailover" autocomplete="off">' . _("Disabled") . '
|
||||||
</label>
|
</label>
|
||||||
</div><!-- /.btn-group -->
|
</div><!-- /.btn-group -->
|
||||||
</div><!-- /.form-group -->
|
</div><!-- /.form-group -->
|
||||||
<hr />
|
<hr />
|
||||||
<h4>Static IP Options</h4>
|
<h4>' . _("Static IP Options") . '</h4>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="'.$interface.'-ipaddress">IP Address</label>
|
<label for="'.$interface.'-ipaddress">' . _("IP Address") . '</label>
|
||||||
<input type="text" class="form-control" id="'.$interface.'-ipaddress" placeholder="0.0.0.0">
|
<input type="text" class="form-control" id="'.$interface.'-ipaddress" placeholder="0.0.0.0">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="'.$interface.'-netmask">Subnet Mask</label>
|
<label for="'.$interface.'-netmask">' . _("Subnet Mask") . '</label>
|
||||||
<input type="text" class="form-control" id="'.$interface.'-netmask" placeholder="255.255.255.0">
|
<input type="text" class="form-control" id="'.$interface.'-netmask" placeholder="255.255.255.0">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="'.$interface.'-gateway">Default Gateway</label>
|
<label for="'.$interface.'-gateway">' . _("Default Gateway") . '</label>
|
||||||
<input type="text" class="form-control" id="'.$interface.'-gateway" placeholder="0.0.0.0">
|
<input type="text" class="form-control" id="'.$interface.'-gateway" placeholder="0.0.0.0">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="'.$interface.'-dnssvr">DNS Server</label>
|
<label for="'.$interface.'-dnssvr">' . _("DNS Server") . '</label>
|
||||||
<input type="text" class="form-control" id="'.$interface.'-dnssvr" placeholder="0.0.0.0">
|
<input type="text" class="form-control" id="'.$interface.'-dnssvr" placeholder="0.0.0.0">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="'.$interface.'-dnssvralt">Alternate DNS Server</label>
|
<label for="'.$interface.'-dnssvralt">' . _("Alternate DNS Server") . '</label>
|
||||||
<input type="text" class="form-control" id="'.$interface.'-dnssvralt" placeholder="0.0.0.0">
|
<input type="text" class="form-control" id="'.$interface.'-dnssvralt" placeholder="0.0.0.0">
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="btn btn-outline btn-primary intsave" data-int="'.$interface.'">Save Settings</a>
|
<a href="#" class="btn btn-outline btn-primary intsave" data-int="'.$interface.'">' . _("Save settings") . '</a>
|
||||||
<a href="#" class="btn btn-warning intapply" data-int="'.$interface.'">Apply Settings</a>
|
<a href="#" class="btn btn-warning intapply" data-int="'.$interface.'">' . _("Apply settings") . '</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.tab-panel -->
|
</div><!-- /.tab-panel -->
|
||||||
@ -115,7 +114,7 @@ function DisplayNetworkingConfig(){
|
|||||||
?>
|
?>
|
||||||
</div><!-- /.tab-content -->
|
</div><!-- /.tab-content -->
|
||||||
</div><!-- /.panel-body -->
|
</div><!-- /.panel-body -->
|
||||||
<div class="panel-footer">Information provided by /sys/class/net</div>
|
<div class="panel-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
||||||
</div><!-- /.panel-primary -->
|
</div><!-- /.panel-primary -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.col-lg-12 -->
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user