mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
Оптимизация текстовок
This commit is contained in:
parent
d91949fb6d
commit
ba35f40cfb
|
@ -108,7 +108,7 @@ class ActionAdmin extends Action {
|
|||
* Загружаем переменные в шаблон
|
||||
*/
|
||||
$this->Viewer_Assign("aPlugins",$aPlugins);
|
||||
$this->Viewer_AddHtmlTitle($this->Lang_Get('plugins_administartion_title'));
|
||||
$this->Viewer_AddHtmlTitle($this->Lang_Get('admin.plugins.title'));
|
||||
/**
|
||||
* Устанавливаем шаблон вывода
|
||||
*/
|
||||
|
@ -123,14 +123,14 @@ class ActionAdmin extends Action {
|
|||
protected function SubmitManagePlugin($sPlugin,$sAction) {
|
||||
$this->Security_ValidateSendForm();
|
||||
if(!in_array($sAction,array('activate','deactivate'))) {
|
||||
$this->Message_AddError($this->Lang_Get('plugins_unknown_action'),$this->Lang_Get('error'),true);
|
||||
$this->Message_AddError($this->Lang_Get('admin.plugins.notices.unknown_action'),$this->Lang_Get('error'),true);
|
||||
Router::Location(Router::GetPath('plugins'));
|
||||
}
|
||||
/**
|
||||
* Активируем\деактивируем плагин
|
||||
*/
|
||||
if($bResult=$this->Plugin_Toggle($sPlugin,$sAction)) {
|
||||
$this->Message_AddNotice($this->Lang_Get('plugins_action_ok'),$this->Lang_Get('attention'),true);
|
||||
$this->Message_AddNotice($this->Lang_Get('admin.plugins.notices.action_ok'),$this->Lang_Get('attention'),true);
|
||||
} else {
|
||||
if(!($aMessages=$this->Message_GetErrorSession()) or !count($aMessages)) $this->Message_AddErrorSingle($this->Lang_Get('system_error'),$this->Lang_Get('error'),true);
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ class ModuleUser_EntityComplaint extends Entity {
|
|||
if ($oUserTarget=$this->User_GetUserById($sValue) and $this->getUserId()!=$oUserTarget->getId()) {
|
||||
return true;
|
||||
}
|
||||
return $this->Lang_Get('user_complaint_target_error');
|
||||
return $this->Lang_Get('report.notices.target_error');
|
||||
}
|
||||
/**
|
||||
* Валидация типа жалобы
|
||||
|
@ -67,7 +67,7 @@ class ModuleUser_EntityComplaint extends Entity {
|
|||
if (in_array($sValue,$aTypes)) {
|
||||
return true;
|
||||
}
|
||||
return $this->Lang_Get('user_complaint_type_error');
|
||||
return $this->Lang_Get('report.notices.type_error');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1514,6 +1514,11 @@ return array(
|
|||
'error' => 'Неверный формат e-mail',
|
||||
),
|
||||
),
|
||||
'geo' => array(
|
||||
'select_country' => 'Выберите страну',
|
||||
'select_region' => 'Укажите регион',
|
||||
'select_city' => 'Укажите город',
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
|
@ -1546,6 +1551,32 @@ return array(
|
|||
'standart_ul' => 'Ненумерованный список; каждый элемент списка задается тегом <li>, набор элементов списка помещайте в тег <ul>.',
|
||||
'standart_ol' => 'Нумерованный список; каждый элемент списка задается тегом <li>, набор элементов списка помещайте в тег <ol>.',
|
||||
),
|
||||
'toolbar' => array(
|
||||
'b' => 'Жирный',
|
||||
'i' => 'Курсив',
|
||||
'u' => 'Подчеркнутый',
|
||||
's' => 'Зачеркнутый',
|
||||
'url' => 'Вставить ссылку',
|
||||
'url_promt' => 'Введите ссылку',
|
||||
'image_promt' => 'Введите ссылку на изображение',
|
||||
'code' => 'Код',
|
||||
'video' => 'Видео',
|
||||
'video_promt' => 'Введите ссылку на видео',
|
||||
'image' => 'Изображение',
|
||||
'cut' => 'Кат',
|
||||
'quote' => 'Цитировать',
|
||||
'list' => 'Список',
|
||||
'list_ul' => 'UL LI',
|
||||
'list_ol' => 'OL LI',
|
||||
'list_li' => 'Пункт списка',
|
||||
'title' => 'Заголовок',
|
||||
'title_h4' => 'H4',
|
||||
'title_h5' => 'H5',
|
||||
'title_h6' => 'H6',
|
||||
'clear_tags' => 'Очистить от тегов',
|
||||
'user' => 'Вставить пользователя',
|
||||
'user_promt' => 'Введите логин пользователя',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
|
@ -1556,12 +1587,70 @@ return array(
|
|||
'admin' => array(
|
||||
'title' => 'Админка',
|
||||
'items' => array(
|
||||
'plugins' => 'Управление плагинами',
|
||||
'plugins' => '___admin.plugins.title___',
|
||||
),
|
||||
'install_plugin_admin' => 'Установить расширенную админ-панель',
|
||||
|
||||
// Страница администрирования плагинов
|
||||
'plugins' => array(
|
||||
'title' => 'Управление плагинами',
|
||||
|
||||
'plugin_name' => 'Название',
|
||||
'plugin_author' => 'Автор',
|
||||
'plugin_version' => 'Версия',
|
||||
'plugin_activate' => 'Активировать',
|
||||
'plugin_deactivate' => 'Деактивировать',
|
||||
'plugin_settings' => 'Настройки',
|
||||
'submit_delete' => '___common.remove___',
|
||||
|
||||
// Сообщения
|
||||
'notices' => array(
|
||||
'unknown_action' => 'Указано неизвестное действие',
|
||||
'action_ok' => 'Успешно выполнено',
|
||||
'activation_overlap' => 'Конфликт с активированным плагином. Ресурс %%resource%% переопределен на %%delegate%% плагином %%plugin%%.',
|
||||
'activation_overlap_inherit' => 'Конфликт с активированным плагином. Ресурс %%resource%% используется как наследник в плагине %%plugin%%.',
|
||||
'activation_file_not_found' => 'Файл плагина не найден',
|
||||
'activation_file_write_error' => 'Файл плагина не доступен для записи',
|
||||
'activation_version_error' => 'Для работы плагина необходимо ядро LiveStreet версии не ниже %%version%%',
|
||||
'activation_requires_error' => 'Для работы плагина необходим активированный плагин <b>%%plugin%%</b>',
|
||||
)
|
||||
),
|
||||
'install_plugin_admin' => 'Установить расширенную админ-панель'
|
||||
),
|
||||
|
||||
|
||||
/**
|
||||
* Жалобы
|
||||
*/
|
||||
'report' => array(
|
||||
'report' => 'Пожаловаться',
|
||||
|
||||
'form' => array(
|
||||
'title' => '___report.report___',
|
||||
|
||||
'fields' => array(
|
||||
'type' => array(
|
||||
'label' => 'Причина'
|
||||
),
|
||||
'text' => array(
|
||||
'label' => 'Текст жалобы'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
// TODO: Move to 'user'
|
||||
'type_list' => array(
|
||||
'spam' => 'Спам',
|
||||
'obscene' => 'Непристойное поведение',
|
||||
'other' => 'Другое',
|
||||
),
|
||||
|
||||
'notices' => array(
|
||||
'target_error' => 'Неверный пользователь для жалобы', // TODO: Move to 'user'
|
||||
'error_type' => 'Неверный тип жалобы', // TODO: Remove?
|
||||
'success' => 'Ваша жалоба отправлена администрации',
|
||||
)
|
||||
),
|
||||
|
||||
/**
|
||||
* Настройки
|
||||
*/
|
||||
|
@ -1587,48 +1676,8 @@ return array(
|
|||
'topic_favourite_tags_block' => 'Теги избранного',
|
||||
'topic_favourite_tags_block_all' => 'Все теги',
|
||||
'topic_favourite_tags_block_user' => 'Мои теги',
|
||||
'favourite_form_tags_button_show' => 'изменить свои теги',
|
||||
|
||||
/**
|
||||
* Жалобы на пользователя
|
||||
*/
|
||||
'user_complaint_title' => 'Пожаловаться',
|
||||
'user_complaint_type_title' => 'Причина',
|
||||
'user_complaint_text_title' => 'Текст жалобы',
|
||||
'user_complaint_target_error' => 'Неверный пользователь для жалобы',
|
||||
'user_complaint_type_error' => 'Неверный тип жалобы',
|
||||
'user_complaint_submit_result' => 'Ваша жалоба отправлена администрации',
|
||||
'user_complaint_type_list' => array(
|
||||
'spam'=>'Спам',
|
||||
'obscene'=>'Непристойное поведение',
|
||||
'other'=>'Другое',
|
||||
),
|
||||
/**
|
||||
* Панель
|
||||
*/
|
||||
'panel_b' => 'жирный',
|
||||
'panel_i' => 'курсив',
|
||||
'panel_u' => 'подчеркнутый',
|
||||
'panel_s' => 'зачеркнутый',
|
||||
'panel_url' => 'вставить ссылку',
|
||||
'panel_url_promt' => 'Введите ссылку',
|
||||
'panel_image_promt' => 'Введите ссылку на изображение',
|
||||
'panel_code' => 'код',
|
||||
'panel_video' => 'видео',
|
||||
'panel_video_promt' => 'Введите ссылку на видео',
|
||||
'panel_image' => 'изображение',
|
||||
'panel_cut' => 'кат',
|
||||
'panel_quote' => 'цитировать',
|
||||
'panel_list' => 'Список',
|
||||
'panel_list_ul' => 'UL LI',
|
||||
'panel_list_ol' => 'OL LI',
|
||||
'panel_list_li' => 'пункт списка',
|
||||
'panel_title' => 'Заголовок',
|
||||
'panel_title_h4' => 'H4',
|
||||
'panel_title_h5' => 'H5',
|
||||
'panel_title_h6' => 'H6',
|
||||
'panel_clear_tags' => 'очистить от тегов',
|
||||
'panel_user' => 'вставить пользователя',
|
||||
'panel_user_promt' => 'Введите логин пользователя',
|
||||
/**
|
||||
* Блоки
|
||||
*/
|
||||
|
@ -1652,11 +1701,7 @@ return array(
|
|||
'block_stream_topics_no' => 'Нет топиков.',
|
||||
'block_stream_comments' => 'Комментарии',
|
||||
'block_stream_comments_no' => 'Нет комментариев.',
|
||||
'block_stream_comments_all' => 'Весь эфир',
|
||||
'block_friends' => 'Выбрать получателей из списка друзей',
|
||||
'block_friends_check' => 'Отметить всех',
|
||||
'block_friends_uncheck' => 'Снять отметку',
|
||||
'block_friends_empty' => 'Список ваших друзей пуст',
|
||||
'block_category_blog' => 'Категории',
|
||||
'block_category_blog_all' => 'Все',
|
||||
'block_blog_navigator' => 'Навигация по блогам',
|
||||
|
@ -1697,43 +1742,12 @@ return array(
|
|||
'uploadimg_link_submit_load' => 'Загрузить',
|
||||
'uploadimg_link_submit_paste' => 'Вставить как ссылку',
|
||||
'uploadimg_title' => 'Описание',
|
||||
|
||||
/**
|
||||
* Страница администрирования плагинов
|
||||
*/
|
||||
'plugins_administartion_title' => 'Администрирование плагинов',
|
||||
'plugins_plugin_name' => 'Название',
|
||||
'plugins_plugin_author' => 'Автор',
|
||||
'plugins_plugin_version' => 'Версия',
|
||||
'plugins_plugin_action' => '',
|
||||
'plugins_plugin_activate' => 'Активировать',
|
||||
'plugins_plugin_deactivate' => 'Деактивировать',
|
||||
'plugins_plugin_settings' => 'Настройки',
|
||||
'plugins_unknown_action' => 'Указано неизвестное действие',
|
||||
'plugins_action_ok' => 'Успешно выполнено',
|
||||
'plugins_activation_overlap' => 'Конфликт с активированным плагином. Ресурс %%resource%% переопределен на %%delegate%% плагином %%plugin%%.',
|
||||
'plugins_activation_overlap_inherit' => 'Конфликт с активированным плагином. Ресурс %%resource%% используется как наследник в плагине %%plugin%%.',
|
||||
'plugins_activation_file_not_found' => 'Файл плагина не найден',
|
||||
'plugins_activation_file_write_error' => 'Файл плагина не доступен для записи',
|
||||
'plugins_activation_version_error' => 'Для работы плагина необходимо ядро LiveStreet версии не ниже %%version%%',
|
||||
'plugins_activation_requires_error' => 'Для работы плагина необходим активированный плагин <b>%%plugin%%</b>',
|
||||
'plugins_submit_delete' => 'Удалить плагины',
|
||||
/**
|
||||
* Toolbar
|
||||
*/
|
||||
'toolbar_scrollup_go' => 'Вверх',
|
||||
'toolbar_topic_next' => 'Следующий топик',
|
||||
'toolbar_topic_prev' => 'Предыдущий топик',
|
||||
/**
|
||||
* География
|
||||
*/
|
||||
'geo_select_country' => 'Выберите страну',
|
||||
'geo_select_region' => 'Укажите регион',
|
||||
'geo_select_city' => 'Укажите город',
|
||||
/**
|
||||
* Избранное, общее
|
||||
*/
|
||||
'favourite_form_tags_button_show' => 'изменить свои теги',
|
||||
/**
|
||||
* Создание
|
||||
*/
|
||||
|
@ -1835,4 +1849,5 @@ return array(
|
|||
'draft_declension' => 'черновик;черновика;черновиков',
|
||||
'blog_menu_create' => 'Блог',
|
||||
'user_search_filter_all' => 'Все',
|
||||
'user_complaint_title' => 'Пожаловаться',
|
||||
);
|
||||
|
|
|
@ -1,25 +1,29 @@
|
|||
{extends file='layouts/layout.base.tpl'}
|
||||
{extends 'layouts/layout.base.tpl'}
|
||||
|
||||
{block name='layout_options'}
|
||||
{block 'layout_options'}
|
||||
{$bNoSidebar = true}
|
||||
{/block}
|
||||
|
||||
{block name='layout_page_title'}<a href="{router page='admin'}">{lang name='admin.title'}</a> <span>»</span> {lang name='admin.items.plugins'}{/block}
|
||||
{block 'layout_page_title'}
|
||||
<a href="{router page='admin'}">{lang name='admin.title'}</a>
|
||||
<span>»</span>
|
||||
{lang name='admin.items.plugins'}
|
||||
{/block}
|
||||
|
||||
{block name='layout_content'}
|
||||
{block 'layout_content'}
|
||||
<form action="{router page='admin'}plugins/" method="post" id="form_plugins_list">
|
||||
<table class="table table-plugins">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cell-checkbox"><input type="checkbox" name="" onclick="ls.tools.checkAll('form_plugins_checkbox', this, true);" /></th>
|
||||
<th>{$aLang.plugins_plugin_name}</th>
|
||||
<th>{$aLang.plugins_plugin_version}</th>
|
||||
<th>{$aLang.plugins_plugin_author}</th>
|
||||
<th>{$aLang.plugins_plugin_settings}</th>
|
||||
<th>{$aLang.admin.plugins.plugin_name}</th>
|
||||
<th>{$aLang.admin.plugins.plugin_version}</th>
|
||||
<th>{$aLang.admin.plugins.plugin_author}</th>
|
||||
<th>{$aLang.admin.plugins.plugin_settings}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
{foreach $aPlugins as $aPlugin}
|
||||
<tr {if $aPlugin.is_active}class="active"{/if}>
|
||||
|
@ -32,11 +36,11 @@
|
|||
<td>
|
||||
{$aPlugin.property->author->data}<br />
|
||||
{$aPlugin.property->homepage}
|
||||
</td>
|
||||
</td>
|
||||
<td>
|
||||
{if $aPlugin.property->settings != ""}
|
||||
{if $aPlugin.is_active}
|
||||
<a href="{$aPlugin.property->settings}">{$aLang.plugins_plugin_settings}</a>
|
||||
<a href="{$aPlugin.property->settings}">{$aLang.admin.plugins.plugin_settings}</a>
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
|
@ -44,9 +48,9 @@
|
|||
</td>
|
||||
<td align="center">
|
||||
{if $aPlugin.is_active}
|
||||
<a href="{router page='admin'}plugins/?plugin={$aPlugin.code}&action=deactivate&security_ls_key={$LIVESTREET_SECURITY_KEY}" class="button">{$aLang.plugins_plugin_deactivate}</a>
|
||||
<a href="{router page='admin'}plugins/?plugin={$aPlugin.code}&action=deactivate&security_ls_key={$LIVESTREET_SECURITY_KEY}" class="button">{$aLang.admin.plugins.plugin_deactivate}</a>
|
||||
{else}
|
||||
<a href="{router page='admin'}plugins/?plugin={$aPlugin.code}&action=activate&security_ls_key={$LIVESTREET_SECURITY_KEY}" class="button button-primary">{$aLang.plugins_plugin_activate}</a>
|
||||
<a href="{router page='admin'}plugins/?plugin={$aPlugin.code}&action=activate&security_ls_key={$LIVESTREET_SECURITY_KEY}" class="button button-primary">{$aLang.admin.plugins.plugin_activate}</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -54,11 +58,11 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
<input type="submit"
|
||||
name="submit_plugins_del"
|
||||
value="{$aLang.plugins_submit_delete}"
|
||||
class="button"
|
||||
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
||||
<input type="submit"
|
||||
name="submit_plugins_del"
|
||||
value="{lang name='admin.plugins.submit_delete'}"
|
||||
class="button"
|
||||
onclick="return (jQuery('.form_plugins_checkbox:checked').length==0)?false:confirm('{$aLang.common.remove_confirm}');" />
|
||||
</form>
|
||||
{/block}
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{block 'field_input'}
|
||||
<p class="mb-15"><select class="js-geo-country width-200" name="{$smarty.local.sName}_country">
|
||||
<option value="">{$aLang.geo_select_country}</option>
|
||||
<option value="">{$aLang.field.geo.select_country}</option>
|
||||
|
||||
{if $aGeoCountries}
|
||||
{foreach $aGeoCountries as $oGeoCountry}
|
||||
|
@ -18,7 +18,7 @@
|
|||
</select></p>
|
||||
|
||||
<p class="mb-15"><select class="js-geo-region width-200" name="{$smarty.local.sName}_region" {if ! $oFieldGeoTarget or ! $oFieldGeoTarget->getCountryId()}style="display:none;"{/if}>
|
||||
<option value="">{$aLang.geo_select_region}</option>
|
||||
<option value="">{$aLang.field.geo.select_region}</option>
|
||||
|
||||
{if $aGeoRegions}
|
||||
{foreach $aGeoRegions as $oGeoRegion}
|
||||
|
@ -28,7 +28,7 @@
|
|||
</select></p>
|
||||
|
||||
<p><select class="js-geo-city width-200" name="{$smarty.local.sName}_city" {if ! $oFieldGeoTarget or ! $oFieldGeoTarget->getRegionId()}style="display:none;"{/if}>
|
||||
<option value="">{$aLang.geo_select_city}</option>
|
||||
<option value="">{$aLang.field.geo.select_city}</option>
|
||||
|
||||
{if $aGeoCities}
|
||||
{foreach $aGeoCities as $oGeoCity}
|
||||
|
|
|
@ -6,43 +6,42 @@
|
|||
|
||||
{extends 'components/modal/modal.tpl'}
|
||||
|
||||
{block name='modal_id'}modal-complaint-user{/block}
|
||||
{block name='modal_class'}modal-complaint-user js-modal-default{/block}
|
||||
{block name='modal_title'}{$aLang.user_complaint_title}{/block}
|
||||
{block 'modal_id'}modal-complaint-user{/block}
|
||||
{block 'modal_class'}modal-complaint-user js-modal-default{/block}
|
||||
{block 'modal_title'}{lang name='report.form.title'}{/block}
|
||||
|
||||
{block name='modal_content'}
|
||||
{block 'modal_content'}
|
||||
<form action="" method="post" onsubmit="return false;" id="form-complaint-user">
|
||||
{foreach Config::Get('module.user.complaint_type') as $sType}
|
||||
{$aTypes[] = [
|
||||
'value' => $sType,
|
||||
'text' => $aLang.user_complaint_type_list.{$sType}
|
||||
'value' => $sType,
|
||||
'text' => $aLang.report.type_list.{$sType}
|
||||
]}
|
||||
{/foreach}
|
||||
|
||||
{include file='components/field/field.select.tpl'
|
||||
sName = 'type'
|
||||
sLabel = $aLang.user_complaint_type_title
|
||||
sClasses = 'width-full'
|
||||
aItems = $aTypes }
|
||||
{include 'components/field/field.select.tpl'
|
||||
sName = 'type'
|
||||
sLabel = {lang name='report.form.fields.type.label'}
|
||||
sClasses = 'width-full'
|
||||
aItems = $aTypes }
|
||||
|
||||
{include file='components/field/field.textarea.tpl'
|
||||
{include 'components/field/field.textarea.tpl'
|
||||
sName = 'text'
|
||||
iRows = 5
|
||||
sLabel = $aLang.user_complaint_text_title
|
||||
sLabel = {lang name='report.form.fields.text.label'}
|
||||
sClasses = 'width-full'}
|
||||
|
||||
{* Каптча *}
|
||||
{if Config::Get('module.user.complaint_captcha')}
|
||||
{include file='components/field/field.captcha.tpl'
|
||||
sCaptchaName = 'complaint_user'
|
||||
sName = 'captcha'
|
||||
sLabel = $aLang.registration_captcha}
|
||||
{include 'components/field/field.captcha.tpl'
|
||||
sCaptchaName = 'complaint_user'
|
||||
sName = 'captcha'}
|
||||
{/if}
|
||||
|
||||
{include file='components/field/field.hidden.tpl' sName='user_id' sValue=$_aRequest.user_id}
|
||||
{include 'components/field/field.hidden.tpl' sName='user_id' sValue=$_aRequest.user_id}
|
||||
</form>
|
||||
{/block}
|
||||
|
||||
{block name='modal_footer_begin'}
|
||||
{block 'modal_footer_begin'}
|
||||
<button type="submit" class="button button-primary" onclick="ls.user.addComplaint('#form-complaint-user');">{$aLang.user_complaint_title}</button>
|
||||
{/block}
|
Loading…
Reference in a new issue