Project

General

Profile

« Previous | Next » 

Revision 019db2a3

Added by Carlos Eduardo Ramos about 15 years ago

Implement gettext() calls on load_balancer_pool.php

View differences:

usr/local/www/load_balancer_pool.php
69 69
		if (is_array($config['load_balancer']['virtual_server'])) {
70 70
			foreach ($config['load_balancer']['virtual_server'] as $vs) {
71 71
				if ($vs['pool'] == $a_pool[$_GET['id']]['name']) {
72
					$input_errors[] = "This entry cannot be deleted because it is still referenced by at least one virtual server.";
72
					$input_errors[] = gettext("This entry cannot be deleted because it is still referenced by at least one virtual server.");
73 73
					break;
74 74
				}
75 75
			}
......
94 94
	$a_pool[$i]['monitor'] = "<a href=\"/load_balancer_monitor_edit.php?id={$mondex[$a_pool[$i]['monitor']]}\">{$a_pool[$i]['monitor']}</a>";
95 95
}
96 96

  
97
$pgtitle = array("Services", "Load Balancer","Pool");
97
$pgtitle = array(gettext("Services"), gettext("Load Balancer"),gettext("Pool"));
98 98
#$statusurl = "status_lb_vs.php";
99 99
$statusurl = "status_lb_pool.php";
100 100
$logurl = "diag_logs_relayd.php";
......
108 108
<?php if ($input_errors) print_input_errors($input_errors); ?>
109 109
<?php if ($savemsg) print_info_box($savemsg); ?>
110 110
<?php if (is_subsystem_dirty('loadbalancer')): ?><p>
111
<?php print_info_box_np("The load balancer configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br>
111
<?php print_info_box_np(gettext("The load balancer configuration has been changed") ".<br>" . gettext("You must apply the changes in order for them to take effect."));?><br>
112 112
<?php endif; ?>
113 113
<table width="100%" border="0" cellpadding="0" cellspacing="0">
114 114
  <tr><td class="tabnavtbl">
115 115
  <?php
116 116
        /* active tabs */
117 117
        $tab_array = array();
118
        $tab_array[] = array("Monitors", false, "load_balancer_monitor.php");
119
        $tab_array[] = array("Pools", true, "load_balancer_pool.php");
120
        $tab_array[] = array("Virtual Servers", false, "load_balancer_virtual_server.php");
118
        $tab_array[] = array(gettext("Monitors"), false, "load_balancer_monitor.php");
119
        $tab_array[] = array(gettext("Pools"), true, "load_balancer_pool.php");
120
        $tab_array[] = array(gettext("Virtual Servers"), false, "load_balancer_virtual_server.php");
121 121
        display_top_tabs($tab_array);
122 122
  ?>
123 123
  </td></tr>

Also available in: Unified diff