Преглед изворни кода

add translation for all ip lists

rajven пре 3 година
родитељ
комит
f8eddd963b

+ 13 - 18
html/admin/iplist/deleted.php

@@ -41,16 +41,12 @@ print_ip_submenu($page_url);
 ?>
 <div id="cont">
 <form name="def" action="deleted.php" method="post">
-<table class="data">
-	<tr>
-        <td>
-        <b><?php print $list_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
-        Поиск по комментарию/ip/mac/dhcp hostname: &nbsp <input type=text name=searchComment value="<?php print $f_comment; ?>">
-        Отображать:<?php print_row_at_pages('rows',$displayed); ?>
-        <input type="submit" value="Показать">
-        </td>
-	</tr>
-</table>
+<div>
+        <b><?php print WEB_network_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
+        <?php echo WEB_ips_search_full; ?>: &nbsp <input type=text name=searchComment value="<?php print $f_comment; ?>">
+        <?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
+        <input type="submit" value="<?php echo WEB_btn_show; ?>">
+</div>
 
 <?php
 $countSQL="SELECT Count(*) FROM User_auth WHERE User_auth.deleted = 1 $ip_list_filter";
@@ -66,13 +62,13 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 
 <table class="data">
 	<tr>
-		<td align=Center><?php print $sort_url . "sort=ip_int&order=$new_order>" . $cell_ip . "</a>"; ?></td>
-		<td align=Center><?php print $sort_url . "sort=mac&order=$new_order>" . $cell_mac . "</a>"; ?></td>
-		<td align=Center><?php print $cell_comment; ?></td>
-		<td align=Center><?php print $cell_dns_name; ?></td>
-		<td align=Center><?php print $sort_url . "sort=timestamp&order=$new_order>Создан</a>"; ?></td>
-		<td align=Center><?php print $sort_url . "sort=changed_time&order=$new_order>Удалён</a>"; ?></td>
-		<td align=Center><?php print $sort_url . "sort=last_found&order=$new_order>Работал</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "sort=ip_int&order=$new_order>" . WEB_cell_ip . "</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "sort=mac&order=$new_order>" . WEB_cell_mac . "</a>"; ?></td>
+		<td align=Center><?php print WEB_cell_comment; ?></td>
+		<td align=Center><?php print WEB_cell_dns_name; ?></td>
+		<td align=Center><?php print $sort_url . "sort=timestamp&order=$new_order>".WEB_cell_created."</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "sort=changed_time&order=$new_order>".WEB_cell_deleted."</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "sort=last_found&order=$new_order>".WEB_cell_last_found."</a>"; ?></td>
 	</tr>
 <?php
 
@@ -104,7 +100,6 @@ foreach ($users as $user) {
 print "</table>\n";
 print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 ?>
-<br>
 <?php
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php");
 ?>

+ 8 - 8
html/admin/iplist/doubles.php

@@ -27,14 +27,14 @@ print_ip_submenu($page_url);
 <table class="data">
 <tr>
     <td class="data"><input type="checkbox" onClick="checkAll(this.checked);"></td>
-    <td align=Center><?php print $cell_login; ?></td>
-    <td align=Center><?php print $cell_ip; ?></td>
-    <td align=Center><?php print $cell_mac ; ?></td>
-    <td align=Center><?php print $cell_comment; ?></td>
-    <td align=Center><?php print $cell_dns_name; ?></td>
-    <td align=Center>Создан</td>
-    <td align=Center>Работал</td>
-    <td align=right><input type="submit" onclick="return confirm('Удалить выделенных?')" name="removeauth" value="Удалить выделенных"></td>
+    <td align=Center><?php print WEB_cell_login; ?></td>
+    <td align=Center><?php print WEB_cell_ip; ?></td>
+    <td align=Center><?php print WEB_cell_mac ; ?></td>
+    <td align=Center><?php print WEB_cell_comment; ?></td>
+    <td align=Center><?php print WEB_cell_dns_name; ?></td>
+    <td align=Center><?php print WEB_cell_created; ?></td>
+    <td align=Center><?php print WEB_cell_last_found; ?></td>
+    <td align=right><input type="submit" onclick="return confirm('<?php echo WEB_msg_delete; ?>?')" name="removeauth" value="<?php echo WEB_btn_delete; ?>"></td>
 </tr>
 <?php
 $sSQL = "SELECT U.id, U.ip, U.mac, S.subnet as net FROM User_auth U, subnets S WHERE (U.mac IS NOT NULL AND U.mac<>'') AND (U.ip_int BETWEEN S.ip_int_start AND S.ip_int_stop) AND S.office=1 AND deleted=0 ORDER BY net,mac,ip";

+ 3 - 3
html/admin/iplist/index.php

@@ -95,10 +95,10 @@ print_ip_submenu($page_url);
 	<tr>
         <td>
         <b><?php print WEB_cell_ou; ?> - </b><?php print_ou_select($db_link, 'ou', $rou); ?>
-        <b><?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
         <b><?php print WEB_network_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
         <b><?php echo WEB_ips_show_by_state; ?> - </b><?php print_enabled_select('enabled', $enabled); ?>
-        <b><?php echo WEB_ips_search_host; ?>:&nbsp<input type="text" name="ip" value="<?php echo $f_ip; ?>" pattern="^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])|([0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}|([0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4})|[0-9A-Fa-f]{12})$"/>
+        <?php echo WEB_ips_search_host; ?>:&nbsp<input type="text" name="ip" value="<?php echo $f_ip; ?>" pattern="^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])|([0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}|([0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4})|[0-9A-Fa-f]{12})$"/>
+        <?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
         <input type="submit" value="<?php echo WEB_btn_show; ?>">
         </td>
 	</tr>
@@ -118,7 +118,7 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 
 <table class="data">
 <tr>
-<td>Для выделенных установить: Включен&nbsp<?php print_qa_select('a_enabled', 1); ?></td>
+<td><?php print WEB_selection_title.": ".WEB_cell_enabled."&nbsp"; print_qa_select('a_enabled', 1); ?></td>
 <td><?php print WEB_cell_filter."&nbsp";print_group_select($db_link, 'a_group_id', 0); ?></td>
 <td><?php print WEB_cell_shaper."&nbsp";print_queue_select($db_link, 'a_queue_id', 0); ?></td>
 <td>Dhcp&nbsp<?php print_qa_select('a_dhcp', 1); ?></td>

+ 22 - 22
html/admin/iplist/nagios.php

@@ -59,11 +59,11 @@ print_ip_submenu($page_url);
 <table class="data">
 	<tr>
         <td>
-        <b><?php print $list_ou; ?> - </b><?php print_ou_select($db_link, 'ou', $rou); ?>
-        <b>Отображать:<?php print_row_at_pages('rows',$displayed); ?>
-        <b><?php print $list_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
-        <b>Мониторится - </b><?php print_enabled_select('enabled', $enabled); ?>
-        <input type="submit" value="Показать">
+        <b><?php print WEB_cell_ou; ?> :</b><?php print_ou_select($db_link, 'ou', $rou); ?>
+        <b><?php print WEB_network_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
+        <b><?php print WEB_nagios; ?> :</b><?php print_enabled_select('enabled', $enabled); ?>
+        <?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
+        <input type="submit" value="<?php print WEB_btn_show; ?>">
         </td>
 	</tr>
 </table>
@@ -82,26 +82,26 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 
 <table class="data">
 <tr>
-<td>Для выделенных установить: Nagios&nbsp<?php print_qa_select('n_enabled', 1); ?></td>
-<td>Lnk&nbsp<?php print_qa_select('n_link', 0); ?></td>
+<td><?php echo WEB_selection_title; ?>: Nagios&nbsp<?php print_qa_select('n_enabled', 1); ?></td>
+<td>Link&nbsp<?php print_qa_select('n_link', 0); ?></td>
 <td>Event-handler&nbsp<?php print_nagios_handler_select('n_handler', ''); ?></td>
-<td>&nbsp<input type="submit" onclick="return confirm('Применить для выделенных?')" name="ApplyForAll" value="Применить"></td>
+<td>&nbsp<input type="submit" onclick="return confirm('<?php echo WEB_msg_apply_selected; ?>?')" name="ApplyForAll" value="<?php echo WEB_btn_apply; ?>"></td>
 </tr>
 </table>
 
 <table class="data">
 	<tr>
-        	<td align=Center><input type="checkbox" onClick="checkAll(this.checked);"></td>
-		<td align=Center><?php print $sort_url . "&sort=login&order=$new_order>" . $cell_login . "</a>"; ?></td>
-		<td align=Center><?php print $sort_url . "&sort=ip_int&order=$new_order>" . $cell_ip . "</a>"; ?></td>
-		<td align=Center><?php print $sort_url . "&sort=mac&order=$new_order>" . $cell_mac . "</a>"; ?></td>
-		<td align=Center><?php print $cell_comment; ?></td>
-		<td align=Center><?php print $cell_wikiname; ?></td>
-		<td align=Center><?php print $sort_url . "&sort=nagios&order=$new_order>" . $cell_nagios; ?></td>
-		<td align=Center><?php print $sort_url . "&sort=link_check&order=$new_order>" . $cell_link; ?></td>
-		<td align=Center><?php print $cell_nagios_handler; ?></td>
+        <td align=Center><input type="checkbox" onClick="checkAll(this.checked);"></td>
+		<td align=Center><?php print $sort_url . "&sort=login&order=$new_order>" . WEB_cell_login . "</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "&sort=ip_int&order=$new_order>" . WEB_cell_ip . "</a>"; ?></td>
+		<td align=Center><?php print $sort_url . "&sort=mac&order=$new_order>" . WEB_cell_mac . "</a>"; ?></td>
+		<td align=Center><?php print WEB_cell_comment; ?></td>
+		<td align=Center><?php print WEB_cell_wikiname; ?></td>
+		<td align=Center><?php print $sort_url . "&sort=nagios&order=$new_order>" . WEB_cell_nagios; ?></td>
+		<td align=Center><?php print $sort_url . "&sort=link_check&order=$new_order>" . WEB_cell_link; ?></td>
+		<td align=Center><?php print WEB_cell_nagios_handler; ?></td>
 		<td align=Center><?php print $sort_url . "&sort=last_found&order=$new_order>Last</a>"; ?></td>
-		<td align=Center><?php print $cell_connection; ?></td>
+		<td align=Center><?php print WEB_cell_connection; ?></td>
 	</tr>
 <?php
 
@@ -164,11 +164,11 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 ?>
 <br>
 <table class="data">
-<tr><td>Цветовая маркировка</td></tr>
+<tr><td><?php echo WEB_color_description; ?></td></tr>
 <tr>
-<td class="up">Хост включен</td>
-<td class="down">Хост недоступен</td>
-<td class="data">Неизвестно</td>
+<td class="up"><?php echo WEB_nagios_host_up; ?></td>
+<td class="down"><?php echo WEB_nagios_host_down; ?></td>
+<td class="data"><?php echo WEB_nagios_host_unknown; ?></td>
 </table>
 <?php
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php");

+ 7 - 0
html/inc/languages/russian.php

@@ -21,6 +21,9 @@ define("WEB_sec","секунд");
 define("WEB_page_speed","Страница сгенерирована за ");
 define("WEB_rows_at_page","Записей на страницу");
 define("WEB_nagios","Nagios");
+define("WEB_nagios_host_up","Хост активен");
+define("WEB_nagios_host_down","Хост не доступен");
+define("WEB_nagios_host_unknown","Состояние неизвестно");
 
 /* error messages */
 define("WEB_auth_unknown","IP-адрес клиента не установлен");
@@ -197,6 +200,8 @@ define("WEB_cell_vlan","Vlan");
 define("WEB_cell_mac_count","Mac count");
 define("WEB_cell_forename","Имя");
 define("WEB_cell_flags","Флаги");
+define("WEB_cell_created","Создан");
+define("WEB_cell_deleted","Удалён");
 
 /* lists name */
 define("WEB_list_ou","Список групп");
@@ -389,5 +394,7 @@ define("WEB_rules_target","Юзер/группа");
 /* all ip list */
 define("WEB_ips_show_by_state","По активности");
 define("WEB_ips_search_host","Поиск ip or mac");
+define("WEB_selection_title","Применить к выделению");
+define("WEB_ips_search_full","Поиск по комментарию/ip/mac/dhcp hostname");
 
 ?>