Skip to content

Commit

Permalink
Add Language En
Browse files Browse the repository at this point in the history
  • Loading branch information
foxvlad committed Nov 8, 2018
1 parent 7f5c84f commit 4edf5d8
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 16 deletions.
73 changes: 73 additions & 0 deletions languages/okbit_default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php
/**
* Russian language file for okbit udp module
*
* @package OkBit UDP
* @author <[email protected]>
* @copyright 2018 Gulidov Vladislav aka foxvlad (c)
* @version 0.2b
*
**/

$dictionary = array(

'OKBIT_SCRIPT_NAME'=>'The name of the script',
'OKBIT_APP_ABOUT' => 'About the module',
'OKBIT_APP_CLOSE' => 'Close',
'OKBIT_TITLE' => 'Title',
'OKBIT_GATE_IP' => 'IP-device',
'OKBIT_VER' => 'Firmware version',
'OKBIT_MOD' => 'Device type',
'OKBIT_SUB_ID' => 'Subnet ID',
'OKBIT_DEVICE' => 'ID-module',
'OKBIT_TIPE_DEVICE' => 'Module type',
'OKBIT_STATUS' => 'Status',
'OKBIT_APP_MODULE' => 'UDP Protocol support module for devices OkBit.ru',
'OKBIT_APP_PROJ' => 'Project in',
'OKBIT_APP_DISCUS' => 'Module discussion on ',
'OKBIT_APP_DISCUS2' => 'forum',
'OKBIT_APP_CONNECT' => 'Project in ',
'OKBIT_APP_DONATE' => 'Support the development and development of the module:',
'OKBIT_APP_DONATE2' => 'Internal account at ',
'OKBIT_APP_Author' => 'Autor',
'OKBIT_APP_THANKS' => 'Thanks:',
'OKBIT_APP_NAME' => 'OkBit UDP',
'OKBIT_APP_CYCLE_START' => 'Cycle started',
'OKBIT_APP_CYCLE_STOP' => 'Cycle stopped',
'OKBIT_APP_IP' => 'IP of MajorDoMo server',
'OKBIT_APP_IP_TOOLTIP' => 'You must specify to work correctly on a server with two or more network interfaces.',
'OKBIT_APP_PERIOD' => 'Verification period',
'OKBIT_APP_PERIOD_TOOLTIP' => 'Period (in seconds) to get online status of devices',
'OKBIT_APP_DEBUG' => 'Debug',
'OKBIT_APP_DEBUG_TOOLTIP' => 'Record messaging between the server and devices in a separate log file YYYY-mm-dd_orbit.long. The cycle must be restarted for the changes to take effect.',
'OKBIT_APP_DEBUG_TOOLTIP2' => 'Record debug messages, the mpi library-Lib in the log file cycle log_YYYY-mm-dd-cycle_okbit.php.txt. The cycle must be restarted for the changes to take effect.',
'OKBIT_APP_ONLINE' => 'Device on network',
'OKBIT_APP_OFFLINE' => 'The device is not available',
'OKBIT_APP_DELETE' => 'Device is removed',
'OKBIT_APP_OPTIONS' => 'Parameter',
'OKBIT_APP_CURRENT' => 'To obtain the current status',
'OKBIT_APP_ADD_GATE' => 'Add device',
'OKBIT_APP_FIND_GATE' => 'Device search',
'OKBIT_APP_ADD_DEVICE' => 'Add module',
'OKBIT_APP_FIND_DEVICES' => 'Search modules',
'OKBIT_APP_INFO' => 'Information',
'OKBIT_APP_IP_SERVER' => 'IP-address ',
'OKBIT_APP_DEVICE_ONLINE' => 'Device on network',
'OKBIT_APP_DEVICE_OFFLINE' => 'The device is not available',
'OKBIT_APP_INFO_DEVICE' => 'Update device information',
'OKBIT_APP_BIND_GATE' => 'To bind the gateway to the server',
'OKBIT_APP_DEVICES_IN_GATE' => 'Devices on the gateway',
'OKBIT_APP_EDIT' => 'Edit',
'OKBIT_APP_DEITE' => 'Remove',
'OKBIT_APP_REMOVAL_REQUEST' => 'You sure? Please confirm.'
);

foreach ($dictionary as $k=>$v)
{
if (!defined('LANG_' . $k))
{
define('LANG_' . $k, $v);
}
}

?>
16 changes: 8 additions & 8 deletions templates/okbit/action_admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ <h4 class="modal-title">OkBit.ru UDP</h4>
</div>
<p class="float-left">
<#LANG_OKBIT_APP_MODULE#><br><br>
Обсуждение модуля на <a href="https://majordomo.smartliving.ru/forum/" target="_blank">форуме</a>.<br>
Проект на <a href="https://github.com/foxvlad/OkBitUDP" target="_blank">Github</a>.<br>
Проект в <a href="https://connect.smartliving.ru/profile/1160" target="_blank">Connect</a>.<br>
<#LANG_OKBIT_APP_DISCUS#><a href="https://majordomo.smartliving.ru/forum/" target="_blank"><#LANG_OKBIT_APP_DISCUS2#></a>.<br>
<#LANG_OKBIT_APP_PROJ#> <a href="https://github.com/foxvlad/OkBitUDP" target="_blank">GitHub</a>.<br>
<#LANG_OKBIT_APP_CONNECT#><a href="https://connect.smartliving.ru/profile/1160" target="_blank">Connect</a>.<br>
</p>

<h6>Благодарности: <b>skysilver</b>, <b>Aven</b>, <b>Egor Savenko</b></h6>
<h6><#LANG_OKBIT_APP_THANKS#> <b>skysilver</b>, <b>Aven</b>, <b>Egor Savenko</b></h6>
</div>
<div class="modal-footer">
<div class="pull-left"><#LANG_OKBIT_APP_Author#>: <a href="http://okbit.ru" target="_blank">foxvlad</a></div>
<button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
<button type="button" class="btn btn-default" data-dismiss="modal"><#LANG_OKBIT_APP_CLOSE#></button>
</div>
</div>
</div>
Expand All @@ -57,7 +57,7 @@ <h6>Благодарности: <b>skysilver</b>, <b>Aven</b>, <b>Egor Savenko</
<form action="?" method="post" enctype="multipart/form-data" name="frmEdit" class="form-horizontal">
<fieldset>
<div class="form-group">
<label class="control-label">IP адрес
<label class="control-label"><#LANG_OKBIT_APP_IP_SERVER#>
<span class='support-hover' tabindex="1" data-title="<#LANG_OKBIT_APP_IP_TOOLTIP#>">
<i class="glyphicon glyphicon-info-sign"></i>
</span>
Expand All @@ -77,7 +77,7 @@ <h6>Благодарности: <b>skysilver</b>, <b>Aven</b>, <b>Egor Savenko</

<div class="form-group">
<div class="controls"><input type="checkbox" name="api_log_debmes" value="1"[#if API_LOG_DEBMES="1"#] checked[#endif#]>
Отладка DebMes
<#LANG_OKBIT_APP_DEBUG#> DebMes
<span class='support-hover' tabindex="1" data-title="<#LANG_OKBIT_APP_DEBUG_TOOLTIP#>">
<i class="glyphicon glyphicon-info-sign"></i>
</span>
Expand All @@ -86,7 +86,7 @@ <h6>Благодарности: <b>skysilver</b>, <b>Aven</b>, <b>Egor Savenko</

<div class="form-group">
<div class="controls"><input type="checkbox" name="api_log_cycle" value="1"[#if API_LOG_CYCLE="1"#] checked[#endif#]>
Отладка Cycle
<#LANG_OKBIT_APP_DEBUG#> Cycle
<span class='support-hover' tabindex="1" data-title="<#LANG_OKBIT_APP_DEBUG_TOOLTIP2#>">
<i class="glyphicon glyphicon-info-sign"></i>
</span>
Expand Down
2 changes: 1 addition & 1 deletion templates/okbit/okbit_gate_edit_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<tr>
<td><#LANG_TITLE#></td>
<td><#LANG_VALUE#></td>
<td>Устройство</td>
<td><#LANG_DEVICE#></td>
<td><#LANG_LINKED_OBJECT#></td>
<td><#LANG_LINKED_PROPERTY#></td>
<td><#LANG_METHOD#></td>
Expand Down
14 changes: 7 additions & 7 deletions templates/okbit/okbit_gate_search_admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@

<td style="vertical-align:middle">
[#if STATUS==1#]
<span class="label label-success" title="Устройство в сети">Online</span>
<span class="label label-success" title="<#LANG_OKBIT_APP_DEVICE_ONLINE#>">Online</span>
[#else#]
<span class="label label-warning" title="Устройство не доступно">Offline</span>
<span class="label label-warning" title="<#LANG_OKBIT_APP_DEVICE_OFFLINE#>">Offline</span>
[#endif#]
</td>

<td style="vertical-align:middle" width="1%" nowrap>
<div style="width:210px">
[#if "<#ACTION#>"=="admin"#]
<a href="?data_source=okbit_gate&view_mode=update_gate&id=[#ID#]" class="btn btn-default" title="Обновить информацию об устройстве" onclick="return partLoad(this.href);"> <i class="glyphicon glyphicon-refresh"></i></a>
<a href="?data_source=okbit_gate&view_mode=update_gate&id=[#ID#]" class="btn btn-default" title="<#LANG_OKBIT_APP_INFO_DEVICE#>" onclick="return partLoad(this.href);"> <i class="glyphicon glyphicon-refresh"></i></a>

<a href="?data_source=okbit_gate&view_mode=bind_gate&id=[#ID#]" title="Привязать шлюз к серверу" onclick="return partLoad(this.href);" class="btn btn-default [#if STATUS==0#]disabled[#endif#]"><i class="glyphicon glyphicon-ok-sign"></i></a>
<a href="?data_source=okbit_gate&view_mode=bind_gate&id=[#ID#]" title="<#LANG_OKBIT_APP_BIND_GATE#>" onclick="return partLoad(this.href);" class="btn btn-default [#if STATUS==0#]disabled[#endif#]"><i class="glyphicon glyphicon-ok-sign"></i></a>

[#if MOD==6000#]<a href="?data_source=okbit_device&view_mode=search_okbit_devices&parent_title=[#TITLE#]&parent_id=[#ID#]" title="Устройства на шлюзе" class="btn btn-default"><i class="glyphicon glyphicon-th-list"></i></a>[#endif#]
[#if MOD==6000#]<a href="?data_source=okbit_device&view_mode=search_okbit_devices&parent_title=[#TITLE#]&parent_id=[#ID#]" title="<#LANG_OKBIT_APP_DEVICES_IN_GATE#>" class="btn btn-default"><i class="glyphicon glyphicon-th-list"></i></a>[#endif#]

<a href="?data_source=okbit_gate&view_mode=edit_okbit_gate&id=[#ID#]" title="Редактировать" class="btn btn-default"> <i class="glyphicon glyphicon-pencil"></i></a>
<a href="?data_source=okbit_gate&view_mode=edit_okbit_gate&id=[#ID#]" title="<#LANG_OKBIT_APP_EDIT#>" class="btn btn-default"> <i class="glyphicon glyphicon-pencil"></i></a>

<a href="?data_source=okbit_gate&view_mode=delete_okbit_gate&id=[#ID#]" onClick="return confirm('Вы уверены? Пожалуйста, подтвердите.')" class="btn btn-default" title="Удалить"><i class="glyphicon glyphicon-remove"></i></a>
<a href="?data_source=okbit_gate&view_mode=delete_okbit_gate&id=[#ID#]" onClick="return confirm('<#LANG_OKBIT_APP_REMOVAL_REQUEST#>')" class="btn btn-default" title="<#LANG_OKBIT_APP_DEITE#>"><i class="glyphicon glyphicon-remove"></i></a>
[#endif ACTION#]
</div>
</td>
Expand Down

0 comments on commit 4edf5d8

Please sign in to comment.