Skip to content

Commit

Permalink
#733 Поправил перевод и расшифровку правила
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Nov 14, 2024
1 parent 8331870 commit 14cc1ba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/AdminCabinet/Views/IncomingRoutes/index.volt
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@
<td class="{% if rule['disabled']==1 %}disabled{% endif %}">

{% if rule['number'] is empty AND rule['provider'] is empty %}
{{ t._('ir_RuleDescriptionWithoutNumberAndWithoutProvider',
{{ t._('ir_RuleDescriptionWithoutNumberAndWithoutProvider_v2',
[
'timeout':rule['timeout'],
'callerid':rule['callerid']
]) }}
{% elseif rule['number'] is empty %}
{{ t._('ir_RuleDescriptionWithoutNumber',
{{ t._('ir_RuleDescriptionWithoutNumber_v2',
[
'timeout':rule['timeout'],
'provider':rule['provider'],
'callerid':rule['callerid']
]) }}
{% elseif rule['provider'] is empty %}
{{ t._('ir_RuleDescriptionWithoutProvider',
{{ t._('ir_RuleDescriptionWithoutProvider_v2',
[
'timeout':rule['timeout'],
'callerid':rule['callerid'],
'number':rule['number']
]) }}
{% else %}
{{ t._('ir_RuleDescriptionWithNumberAndWithProvider',
{{ t._('ir_RuleDescriptionWithNumberAndWithProvider_v2',
[
'timeout':rule['timeout'],
'provider':rule['provider'],
Expand Down
8 changes: 4 additions & 4 deletions src/AdminCabinet/Views/OutOffWorkTime/modify.volt
Original file line number Diff line number Diff line change
Expand Up @@ -142,27 +142,27 @@
</td>
<td class="{% if rule['disabled']==1 %}disabled{% endif %}">
{% if rule['number'] is empty AND rule['provider'] is empty %}
{{ t._('ir_RuleDescriptionWithoutNumberAndWithoutProvider',
{{ t._('ir_RuleDescriptionWithoutNumberAndWithoutProvider_v2',
[
'timeout':rule['timeout'],
'callerid':rule['callerid']
]) }}
{% elseif rule['number'] is empty %}
{{ t._('ir_RuleDescriptionWithoutNumber',
{{ t._('ir_RuleDescriptionWithoutNumber_v2',
[
'timeout':rule['timeout'],
'provider':rule['provider'],
'callerid':rule['callerid']
]) }}
{% elseif rule['provider'] is empty %}
{{ t._('ir_RuleDescriptionWithoutProvider',
{{ t._('ir_RuleDescriptionWithoutProvider_v2',
[
'timeout':rule['timeout'],
'callerid':rule['callerid'],
'number':rule['number']
]) }}
{% else %}
{{ t._('ir_RuleDescriptionWithNumberAndWithProvider',
{{ t._('ir_RuleDescriptionWithNumberAndWithProvider_v2',
[
'timeout':rule['timeout'],
'provider':rule['provider'],
Expand Down
6 changes: 5 additions & 1 deletion src/Common/Messages/ru.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,13 @@
'ir_TableColumnName' => 'Название',
'ir_TableColumnDetails' => 'Правило',
'ir_RuleDescriptionWithNumberAndWithProvider' => 'Звонок на номер <b>%number%</b> через&nbsp&nbsp&nbsp<b>%provider%</b> будет переадресован на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithNumberAndWithProvider_v2' => 'Звонок на номер <b>%number%</b> через&nbsp&nbsp&nbsp<b>%provider%</b> будет направлен на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutNumber' => 'Звонок через&nbsp&nbsp&nbsp<b>%provider%</b> будет переадресован на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutProvider' => 'Звонок на номер <b>%number%</b> будет переадресован на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutNumber_v2' => 'Звонок на <b>любой номер</b> через&nbsp&nbsp&nbsp<b>%provider%</b> будет направлен на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutProvider' => 'Звонок без привязки к провайдеру на номер <b>%number%</b> будет переадресован на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutProvider_v2' => 'Звонок без привязки к провайдеру на номер <b>%number%</b> будет направлен на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutNumberAndWithoutProvider' => 'Звонок через любого провайдера будет переадресован на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_RuleDescriptionWithoutNumberAndWithoutProvider_v2' => 'Звонок без привязки к провайдеру на <b>любой номер</b> будет направлен на&nbsp&nbsp&nbsp<b>%callerid%</b>',
'ir_DefaultRoute' => 'Входящий маршрут по умолчанию',
'ir_ActionSelect' => 'Если не подошло ни одно из правил',
'ir_busy_signal' => 'Воспроизвести сигнал занято',
Expand Down

0 comments on commit 14cc1ba

Please sign in to comment.