Localization

This commit is contained in:
n1rwana 2023-07-23 13:29:18 +03:00
parent 1e6ede7236
commit 21c900ac26
6 changed files with 18 additions and 6 deletions

View file

@ -385,7 +385,7 @@ final class SupportPresenter extends OpenVKPresenter
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
$agent->setIcon($this->postParam("avatar"));
$agent->save();
$this->flashFail("succ", "Успех", "Профиль отредактирован.");
$this->flashFail("succ", tr("agent_profile_created"));
} else {
$agent = new SupportAgent;
$agent->setAgent($this->user->identity->getId());
@ -393,7 +393,7 @@ final class SupportPresenter extends OpenVKPresenter
$agent->setNumerate((int) $this->postParam("number") ?? NULL);
$agent->setIcon($this->postParam("avatar"));
$agent->save();
$this->flashFail("succ", "Успех", "Профиль создан. Теперь пользователи видят Ваши псевдоним и аватарку вместо стандартных аватарки и номера.");
$this->flashFail("succ", tr("agent_profile_created_1"), tr("agent_profile_created_2"));
}
}

View file

@ -55,7 +55,6 @@
<input name="name" type="text" value="{$agent->getCanonicalName()}" placeholder="{_helpdesk_agent} #777" />
<br/><br/>
<label for="number">{_helpdesk_show_number}?</label>
{$agent->isShowNumber()}
<select name="number">
<option value="1" n:attr="selected => $agent->isShowNumber() === 1 ? true : false">{_yes}</option>
<option value="0" n:attr="selected => $agent->isShowNumber() === 0 ? true : false">{_no}</option>
@ -71,7 +70,7 @@
</div>
</div>
{else}
<h4>Создать</h4>
<h4>{_create}</h4>
<br/>
<form method="post" action="/support/agent{$agent_id}/edit">
<label for="name">{_helpdesk_showing_name}</label>

View file

@ -19,7 +19,7 @@
<a n:attr="id => ($act === 'closed' ? 'act_tab_a' : 'ki')" href="?act=closed">{_support_closed}</a>
</div>
<div class="tab">
<a href="/support/agent{$thisUser->getId()}">Мой профиль</a>
<a href="/support/agent{$thisUser->getId()}">{_agent_profile}</a>
</div>
{/block}

View file

@ -44,7 +44,7 @@
</div>
{if $ticket->getType() === 1}
<div class="post-author" style="border-top: none; padding: 14px; margin-top: 14px;">
Если у Вас больше нет вопросов, Вы можете <a onClick="closeTicket()">закрыть этот тикет</a>.
{_you_can_close_this_ticket_1} <a onClick="closeTicket()">{_you_can_close_this_ticket_2}</a>.
</div>
{/if}
<div class="text" style="padding-top: 10px; border-bottom: #ECECEC solid 1px;">

View file

@ -913,6 +913,13 @@
"banned_in_support_1" = "Sorry, <b>$1</b>, but now you can't create tickets.";
"banned_in_support_2" = "And the reason for this is simple: <b>$1</b>. Unfortunately, this time we had to take away this opportunity from you forever.";
"you_can_close_this_ticket_1" = "If you have no more questions, you can ";
"you_can_close_this_ticket_2" = "close this ticket";
"agent_profile_created_1" = "Profile created";
"agent_profile_created_2" = "Now users see your customized name and avatar instead of the default ones.";
"agent_profile_edited" = "Profile edited";
"agent_profile" = "My Agent Card";
/* Invite */
"invite" = "Invite";

View file

@ -841,6 +841,12 @@
"ticket_changed_comment" = "Изменения вступят силу через несколько секунд.";
"banned_in_support_1" = "Извините, <b>$1</b>, но теперь вам нельзя создавать обращения.";
"banned_in_support_2" = "А причина этому проста: <b>$1</b>. К сожалению, на этот раз нам пришлось отобрать у вас эту возможность навсегда.";
"you_can_close_this_ticket_1" = "Если у Вас больше нет вопросов, Вы можете ";
"you_can_close_this_ticket_2" = "закрыть этот тикет";
"agent_profile_created_1" = "Профиль создан";
"agent_profile_created_2" = "Теперь пользователи видят Ваши псевдоним и аватарку вместо стандартных аватарки и номера.";
"agent_profile_edited" = "Профиль отредактирован";
"agent_profile" = "Карточка агента";
/* Invite */