1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Перенос основных текстовок в фреймворк

This commit is contained in:
Mzhelskiy Maxim 2015-03-21 22:36:38 +07:00
parent 178670f6f4
commit c2f94fd72e
19 changed files with 314 additions and 2097 deletions

View file

@ -125,7 +125,7 @@ class ActionAdmin extends Action
{
$this->Security_ValidateSendForm();
if (!in_array($sAction, array('activate', 'deactivate', 'remove', 'apply_update'))) {
$this->Message_AddError($this->Lang_Get('admin.plugins.notices.unknown_action'), $this->Lang_Get('error'),
$this->Message_AddError($this->Lang_Get('admin.plugins.notices.unknown_action'), $this->Lang_Get('common.error.error'),
true);
Router::Location(Router::GetPath('admin/plugins'));
}
@ -144,11 +144,11 @@ class ActionAdmin extends Action
$bResult = true;
}
if ($bResult) {
$this->Message_AddNotice($this->Lang_Get('admin.plugins.notices.action_ok'), $this->Lang_Get('attention'),
$this->Message_AddNotice($this->Lang_Get('admin.plugins.notices.action_ok'), $this->Lang_Get('common.attention'),
true);
} else {
if (!($aMessages = $this->Message_GetErrorSession()) or !count($aMessages)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'), true);
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'), true);
}
}
/**

View file

@ -288,10 +288,10 @@ class ActionAjax extends Action
$this->Viewer_AssignAjax('sPollItem', $oViewer->Fetch("component@poll.manage.item"));
return true;
} else {
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oPoll->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oPoll->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -333,10 +333,10 @@ class ActionAjax extends Action
$this->Viewer_AssignAjax('iPollId', $oPoll->getId());
return true;
} else {
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oPoll->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oPoll->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -374,7 +374,7 @@ class ActionAjax extends Action
if ($oPoll->Delete()) {
return true;
} else {
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('common.error.error'));
}
}
@ -513,7 +513,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -539,8 +539,8 @@ class ActionAjax extends Action
ModuleMedia::TYPE_CHECK_ALLOW_ADD,
array('user' => $this->oUserCurrent))
) {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
return false;
}
} else {
@ -551,8 +551,8 @@ class ActionAjax extends Action
if (true !== $res = $this->Media_CheckTarget($sTargetType, null, ModuleMedia::TYPE_CHECK_ALLOW_ADD,
array('user' => $this->oUserCurrent))
) {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
return false;
}
}
@ -568,8 +568,8 @@ class ActionAjax extends Action
);
$this->Viewer_AssignAjax('sText', $this->Media_BuildCodeForEditor($mResult, $aParams));
} else {
$this->Message_AddError(is_string($mResult) ? $mResult : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($mResult) ? $mResult : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
}
} else {
/**
@ -590,7 +590,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$aAllowData = array('title');
@ -609,7 +609,7 @@ class ActionAjax extends Action
$oMedia->setDataOne($sName, $sValue);
$oMedia->Update();
} else {
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('system_error'));
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'));
}
}
@ -619,7 +619,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$sId = getRequestStr('id');
@ -631,7 +631,7 @@ class ActionAjax extends Action
) {
$oMedia->Delete();
} else {
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('system_error'));
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'));
}
}
@ -641,7 +641,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$sId = getRequestStr('id');
@ -685,10 +685,10 @@ class ActionAjax extends Action
if (true === $res2 = $this->Media_CreateFilePreview($oMedia, $oTarget)) {
$this->Viewer_AssignAjax('bUnsetOther', true);
} else {
$this->Message_AddErrorSingle(is_string($res2) ? $res2 : $this->Lang_Get('system_error'));
$this->Message_AddErrorSingle(is_string($res2) ? $res2 : $this->Lang_Get('common.error.system.base'));
}
} else {
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('system_error'));
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'));
}
}
@ -698,7 +698,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$sId = getRequestStr('id');
@ -738,7 +738,7 @@ class ActionAjax extends Action
*/
$this->Media_RemoveFilePreview($oMedia, $oTarget);
} else {
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('system_error'));
$this->Message_AddErrorSingle(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'));
}
}
@ -748,7 +748,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
@ -765,7 +765,7 @@ class ActionAjax extends Action
*/
if ($sId) {
if (!$this->Media_CheckTarget($sType, $sId, ModuleMedia::TYPE_CHECK_ALLOW_VIEW_LIST)) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return;
}
$aMediaItems = $this->Media_GetMediaByTarget($sType, $sId);
@ -801,7 +801,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
@ -901,7 +901,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -922,8 +922,8 @@ class ActionAjax extends Action
if (true !== $res = $this->Media_CheckTarget($sTargetType, $sTargetId, ModuleMedia::TYPE_CHECK_ALLOW_ADD,
array('user' => $this->oUserCurrent))
) {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
return false;
}
} else {
@ -934,8 +934,8 @@ class ActionAjax extends Action
if (true !== $res = $this->Media_CheckTarget($sTargetType, null, ModuleMedia::TYPE_CHECK_ALLOW_ADD,
array('user' => $this->oUserCurrent))
) {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
return false;
}
}
@ -958,8 +958,8 @@ class ActionAjax extends Action
$this->Viewer_AssignAjax('sTemplateFile', $sTemplateFile);
} else {
$this->Message_AddError(is_string($mResult) ? $mResult : $this->Lang_Get('system_error'),
$this->Lang_Get('error'));
$this->Message_AddError(is_string($mResult) ? $mResult : $this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'));
}
}
@ -1112,7 +1112,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1168,7 +1168,7 @@ class ActionAjax extends Action
$this->Hook_Run("vote_{$oTopicCommentVote->getTargetType()}_after",
array('oTarget' => $oComment, 'oVote' => $oTopicCommentVote, 'iValue' => $iValue));
$this->Message_AddNoticeSingle($this->Lang_Get('vote.notices.success'), $this->Lang_Get('attention'));
$this->Message_AddNoticeSingle($this->Lang_Get('vote.notices.success'), $this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('iRating', $oComment->getRating());
/**
* Добавляем событие в ленту
@ -1190,7 +1190,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1247,10 +1247,10 @@ class ActionAjax extends Action
$this->Hook_Run("vote_{$oTopicVote->getTargetType()}_after",
array('oTarget' => $oTopic, 'oVote' => $oTopicVote, 'iValue' => $iValue));
if ($iValue) {
$this->Message_AddNoticeSingle($this->Lang_Get('vote.notices.success'), $this->Lang_Get('attention'));
$this->Message_AddNoticeSingle($this->Lang_Get('vote.notices.success'), $this->Lang_Get('common.attention'));
} else {
$this->Message_AddNoticeSingle($this->Lang_Get('vote.notices.success_abstain'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
}
$this->Viewer_AssignAjax('iRating', $oTopic->getRating());
/**
@ -1258,7 +1258,7 @@ class ActionAjax extends Action
*/
$this->Stream_write($oTopicVote->getVoterId(), 'vote_topic', $oTopic->getId());
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
}
@ -1273,7 +1273,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1324,7 +1324,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1351,7 +1351,7 @@ class ActionAjax extends Action
*/
if (!$oTopic->getPublish()) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.add.notices.error_favourite_draft'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return;
}
/**
@ -1370,7 +1370,7 @@ class ActionAjax extends Action
$oTopic->setCountFavourite($oTopic->getCountFavourite() + 1);
if ($this->Topic_AddFavouriteTopic($oFavouriteTopicNew) and $this->Topic_UpdateTopic($oTopic)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.add_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', true);
$this->Viewer_AssignAjax('iCount', $oTopic->getCountFavourite());
} else {
@ -1379,18 +1379,18 @@ class ActionAjax extends Action
}
if (!$oFavouriteTopic and !$iType) {
$this->Message_AddErrorSingle($this->Lang_Get('favourite.notices.already_removed'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return;
}
if ($oFavouriteTopic and $iType) {
$this->Message_AddErrorSingle($this->Lang_Get('favourite.notices.already_added'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('favourite.notices.already_added'), $this->Lang_Get('common.error.error'));
return;
}
if ($oFavouriteTopic and !$iType) {
$oTopic->setCountFavourite($oTopic->getCountFavourite() - 1);
if ($this->Topic_DeleteFavouriteTopic($oFavouriteTopic) and $this->Topic_UpdateTopic($oTopic)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.remove_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', false);
$this->Viewer_AssignAjax('iCount', $oTopic->getCountFavourite());
} else {
@ -1409,7 +1409,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1448,7 +1448,7 @@ class ActionAjax extends Action
$oComment->setCountFavourite($oComment->getCountFavourite() + 1);
if ($this->Comment_AddFavouriteComment($oFavouriteCommentNew) and $this->Comment_UpdateComment($oComment)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.add_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', true);
$this->Viewer_AssignAjax('iCount', $oComment->getCountFavourite());
} else {
@ -1465,7 +1465,7 @@ class ActionAjax extends Action
$oComment->setCountFavourite($oComment->getCountFavourite() - 1);
if ($this->Comment_DeleteFavouriteComment($oFavouriteComment) and $this->Comment_UpdateComment($oComment)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.remove_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', false);
$this->Viewer_AssignAjax('iCount', $oComment->getCountFavourite());
} else {
@ -1484,7 +1484,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1521,7 +1521,7 @@ class ActionAjax extends Action
);
if ($this->Talk_AddFavouriteTalk($oFavouriteTalkNew)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.add_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', true);
} else {
return $this->EventErrorDebug();
@ -1541,7 +1541,7 @@ class ActionAjax extends Action
if ($oFavouriteTalk and !$iType) {
if ($this->Talk_DeleteFavouriteTalk($oFavouriteTalk)) {
$this->Message_AddNoticeSingle($this->Lang_Get('favourite.notices.remove_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', false);
} else {
return $this->EventErrorDebug();
@ -1564,7 +1564,7 @@ class ActionAjax extends Action
$this->Viewer_AssignAjax('sText', $sTextResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('activity.block_recent.comments_empty'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
return;
}
}
@ -1583,7 +1583,7 @@ class ActionAjax extends Action
$this->Viewer_AssignAjax('sText', $sTextResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('activity.block_recent.topics_empty'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
return;
}
}
@ -1605,7 +1605,7 @@ class ActionAjax extends Action
$sTextResult = $oViewer->Fetch("component@blog.top");
$this->Viewer_AssignAjax('sText', $sTextResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
}
@ -1621,7 +1621,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1633,7 +1633,7 @@ class ActionAjax extends Action
$sTextResult = $oViewer->Fetch("component@blog.top");
$this->Viewer_AssignAjax('sText', $sTextResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.blogs.self_empty'), $this->Lang_Get('attention'));
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.blogs.self_empty'), $this->Lang_Get('common.attention'));
return;
}
}
@ -1649,7 +1649,7 @@ class ActionAjax extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1661,7 +1661,7 @@ class ActionAjax extends Action
$sTextResult = $oViewer->Fetch("component@blog.top");
$this->Viewer_AssignAjax('sText', $sTextResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.blogs.joined_empty'), $this->Lang_Get('attention'));
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.blogs.joined_empty'), $this->Lang_Get('common.attention'));
return;
}
}
@ -1707,7 +1707,7 @@ class ActionAjax extends Action
}
$this->Viewer_AssignAjax('aBlogs', $aResult);
} else {
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.navigator.empty'), $this->Lang_Get('attention'));
$this->Message_AddErrorSingle($this->Lang_Get('blog.blocks.navigator.empty'), $this->Lang_Get('common.attention'));
return;
}
}
@ -1804,7 +1804,7 @@ class ActionAjax extends Action
* Есть права на удаление комментария?
*/
if (!$this->ACL_CanDeleteComment($this->oUserCurrent)) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1820,7 +1820,7 @@ class ActionAjax extends Action
$oComment->setDelete(($oComment->getDelete() + 1) % 2);
$this->Hook_Run('comment_delete_before', array('oComment' => $oComment));
if (!$this->Comment_UpdateCommentStatus($oComment)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
$this->Hook_Run('comment_delete_after', array('oComment' => $oComment));
@ -1841,7 +1841,7 @@ class ActionAjax extends Action
/**
* Показываем сообщение и передаем переменные в ajax ответ
*/
$this->Message_AddNoticeSingle($sMsg, $this->Lang_Get('attention'));
$this->Message_AddNoticeSingle($sMsg, $this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('state', $bState);
$this->Viewer_AssignAjax('toggle_text', $sTextToggle);
}
@ -1860,7 +1860,7 @@ class ActionAjax extends Action
return $this->EventErrorDebug();
}
if (!$oComment->isAllowEdit()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return;
}
$sText = $oComment->getTextSource() ? $oComment->getTextSource() : $oComment->getText();
@ -1881,7 +1881,7 @@ class ActionAjax extends Action
return $this->EventErrorDebug();
}
if (!$oComment->isAllowEdit()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return;
}
@ -1891,7 +1891,7 @@ class ActionAjax extends Action
*/
if (!$this->Validate_Validate('string', $sText, array('min' => 2, 'max' => 10000, 'allowEmpty' => false))) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.error_text'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return;
}
@ -1978,10 +1978,10 @@ class ActionAjax extends Action
// Добавляем событие в ленту
$this->Stream_Write($oWall->getUserId(), 'add_wall', $oWall->getId());
} else {
$this->Message_AddError($this->Lang_Get('common.error.add'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.add'), $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oWall->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oWall->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}

View file

@ -87,7 +87,7 @@ class ActionAuth extends Action
* Логин и пароль являются строками?
*/
if (!is_string(getRequest('login')) or !is_string(getRequest('password'))) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return;
}
/**
@ -205,7 +205,7 @@ class ActionAuth extends Action
return;
}
}
$this->Message_AddError($this->Lang_Get('auth.notices.error_bad_email'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('auth.notices.error_bad_email'), $this->Lang_Get('common.error.error'));
}
/**
@ -244,7 +244,7 @@ class ActionAuth extends Action
}
}
$this->Message_AddErrorSingle($this->Lang_Get('auth.reset.alerts.error_bad_code'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return Router::Action('error');
}
}
@ -402,7 +402,7 @@ class ActionAuth extends Action
$this->Message_AddNoticeSingle($this->Lang_Get('auth.registration.notices.success'));
}
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return;
}
} else {
@ -472,7 +472,7 @@ class ActionAuth extends Action
*/
if ($oUser and $oUser->getActivate()) {
$this->Message_AddErrorSingle($this->Lang_Get('auth.registration.notices.error_reactivate'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -480,7 +480,7 @@ class ActionAuth extends Action
*/
if ($bError) {
$this->Message_AddErrorSingle($this->Lang_Get('auth.registration.notices.error_code'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -496,7 +496,7 @@ class ActionAuth extends Action
$this->DropInviteRegister();
return;
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return Router::Action('error');
}
}
@ -560,7 +560,7 @@ class ActionAuth extends Action
if ($this->Invite_CheckCode(getRequestStr('invite_code'), ModuleInvite::INVITE_TYPE_CODE)) {
Router::Location($this->Invite_GetReferralLink(null, getRequestStr('invite_code')));
} else {
$this->Message_AddError($this->Lang_Get('auth.invite.alerts.error_code'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('auth.invite.alerts.error_code'), $this->Lang_Get('common.error.error'));
}
}
}

View file

@ -225,7 +225,7 @@ class ActionBlog extends Action
* Проверяем авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -293,7 +293,7 @@ class ActionBlog extends Action
$this->Stream_write($oBlog->getOwnerId(), 'add_blog', $oBlog->getId());
Router::Location($oBlog->getUrlFull());
} else {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
}
@ -325,7 +325,7 @@ class ActionBlog extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -396,7 +396,7 @@ class ActionBlog extends Action
Router::Location($oBlog->getUrlFull());
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
} else {
@ -434,7 +434,7 @@ class ActionBlog extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -456,7 +456,7 @@ class ActionBlog extends Action
foreach ($aUserRank as $sUserId => $sRank) {
$sRank = (string)$sRank;
if (!($oBlogUser = $this->Blog_GetBlogUserByBlogIdAndUserId($oBlog->getId(), $sUserId))) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
break;
}
/**
@ -564,7 +564,7 @@ class ActionBlog extends Action
* Проверяем есть ли название блога
*/
if (!func_check(getRequestStr('blog_title'), 'text', 2, 200)) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.title.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.title.error'), $this->Lang_Get('common.error.error'));
$bOk = false;
} else {
/**
@ -573,7 +573,7 @@ class ActionBlog extends Action
if ($oBlogExists = $this->Blog_GetBlogByTitle(getRequestStr('blog_title'))) {
if (!$oBlog or $oBlog->getId() != $oBlogExists->getId()) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.title.error_unique'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
$bOk = false;
}
}
@ -586,7 +586,7 @@ class ActionBlog extends Action
$blogUrl = preg_replace("/\s+/", '_', getRequestStr('blog_url'));
$_REQUEST['blog_url'] = $blogUrl;
if (!func_check(getRequestStr('blog_url'), 'login', 2, 50)) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.url.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.url.error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
}
@ -595,7 +595,7 @@ class ActionBlog extends Action
*/
if (in_array(getRequestStr('blog_url'), $this->aBadBlogUrl)) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.url.error_badword') . ' ' . join(',',
$this->aBadBlogUrl), $this->Lang_Get('error'));
$this->aBadBlogUrl), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
@ -603,7 +603,7 @@ class ActionBlog extends Action
*/
if ($oBlogExists = $this->Blog_GetBlogByUrl(getRequestStr('blog_url'))) {
if (!$oBlog or $oBlog->getId() != $oBlogExists->getId()) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.url.error_unique'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.url.error_unique'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
}
@ -611,21 +611,21 @@ class ActionBlog extends Action
* Проверяем есть ли описание блога
*/
if (!func_check(getRequestStr('blog_description'), 'text', 10, 3000)) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.description.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.description.error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
* Проверяем доступные типы блога для создания
*/
if (!$this->Blog_IsAllowBlogType(getRequestStr('blog_type'))) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.type.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.type.error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
* Преобразуем ограничение по рейтингу в число
*/
if (!func_check(getRequestStr('blog_limit_rating_topic'), 'float')) {
$this->Message_AddError($this->Lang_Get('blog.add.fields.rating.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('blog.add.fields.rating.error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
@ -633,7 +633,7 @@ class ActionBlog extends Action
*/
if (Config::Get('module.blog.category_allow')) {
if (true !== ($mRes = $oBlog->category->ValidateCategoriesCheck(getRequest('category')))) {
$this->Message_AddError($mRes, $this->Lang_Get('error'));
$this->Message_AddError($mRes, $this->Lang_Get('common.error.error'));
$bOk = false;
}
}
@ -1113,21 +1113,21 @@ class ActionBlog extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
* Проверяем топик
*/
if (!$oTopic) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return false;
}
/**
* Права на просмотр топика
*/
if (!$this->ACL_IsAllowShowTopic($oTopic, $this->oUserCurrent)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
@ -1142,7 +1142,7 @@ class ActionBlog extends Action
*/
if ($oTopic->getForbidComment()) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.not_allowed'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
@ -1150,7 +1150,7 @@ class ActionBlog extends Action
*/
if (!func_check($sText, 'text', 2, 10000)) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.error_text'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
$bOk = false;
}
@ -1181,7 +1181,7 @@ class ActionBlog extends Action
* Проверям на какой коммент отвечаем
*/
if (!func_check($sParentId, 'id')) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
@ -1190,14 +1190,14 @@ class ActionBlog extends Action
* Проверяем существует ли комментарий на который отвечаем
*/
if (!($oCommentParent)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
* Проверяем из одного топика ли новый коммент и тот на который отвечаем
*/
if ($oCommentParent->getTargetId() != $oTopic->getId()) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
} else {
@ -1210,7 +1210,7 @@ class ActionBlog extends Action
if ($this->Comment_GetCommentUnique($oTopic->getId(), 'topic', $this->oUserCurrent->getId(), $sParentId,
md5($sText))
) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.spam'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.spam'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
@ -1333,7 +1333,7 @@ class ActionBlog extends Action
$this->Stream_write($oCommentNew->getUserId(), 'add_comment', $oCommentNew->getId(),
$oTopic->getPublish() && $oTopic->getBlog()->getType() != 'close');
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
}
@ -1351,7 +1351,7 @@ class ActionBlog extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1440,7 +1440,7 @@ class ActionBlog extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$this->oUserCurrent = $this->User_GetUserCurrent();
@ -1481,7 +1481,7 @@ class ActionBlog extends Action
if (!$oUser = $this->User_GetUserByLogin($sUser) or $oUser->getActivate() != 1) {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user.notices.not_found',
array('login' => htmlspecialchars($sUser))),
'user_login' => htmlspecialchars($sUser)
@ -1494,7 +1494,7 @@ class ActionBlog extends Action
if ($oUser->getId() == $oBlog->getOwnerId()) {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('blog.invite.notices.add_self')
);
continue;
@ -1516,7 +1516,7 @@ class ActionBlog extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('blog.invite.notices.add',
array('login' => htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -1527,8 +1527,8 @@ class ActionBlog extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsg' => $this->Lang_Get('system_error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('common.error.system.base'),
'user_login' => htmlspecialchars($sUser)
);
}
@ -1551,11 +1551,11 @@ class ActionBlog extends Action
array('login' => htmlspecialchars($sUser)));
break;
default:
$sErrorMessage = $this->Lang_Get('system_error');
$sErrorMessage = $this->Lang_Get('common.error.system.base');
}
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $sErrorMessage,
'user_login' => htmlspecialchars($sUser)
);
@ -1584,7 +1584,7 @@ class ActionBlog extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$this->oUserCurrent = $this->User_GetUserCurrent();
@ -1617,7 +1617,7 @@ class ActionBlog extends Action
if ($oBlogUser->getUserRole() == ModuleBlog::BLOG_USER_ROLE_INVITE) {
$this->SendBlogInvite($oBlog, $oUser);
$this->Message_AddNoticeSingle($this->Lang_Get('blog.invite.notices.add',
array('login' => $oUser->getLogin())), $this->Lang_Get('attention'));
array('login' => $oUser->getLogin())), $this->Lang_Get('common.attention'));
} else {
return $this->EventErrorDebug();
}
@ -1638,7 +1638,7 @@ class ActionBlog extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$this->oUserCurrent = $this->User_GetUserCurrent();
@ -1670,7 +1670,7 @@ class ActionBlog extends Action
*/
$this->Blog_DeleteRelationBlogUser($oBlogUser);
$this->Message_AddNoticeSingle($this->Lang_Get('blog.invite.notices.remove',
array('login' => $oUser->getLogin())), $this->Lang_Get('attention'));
array('login' => $oUser->getLogin())), $this->Lang_Get('common.attention'));
} else {
return $this->EventErrorDebug();
}
@ -1771,14 +1771,14 @@ class ActionBlog extends Action
}
if ($oBlogUser->getUserRole() > ModuleBlog::BLOG_USER_ROLE_GUEST) {
$sMessage = $this->Lang_Get('blog.invite.alerts.already_joined');
$this->Message_AddError($sMessage, $this->Lang_Get('error'), true);
$this->Message_AddError($sMessage, $this->Lang_Get('common.error.error'), true);
Router::Location(Router::GetPath('talk'));
return;
}
if (!in_array($oBlogUser->getUserRole(),
array(ModuleBlog::BLOG_USER_ROLE_INVITE, ModuleBlog::BLOG_USER_ROLE_REJECT))
) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'), true);
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'), true);
Router::Location(Router::GetPath('talk'));
return;
}
@ -1787,7 +1787,7 @@ class ActionBlog extends Action
*/
$oBlogUser->setUserRole(($sAction == 'accept') ? ModuleBlog::BLOG_USER_ROLE_USER : ModuleBlog::BLOG_USER_ROLE_REJECT);
if (!$this->Blog_UpdateRelationBlogUser($oBlogUser)) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'), true);
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'), true);
Router::Location(Router::GetPath('talk'));
return;
}
@ -1805,7 +1805,7 @@ class ActionBlog extends Action
} else {
$sMessage = $this->Lang_Get('blog.invite.alerts.rejected');
}
$this->Message_AddNotice($sMessage, $this->Lang_Get('attention'), true);
$this->Message_AddNotice($sMessage, $this->Lang_Get('common.attention'), true);
/**
* Перенаправляем на страницу личной почты
*/
@ -1830,7 +1830,7 @@ class ActionBlog extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -1845,7 +1845,7 @@ class ActionBlog extends Action
case ModuleACL::CAN_DELETE_BLOG_EMPTY_ONLY :
if ($aTopics['count']) {
$this->Message_AddErrorSingle($this->Lang_Get('blog.remove.alerts.not_empty'),
$this->Lang_Get('error'), true);
$this->Lang_Get('common.error.error'), true);
Router::Location($oBlog->getUrlFull());
}
break;
@ -1859,7 +1859,7 @@ class ActionBlog extends Action
if ($sBlogIdNew = getRequestStr('topic_move_to') and ($sBlogIdNew != -1) and $aTopics['count']) {
if (!$oBlogNew = $this->Blog_GetBlogById($sBlogIdNew)) {
$this->Message_AddErrorSingle($this->Lang_Get('blog.remove.alerts.move_error'),
$this->Lang_Get('error'), true);
$this->Lang_Get('common.error.error'), true);
Router::Location($oBlog->getUrlFull());
}
/**
@ -1867,7 +1867,7 @@ class ActionBlog extends Action
*/
if ($oBlogNew->getType() == 'personal') {
$this->Message_AddErrorSingle($this->Lang_Get('blog.remove.alerts.move_personal_error'),
$this->Lang_Get('error'), true);
$this->Lang_Get('common.error.error'), true);
Router::Location($oBlog->getUrlFull());
}
/**
@ -1885,7 +1885,7 @@ class ActionBlog extends Action
$this->Hook_Run('blog_delete_before', array('sBlogId' => $sBlogId));
if ($this->Blog_DeleteBlog($sBlogId)) {
$this->Hook_Run('blog_delete_after', array('sBlogId' => $sBlogId));
$this->Message_AddNoticeSingle($this->Lang_Get('blog.remove.alerts.success'), $this->Lang_Get('attention'),
$this->Message_AddNoticeSingle($this->Lang_Get('blog.remove.alerts.success'), $this->Lang_Get('common.attention'),
true);
Router::Location(Router::GetPath('blogs'));
} else {
@ -1946,7 +1946,7 @@ class ActionBlog extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1960,7 +1960,7 @@ class ActionBlog extends Action
* Проверяем тип блога
*/
if (!in_array($oBlog->getType(), array('open', 'close'))) {
$this->Message_AddErrorSingle($this->Lang_Get('blog.join.notices.error_invite'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('blog.join.notices.error_invite'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1985,7 +1985,7 @@ class ActionBlog extends Action
}
if ($bResult) {
$this->Message_AddNoticeSingle($this->Lang_Get('blog.join.notices.join_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', true);
/**
* Увеличиваем число читателей блога
@ -2005,13 +2005,13 @@ class ActionBlog extends Action
} else {
$sMsg = ($oBlog->getType() == 'close')
? $this->Lang_Get('blog.join.notices.error_invite')
: $this->Lang_Get('system_error');
$this->Message_AddErrorSingle($sMsg, $this->Lang_Get('error'));
: $this->Lang_Get('common.error.system.base');
$this->Message_AddErrorSingle($sMsg, $this->Lang_Get('common.error.error'));
return;
}
} else {
$this->Message_AddErrorSingle($this->Lang_Get('blog.join.notices.error_self'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
return;
}
}
@ -2021,7 +2021,7 @@ class ActionBlog extends Action
*/
if ($this->Blog_DeleteRelationBlogUser($oBlogUser)) {
$this->Message_AddNoticeSingle($this->Lang_Get('blog.join.notices.leave_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->Viewer_AssignAjax('bState', false);
/**
* Уменьшаем число читателей блога
@ -2121,7 +2121,7 @@ class ActionBlog extends Action
$sFile = $this->Session_Get('sBlogAvatarFileTmp');
$sFilePreview = $this->Session_Get('sBlogAvatarFilePreviewTmp');
if (!$this->Image_IsExistsFile($sFile)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return;
}
@ -2136,7 +2136,7 @@ class ActionBlog extends Action
$this->Viewer_AssignAjax('upload_text', $this->Lang_Get('user.photo.actions.change_photo'));
$this->Viewer_AssignAjax('photo', $oBlog->getAvatarPath('500crop'));
} else {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.error'));
}
}

View file

@ -300,7 +300,7 @@ class ActionContent extends Action
* Проверяем разрешено ли постить топик по времени
*/
if (!isPost('is_draft') and !$oTopic->getPublishDraft() and !$this->ACL_CanPostTopicTime($this->oUserCurrent)) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.add.notices.time_limit'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('topic.add.notices.time_limit'), $this->Lang_Get('common.error.error'));
return;
}
@ -430,12 +430,12 @@ class ActionContent extends Action
}
$this->Viewer_AssignAjax('sUrlRedirect', $sUrlRedirect);
$this->Message_AddNotice('Обновление прошло успешно', $this->Lang_Get('attention'));
$this->Message_AddNotice('Обновление прошло успешно', $this->Lang_Get('common.attention'));
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
}
} else {
$this->Message_AddError($oTopic->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oTopic->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -572,12 +572,12 @@ class ActionContent extends Action
$this->Viewer_AssignAjax('sUrlRedirect', $oTopic->getUrl());
$this->Message_AddNotice('Добавление прошло успешно', $this->Lang_Get('attention'));
$this->Message_AddNotice('Добавление прошло успешно', $this->Lang_Get('common.attention'));
} else {
$this->Message_AddError('Возникла ошибка при добавлении', $this->Lang_Get('error'));
$this->Message_AddError('Возникла ошибка при добавлении', $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oTopic->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oTopic->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -592,14 +592,14 @@ class ActionContent extends Action
* Пользователь авторизован?
*/
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
* Допустимый тип топика?
*/
if (!$this->Topic_IsAllowTopicType($sType = getRequestStr('topic_type'))) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.add.notices.error_type'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('topic.add.notices.error_type'), $this->Lang_Get('common.error.error'));
return;
}
$aTopicRequest = getRequest('topic');

View file

@ -97,7 +97,7 @@ class ActionError extends Action
/**
* Устанавливаем title страницы
*/
$this->Viewer_AddHtmlTitle($this->Lang_Get('error'));
$this->Viewer_AddHtmlTitle($this->Lang_Get('common.error.error'));
$this->SetTemplateAction('index');
}
}

View file

@ -186,7 +186,7 @@ class ActionProfile extends Action
*/
$oComplaint->setText(htmlspecialchars($oComplaint->getText()));
if ($this->User_AddComplaint($oComplaint)) {
$this->Message_AddNotice($this->Lang_Get('report.notices.success'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('report.notices.success'), $this->Lang_Get('common.attention'));
/**
* Убиваем каптчу
*/
@ -199,10 +199,10 @@ class ActionProfile extends Action
}
return true;
} else {
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oComplaint->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oComplaint->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -588,10 +588,10 @@ class ActionProfile extends Action
if ($this->User_SaveNote($oNote)) {
$this->Viewer_AssignAjax('sText', $oNote->getText());
} else {
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.save'), $this->Lang_Get('common.error.error'));
}
} else {
$this->Message_AddError($oNote->_getValidateError(), $this->Lang_Get('error'));
$this->Message_AddError($oNote->_getValidateError(), $this->Lang_Get('common.error.error'));
}
}
@ -692,7 +692,7 @@ class ActionProfile extends Action
* либо из e-mail письма-уведомления
*/
if (!$oUser = $this->User_GetUserById($sUserId)) {
$this->Message_AddError($this->Lang_Get('user.notices.not_found'), $this->Lang_Get('error'), true);
$this->Message_AddError($this->Lang_Get('user.notices.not_found'), $this->Lang_Get('common.error.error'), true);
Router::Location(Router::GetPath('talk'));
return;
}
@ -713,7 +713,7 @@ class ActionProfile extends Action
$sMessage = ($oFriend)
? $this->Lang_Get('user.friends.notices.offer_already_done')
: $this->Lang_Get('user.friends.notices.offer_not_found');
$this->Message_AddError($sMessage, $this->Lang_Get('error'), true);
$this->Message_AddError($sMessage, $this->Lang_Get('common.error.error'), true);
Router::Location(Router::GetPath('talk'));
return;
@ -732,12 +732,12 @@ class ActionProfile extends Action
? $this->Lang_Get('user.friends.notices.add_success')
: $this->Lang_Get('user.friends.rejected');
$this->Message_AddNoticeSingle($sMessage, $this->Lang_Get('attention'), true);
$this->Message_AddNoticeSingle($sMessage, $this->Lang_Get('common.attention'), true);
$this->NoticeFriendOffer($oUser, $sAction);
} else {
$this->Message_AddErrorSingle(
$this->Lang_Get('system_error'),
$this->Lang_Get('error'),
$this->Lang_Get('common.error.system.base'),
$this->Lang_Get('common.error.error'),
true
);
}
@ -759,8 +759,8 @@ class ActionProfile extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -777,7 +777,7 @@ class ActionProfile extends Action
if (!$oUser = $this->User_GetUserById($sUserId)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -801,7 +801,7 @@ class ActionProfile extends Action
$oFriend->setStatusByUserId(ModuleUser::USER_FRIEND_ACCEPT, $this->oUserCurrent->getId());
if ($this->User_UpdateFriend($oFriend)) {
$this->Message_AddNoticeSingle($this->Lang_Get('user.friends.notices.add_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
$this->NoticeFriendOffer($oUser, 'accept');
/**
* Добавляем событие в ленту
@ -870,8 +870,8 @@ class ActionProfile extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -888,7 +888,7 @@ class ActionProfile extends Action
if (!$oUser = $this->User_GetUserById($sUserId)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -911,7 +911,7 @@ class ActionProfile extends Action
if ($oFriend->getFriendStatus() == ModuleUser::USER_FRIEND_OFFER + ModuleUser::USER_FRIEND_ACCEPT) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.friends.notices.already_exist'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -924,7 +924,7 @@ class ActionProfile extends Action
) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.friends.rejected'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -952,7 +952,7 @@ class ActionProfile extends Action
$this->Stream_write($oFriend->getUserFrom(), 'add_friend', $oFriend->getUserTo());
$this->Stream_write($oFriend->getUserTo(), 'add_friend', $oFriend->getUserFrom());
$this->Message_AddNoticeSingle($this->Lang_Get('user.friends.notices.add_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
} else {
return $this->EventErrorDebug();
}
@ -960,7 +960,7 @@ class ActionProfile extends Action
} else {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.friends.notices.rejected'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1004,7 +1004,7 @@ class ActionProfile extends Action
* Ограничения на добавления в друзья, т.к. приглашение отправляется в личку, то и ограничиваем по ней
*/
if (!$this->ACL_CanSendTalkTime($this->oUserCurrent)) {
$this->Message_AddErrorSingle($this->Lang_Get('user.friends.notices.time_limit'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('user.friends.notices.time_limit'), $this->Lang_Get('common.error.error'));
return false;
}
/**
@ -1026,7 +1026,7 @@ class ActionProfile extends Action
: !$this->User_AddFriend($oFriendNew);
if (!$bStateError) {
$this->Message_AddNoticeSingle($this->Lang_Get('user.friends.sent'), $this->Lang_Get('attention'));
$this->Message_AddNoticeSingle($this->Lang_Get('user.friends.sent'), $this->Lang_Get('common.attention'));
$sTitle = $this->Lang_Get(
'user.friends.messages.offer.title',
@ -1067,7 +1067,7 @@ class ActionProfile extends Action
*/
$this->Talk_DeleteTalkUserByArray($oTalk->getId(), $this->oUserCurrent->getId());
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
}
@ -1086,8 +1086,8 @@ class ActionProfile extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -1104,7 +1104,7 @@ class ActionProfile extends Action
if (!$oUser = $this->User_GetUserById($sUserId)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.friends.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1122,7 +1122,7 @@ class ActionProfile extends Action
if (!$oFriend || !in_array($oFriend->getFriendStatus(), $aAllowedFriendStatus)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.friends.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1131,7 +1131,7 @@ class ActionProfile extends Action
*/
if ($this->User_DeleteFriend($oFriend)) {
$this->Message_AddNoticeSingle($this->Lang_Get('user.friends.notices.remove_success'),
$this->Lang_Get('attention'));
$this->Lang_Get('common.attention'));
/**
* Отправляем пользователю сообщение об удалении дружеской связи

View file

@ -62,7 +62,7 @@ class ActionSettings extends Action
* Проверяем авторизован ли юзер
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'), $this->Lang_Get('common.error.error'));
return Router::Action('error');
}
/**
@ -182,7 +182,7 @@ class ActionSettings extends Action
$sFile = $this->Session_Get('sPhotoFileTmp');
$sFilePreview = $this->Session_Get('sPhotoFilePreviewTmp');
if (!$this->Image_IsExistsFile($sFile)) {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return;
}
@ -201,7 +201,7 @@ class ActionSettings extends Action
$this->Viewer_AssignAjax('upload_text', $this->Lang_Get('user.photo.actions.change_photo'));
$this->Viewer_AssignAjax('photo', $oUser->getProfileFotoPath());
} else {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.error'));
}
}
@ -311,7 +311,7 @@ class ActionSettings extends Action
// Формируем массив с путями до аватаров
$this->Viewer_AssignAjax('avatars', $oUser->GetProfileAvatarsPath());
} else {
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('error'));
$this->Message_AddError(is_string($res) ? $res : $this->Lang_Get('common.error.error'));
}
}
@ -350,7 +350,7 @@ class ActionSettings extends Action
$this->Message_AddNoticeSingle($this->Lang_Get('common.success.save'));
$this->Hook_Run('settings_tuning_save_after', array('oUser' => $this->oUserCurrent));
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
}
} else {
if (is_null($this->oUserCurrent->getSettingsTimezone())) {
@ -444,11 +444,11 @@ class ActionSettings extends Action
if (func_check(getRequestStr('mail'), 'mail')) {
if ($oUserMail = $this->User_GetUserByMail(getRequestStr('mail')) and $oUserMail->getId() != $this->oUserCurrent->getId()) {
$this->Message_AddError($this->Lang_Get('user.settings.account.fields.email.notices.error_used'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
$bError = true;
}
} else {
$this->Message_AddError($this->Lang_Get('fields.email.notices.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('fields.email.notices.error'), $this->Lang_Get('common.error.error'));
$bError = true;
}
/**
@ -462,17 +462,17 @@ class ActionSettings extends Action
} else {
$bError = true;
$this->Message_AddError($this->Lang_Get('user.settings.account.fields.password.notices.error'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
}
} else {
$bError = true;
$this->Message_AddError($this->Lang_Get('user.settings.account.fields.password_confirm.notices.error'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
}
} else {
$bError = true;
$this->Message_AddError($this->Lang_Get('user.settings.account.fields.password_new.notices.error'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
}
}
/**
@ -505,7 +505,7 @@ class ActionSettings extends Action
$this->Hook_Run('settings_account_save_after', array('oUser' => $this->oUserCurrent));
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
}
}
}
@ -665,7 +665,7 @@ class ActionSettings extends Action
$this->Message_AddNoticeSingle($this->Lang_Get('common.success.save'));
$this->Hook_Run('settings_profile_save_after', array('oUser' => $this->oUserCurrent));
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
}
}
}

View file

@ -123,14 +123,14 @@ class ActionStream extends Action
}
if (!getRequest('type')) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
/**
* Активируем/деактивируем тип
*/
$this->Stream_switchUserEventType($this->oUserCurrent->getId(), getRequestStr('type'));
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('common.attention'));
}
/**
@ -187,7 +187,7 @@ class ActionStream extends Action
$iLastId = getRequestStr('last_id');
if (!$iLastId) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
@ -231,17 +231,17 @@ class ActionStream extends Action
* Проверяем существование пользователя
*/
if (!$this->User_getUserById(getRequestStr('id'))) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
if ($this->oUserCurrent->getId() == getRequestStr('id')) {
$this->Message_AddError($this->Lang_Get('user_list_add.notices.error_self'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('user_list_add.notices.error_self'), $this->Lang_Get('common.error.error'));
return;
}
/**
* Подписываем на пользователя
*/
$this->Stream_subscribeUser($this->oUserCurrent->getId(), getRequestStr('id'));
$this->Message_AddNotice($this->Lang_Get('stream_subscribes_updated'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('stream_subscribes_updated'), $this->Lang_Get('common.attention'));
}
/**
@ -266,7 +266,7 @@ class ActionStream extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
@ -290,7 +290,7 @@ class ActionStream extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('common.success.add',
array('login' => htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -300,7 +300,7 @@ class ActionStream extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user.notices.not_found',
array('login' => htmlspecialchars($sUser))),
'user_login' => htmlspecialchars($sUser)
@ -339,7 +339,7 @@ class ActionStream extends Action
* Отписываем
*/
$this->Stream_unsubscribeUser($this->oUserCurrent->getId(), $iUserId);
$this->Message_AddNotice($this->Lang_Get('common.success.remove'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('common.success.remove'), $this->Lang_Get('common.attention'));
}
/**

View file

@ -104,7 +104,7 @@ class ActionSubscribe extends Action
$sMail = $this->oUserCurrent->getMail();
}
if (!func_check($sMail, 'mail')) {
$this->Message_AddError($this->Lang_Get('field.email.notices.error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('field.email.notices.error'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -122,7 +122,7 @@ class ActionSubscribe extends Action
* Есть ли доступ к подписке гостям?
*/
if (!$this->oUserCurrent and !$this->Subscribe_IsAllowTargetForGuest($sTargetType)) {
$this->Message_AddError($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -139,7 +139,7 @@ class ActionSubscribe extends Action
) {
$oSubscribe->setStatus($iValue);
$this->Subscribe_UpdateSubscribe($oSubscribe);
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('common.attention'));
return;
}
return $this->EventErrorDebug();

View file

@ -62,7 +62,7 @@ class ActionTalk extends Action
* Проверяем авторизован ли юзер
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('not_access'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.not_access'));
return Router::Action('error');
}
/**
@ -419,7 +419,7 @@ class ActionTalk extends Action
$this->Media_ReplaceTargetTmpById('talk', $oTalk->getId());
Router::Location(Router::GetPath('talk') . 'read/' . $oTalk->getId() . '/');
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.system.base'));
return Router::Action('error');
}
}
@ -505,14 +505,14 @@ class ActionTalk extends Action
* Проверяем есть ли заголовок
*/
if (!func_check(getRequestStr('talk_title'), 'text', 2, 200)) {
$this->Message_AddError($this->Lang_Get('talk.add.notices.title_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('talk.add.notices.title_error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
* Проверяем есть ли содержание топика
*/
if (!func_check(getRequestStr('talk_text'), 'text', 2, 3000)) {
$this->Message_AddError($this->Lang_Get('talk.add.notices.text_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('talk.add.notices.text_error'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
/**
@ -541,25 +541,25 @@ class ActionTalk extends Action
$this->Lang_Get('talk.blacklist.notices.blocked',
array('login' => htmlspecialchars($oUser->getLogin())))
),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
$bOk = false;
continue;
}
} else {
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error_not_found') . ' «' . htmlspecialchars($sUser) . '»',
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
$bOk = false;
}
$aUsersNew[] = $sUser;
}
if (!count($aUsersNew)) {
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error'), $this->Lang_Get('common.error.error'));
$_REQUEST['talk_users'] = '';
$bOk = false;
} else {
if (count($aUsersNew) > Config::Get('module.talk.max_users') and !$this->oUserCurrent->isAdministrator()) {
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error_many'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error_many'), $this->Lang_Get('common.error.error'));
$bOk = false;
}
$_REQUEST['talk_users'] = join(',', $aUsersNew);
@ -587,7 +587,7 @@ class ActionTalk extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -658,7 +658,7 @@ class ActionTalk extends Action
* Проверям авторизован ли пользователь
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -685,7 +685,7 @@ class ActionTalk extends Action
*/
$sText = getRequestStr('comment_text');
if (!func_check($sText, 'text', 2, 3000)) {
$this->Message_AddErrorSingle($this->Lang_Get('talk.message.notices.error_text'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('talk.message.notices.error_text'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -721,7 +721,7 @@ class ActionTalk extends Action
if ($this->Comment_GetCommentUnique($oTalk->getId(), 'talk', $this->oUserCurrent->getId(), $sParentId,
md5($sText))
) {
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.spam'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('topic.comments.notices.spam'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -794,7 +794,7 @@ class ActionTalk extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -818,7 +818,7 @@ class ActionTalk extends Action
if (strtolower($sUser) == strtolower($this->oUserCurrent->getLogin())) {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user_list_add.notices.error_self')
);
continue;
@ -835,7 +835,7 @@ class ActionTalk extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('common.success.add',
array('login' => htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -845,8 +845,8 @@ class ActionTalk extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsg' => $this->Lang_Get('system_error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('common.error.system.base'),
'user_login' => htmlspecialchars($sUser)
);
}
@ -856,7 +856,7 @@ class ActionTalk extends Action
*/
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user_list_add.notices.error_already_added',
array('login' => htmlspecialchars($sUser))),
'user_login' => htmlspecialchars($sUser)
@ -866,7 +866,7 @@ class ActionTalk extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user.notices.not_found',
array('login' => htmlspecialchars($sUser))),
'user_login' => htmlspecialchars($sUser)
@ -895,8 +895,8 @@ class ActionTalk extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -906,7 +906,7 @@ class ActionTalk extends Action
if (!$oUserTarget = $this->User_GetUserById($iUserId)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.notices.not_found_by_id', array('id' => htmlspecialchars($iUserId))),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -923,7 +923,7 @@ class ActionTalk extends Action
'talk.blacklist.notices.user_not_found',
array('login' => $oUserTarget->getLogin())
),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -938,7 +938,7 @@ class ActionTalk extends Action
'common.success.remove',
array('login' => $oUserTarget->getLogin())
),
$this->Lang_Get('attention')
$this->Lang_Get('common.attention')
);
}
@ -959,8 +959,8 @@ class ActionTalk extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -970,7 +970,7 @@ class ActionTalk extends Action
if (!$oUserTarget = $this->User_GetUserById($iUserId)) {
$this->Message_AddErrorSingle(
$this->Lang_Get('user.notices.not_found_by_id', array('id' => htmlspecialchars($iUserId))),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -982,7 +982,7 @@ class ActionTalk extends Action
) {
$this->Message_AddErrorSingle(
$this->Lang_Get('talk.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1001,7 +1001,7 @@ class ActionTalk extends Action
'talk.users.notices.user_not_found',
array('login' => $oUserTarget->getLogin())
),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1016,7 +1016,7 @@ class ActionTalk extends Action
'common.success.remove',
array('login' => $oUserTarget->getLogin())
),
$this->Lang_Get('attention')
$this->Lang_Get('common.attention')
);
}
@ -1043,8 +1043,8 @@ class ActionTalk extends Action
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle(
$this->Lang_Get('need_authorization'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.need_authorization'),
$this->Lang_Get('common.error.error')
);
return;
}
@ -1056,7 +1056,7 @@ class ActionTalk extends Action
) {
$this->Message_AddErrorSingle(
$this->Lang_Get('talk.notices.not_found'),
$this->Lang_Get('error')
$this->Lang_Get('common.error.error')
);
return;
}
@ -1072,7 +1072,7 @@ class ActionTalk extends Action
* Ограничения на максимальное число участников разговора
*/
if (count($aTalkUsers) >= Config::Get('module.talk.max_users') and !$this->oUserCurrent->isAdministrator()) {
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error_many'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('talk.add.notices.users_error_many'), $this->Lang_Get('common.error.error'));
return;
}
/**
@ -1089,7 +1089,7 @@ class ActionTalk extends Action
if (strtolower($sUser) == strtolower($this->oUserCurrent->getLogin())) {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user_list_add.notices.error_self')
);
continue;
@ -1124,7 +1124,7 @@ class ActionTalk extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('user_list_add.notices.success_add',
array('login', htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -1135,8 +1135,8 @@ class ActionTalk extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsg' => $this->Lang_Get('system_error')
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('common.error.system.base')
);
}
break;
@ -1146,7 +1146,7 @@ class ActionTalk extends Action
case ModuleTalk::TALK_USER_ACTIVE:
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user_list_add.notices.error_already_added',
array('login' => htmlspecialchars($sUser)))
);
@ -1157,7 +1157,7 @@ class ActionTalk extends Action
case ModuleTalk::TALK_USER_DELETE_BY_SELF:
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('talk.users.notices.deleted',
array('login' => htmlspecialchars($sUser)))
);
@ -1166,8 +1166,8 @@ class ActionTalk extends Action
default:
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsg' => $this->Lang_Get('system_error')
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('common.error.system.base')
);
}
} elseif (
@ -1190,7 +1190,7 @@ class ActionTalk extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('user_list_add.notices.success_add',
array('login', htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -1200,8 +1200,8 @@ class ActionTalk extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsg' => $this->Lang_Get('system_error')
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('common.error.system.base')
);
}
} else {
@ -1210,7 +1210,7 @@ class ActionTalk extends Action
*/
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('talk.blacklist.notices.blocked',
array('login' => htmlspecialchars($sUser)))
);
@ -1221,7 +1221,7 @@ class ActionTalk extends Action
*/
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user.notices.not_found',
array('login' => htmlspecialchars($sUser)))
);
@ -1244,7 +1244,7 @@ class ActionTalk extends Action
$this->Viewer_SetResponseAjax('json');
if (!$this->oUserCurrent) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
$iCountTalkNew = $this->Talk_GetCountTalkNew($this->oUserCurrent->getId());

View file

@ -106,7 +106,7 @@ class ActionUserfeed extends Action
* Проверяем наличие ID блога или пользователя
*/
if (!getRequest('id')) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
}
$sType = getRequestStr('type');
$iType = null;
@ -120,7 +120,7 @@ class ActionUserfeed extends Action
* Проверяем существование блога
*/
if (!($oBlog=$this->Blog_GetBlogById(getRequestStr('id'))) or !$this->ACL_IsAllowShowBlog($oBlog,$this->oUserCurrent)) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
break;
@ -130,24 +130,24 @@ class ActionUserfeed extends Action
* Проверяем существование пользователя
*/
if (!$this->User_GetUserById(getRequestStr('id'))) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
if ($this->oUserCurrent->getId() == getRequestStr('id')) {
$this->Message_AddError($this->Lang_Get('user_list_add.notices.error_self'),
$this->Lang_Get('error'));
$this->Lang_Get('common.error.error'));
return;
}
break;
default:
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
/**
* Подписываем
*/
$this->Userfeed_subscribeUser($this->oUserCurrent->getId(), $iType, getRequestStr('id'));
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('common.success.save'), $this->Lang_Get('common.attention'));
}
/**
@ -171,7 +171,7 @@ class ActionUserfeed extends Action
* Если пользователь не авторизирован, возвращаем ошибку
*/
if (!$this->User_IsAuthorization()) {
$this->Message_AddErrorSingle($this->Lang_Get('need_authorization'), $this->Lang_Get('error'));
$this->Message_AddErrorSingle($this->Lang_Get('common.error.need_authorization'), $this->Lang_Get('common.error.error'));
return;
}
@ -197,7 +197,7 @@ class ActionUserfeed extends Action
$aResult[] = array(
'bStateError' => false,
'sMsgTitle' => $this->Lang_Get('attention'),
'sMsgTitle' => $this->Lang_Get('common.attention'),
'sMsg' => $this->Lang_Get('common.success.add',
array('login' => htmlspecialchars($sUser))),
'user_id' => $oUser->getId(),
@ -207,7 +207,7 @@ class ActionUserfeed extends Action
} else {
$aResult[] = array(
'bStateError' => true,
'sMsgTitle' => $this->Lang_Get('error'),
'sMsgTitle' => $this->Lang_Get('common.error.error'),
'sMsg' => $this->Lang_Get('user.notices.not_found',
array('login' => htmlspecialchars($sUser))),
'user_login' => htmlspecialchars($sUser)
@ -246,18 +246,18 @@ class ActionUserfeed extends Action
$sId = getRequestStr('user_id');
break;
default:
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
if (!$sId) {
$this->Message_AddError($this->Lang_Get('system_error'), $this->Lang_Get('error'));
$this->Message_AddError($this->Lang_Get('common.error.system.base'), $this->Lang_Get('common.error.error'));
return;
}
/**
* Отписываем пользователя
*/
$this->Userfeed_unsubscribeUser($this->oUserCurrent->getId(), $iType, $sId);
$this->Message_AddNotice($this->Lang_Get('common.success.remove'), $this->Lang_Get('attention'));
$this->Message_AddNotice($this->Lang_Get('common.success.remove'), $this->Lang_Get('common.attention'));
}
/**

View file

@ -908,7 +908,7 @@ class ModuleProperty extends ModuleORM
$aProperty['validate_rule'], $aProperty['params'], $aProperty['additional']);
if ($sResultMsg !== true and !is_object($sResultMsg)) {
if (is_string($sResultMsg)) {
$this->Message_AddErrorSingle($sResultMsg, $this->Lang_Get('error'), true);
$this->Message_AddErrorSingle($sResultMsg, $this->Lang_Get('common.error.error'), true);
}
/**
* Отменяем добавление типа

File diff suppressed because it is too large Load diff

View file

@ -21,44 +21,10 @@
* Содержит все текстовки движка.
*/
return array(
'common' => array(
'add' => 'Добавить',
'remove' => 'Удалить',
'remove_confirm' => 'Действительно удалить?',
'edit' => 'Редактировать',
'save' => 'Сохранить',
'create' => 'Создать',
'cancel' => 'Отменить',
'close' => 'Закрыть',
'choose' => 'Выбрать',
'empty' => 'Тут ничего нет',
'send' => 'Отправить',
'form_reset' => 'Очистить форму',
'preview_text' => 'Предпросмотр',
'times_declension' => 'раз;раза;раз',
'error' => array(
'error' => 'Ошибка',
'add' => 'При добавлении возникла ошибка',
'save' => 'Ошибка сохранения',
'remove' => 'При удалении возникла ошибка',
'system' => array(
'code' => array(
'404' => 'К сожалению, такой страницы не существует. Вероятно, она была удалена с сервера, либо ее здесь никогда не было.',
'403' => 'Доступ к странице запрещен.',
'500' => 'Произошла внутренняя ошибка сервера.',
),
)
),
'success' => array(
'add' => 'Успешно добавлено',
'save' => 'Успешно сохранено',
'remove' => 'Удаление прошло успешно',
)
),
/**
* Голосование
*/
'vote' => array(
'vote' => array(
'up' => 'Нравится',
'down' => 'Не нравится',
'abstain' => 'Воздержаться от голосования и посмотреть рейтинг',
@ -78,7 +44,7 @@ return array(
/**
* Избранное
*/
'favourite' => array(
'favourite' => array(
'favourite' => 'Избранное',
'add' => 'Добавить в избранное',
'remove' => 'Удалить из избранного',
@ -93,7 +59,7 @@ return array(
/**
* Поиск
*/
'search' => array(
'search' => array(
'search' => 'Поиск',
'find' => 'Найти',
'result' => array(
@ -109,7 +75,7 @@ return array(
/**
* Сортировка
*/
'sort' => array(
'sort' => array(
'label' => 'Сортировать',
'by_login' => 'по логину',
'by_name' => 'по имени',
@ -121,7 +87,7 @@ return array(
/**
* Заметка пользователя
*/
'user_note' => array(
'user_note' => array(
'add' => 'Написать заметку',
// Всплывающие сообщения
'notices' => array(
@ -131,7 +97,7 @@ return array(
/**
* Блог
*/
'blog' => array(
'blog' => array(
'blog' => 'Блог',
'blogs' => 'Блоги',
'readers_declension' => 'читатель;читателя;читателей',
@ -390,16 +356,16 @@ return array(
),
),
),
'types' => array(
'types' => array(
'personal' => 'Персональные блоги',
'open' => 'Открытые блоги',
'close' => 'Закрытые блоги',
'open' => 'Открытые блоги',
'close' => 'Закрытые блоги',
),
),
/**
* Личные сообщения
*/
'talk' => array(
'talk' => array(
'title' => 'Сообщения',
'participants' => '%%count%% участник;%%count%% участника;%%count%% участников',
'new_messages' => 'У вас есть новые сообщения',
@ -519,7 +485,7 @@ return array(
/**
* Опросы
*/
'poll' => array(
'poll' => array(
'polls' => 'Опросы',
'vote' => 'Голосовать',
'abstain' => 'Воздержаться',
@ -539,10 +505,10 @@ return array(
'answers_title' => 'Варианты ответов',
// Поля
'fields' => array(
'title' => 'Вопрос',
'is_guest_allow' => 'Разрешить голосовать гостям',
'title' => 'Вопрос',
'is_guest_allow' => 'Разрешить голосовать гостям',
'is_guest_check_ip' => 'Только одно голосование гостей с одного IP адреса',
'type' => array(
'type' => array(
'label' => 'Пользователь может выбрать',
'label_one' => 'Один вариант',
'label_many' => 'Несколько вариантов'
@ -557,7 +523,7 @@ return array(
/**
* Комментарии
*/
'comments' => array(
'comments' => array(
'comments_declension' => '%%count%% комментарий;%%count%% комментария;%%count%% комментариев',
'count_new' => 'Число новых комментариев',
'title' => 'Комментарии',
@ -597,7 +563,7 @@ return array(
/**
* Пополняемый список пользователей
*/
'user_list_add' => array(
'user_list_add' => array(
// Форма добавления
'form' => array(
// Поля
@ -618,7 +584,7 @@ return array(
/**
* Мэйлы
*/
'emails' => array(
'emails' => array(
'common' => array(
'comment_text' => 'Текст комментария',
'regards' => 'С уважением, администрация сайта',
@ -806,7 +772,7 @@ return array(
/**
* Стена
*/
'wall' => array(
'wall' => array(
'title' => 'Стена',
// Форма
'form' => array(
@ -831,7 +797,7 @@ return array(
/**
* Авторизация
*/
'auth' => array(
'auth' => array(
'authorization' => 'Авторизация',
'logout' => 'Выйти',
// Вход
@ -963,7 +929,7 @@ return array(
/**
* Активность
*/
'activity' => array(
'activity' => array(
'title' => 'Активность',
// Навигация
'nav' => array(
@ -1033,7 +999,7 @@ return array(
/**
* Лента
*/
'feed' => array(
'feed' => array(
'title' => 'Лента',
// Блоги
'blogs' => array(
@ -1050,7 +1016,7 @@ return array(
/**
* Топик
*/
'topic' => array(
'topic' => array(
'topics' => 'Топики',
'topic_plural' => 'топик;топика;топиков',
'drafts' => 'Черновики',
@ -1080,7 +1046,7 @@ return array(
'title' => array(
'label' => 'Заголовок'
),
'slug' => array(
'slug' => array(
'label' => 'URL',
'note' => 'Формируется автоматически из названия топика, но вы можете задать свое значение'
),
@ -1099,7 +1065,7 @@ return array(
'label' => 'Принудительно вывести на главную',
'note' => 'Если отметить эту галку, то топик сразу попадёт на главную страницу (опция доступна только администраторам)'
),
'skip_index' => array(
'skip_index' => array(
'label' => 'Принудительно пропустить вывод на главную',
'note' => 'Если отметить эту галку, то топик никогда не будет выведен на главную страницу (опция доступна только администраторам)'
),
@ -1147,7 +1113,7 @@ return array(
* Пользователь
* !user
*/
'user' => array(
'user' => array(
'user' => 'Пользователь',
'users' => 'Пользователи',
'rating' => '___vote.rating___',
@ -1401,14 +1367,14 @@ return array(
),
// Инвайты
'invites' => array(
'note' => 'Вы можете пригласить на сайт своих друзей и знакомых, для этого просто укажите их e-mail и нажмите кнопку.',
'available' => 'Доступно приглашений',
'available_no' => 'У вас пока нет доступных инвайтов',
'used' => 'Приглашено пользователей',
'used_empty' => 'нет',
'note' => 'Вы можете пригласить на сайт своих друзей и знакомых, для этого просто укажите их e-mail и нажмите кнопку.',
'available' => 'Доступно приглашений',
'available_no' => 'У вас пока нет доступных инвайтов',
'used' => 'Приглашено пользователей',
'used_empty' => 'нет',
'referral_link' => 'Ваша персональная реферальная ссылка',
'many' => 'много',
'fields' => array(
'many' => 'много',
'fields' => array(
'email' => array(
'label' => 'Пригласить пользователя',
'note' => 'На этот e-mail будет выслано приглашение для регистрации',
@ -1417,7 +1383,7 @@ return array(
'text' => 'Отправить приглашение',
),
),
'notices' => array(
'notices' => array(
'success' => 'Приглашение отправлено'
)
),
@ -1458,7 +1424,7 @@ return array(
/**
* Поля
*/
'field' => array(
'field' => array(
'email' => array(
'label' => 'E-mail',
'notices' => array(
@ -1473,79 +1439,22 @@ return array(
'upload_area' => array(
'label' => 'Перетащите сюда файлы или кликните по этому тексту',
),
'category' => array(
'category' => array(
'label' => 'Категория'
),
),
/**
* Кастомные поля
*/
'property' => array(
'property' => array(
'video' => array(
'preview' => 'Предпросмотр видео'
)
),
/**
* Редактор
*/
'editor' => array(
'markup' => array(
'help' => array(
'link_show' => 'Доступны html-теги',
'special' => 'Специальные теги',
'special_cut' => 'Используется для больших текстов, скрывает под кат часть текста, следующую за тегом (будет написано «Читать дальше»).',
'special_cut_name' => 'Так можно превратить надпись «Читать дальше» в любой текст.',
'special_cut_name_example_name' => 'Подробности',
'special_video' => 'Добавляет в пост видео со следующих хостингов: YouTube, RuTube, Vimeo и Я.Видео. <br/>Вставляйте между тегами только прямую ссылку на видеоролик.',
'special_ls_user' => 'Выводит имя пользователя посреди текста.',
'special_ls_user_example_user' => 'Ник',
'standart' => 'Стандартные теги',
'standart_h' => 'Заголовки разного уровня.',
'standart_img' => 'Вставка изображения, в атрибуте src нужно указывать полный путь к изображению. Возможно выравнивание картинки атрибутом align.',
'standart_a' => 'Вставка ссылки, в атрибуте href указывается желаемый интернет-адрес или якорь (anchor) для навигации по странице.',
'standart_a_example_href' => 'Ссылка',
'standart_b' => 'Выделение важного текста, на странице выделяется жирным начертанием.',
'standart_i' => 'Выделение важного текста, на странице выделяется курсивом.',
'standart_s' => 'Текст между этими тегами будет отображаться как зачеркнутый.',
'standart_u' => 'Текст между этими тегами будет отображаться как подчеркнутый.',
'standart_hr' => 'Тег для вставки горизонтальной линии.',
'standart_blockquote' => 'Используйте этот тег для выделения цитат.',
'standart_table' => 'Набор тегов для создания таблицы. Тег &lt;td&gt; обозначает ячейку таблицы, тег &lt;th&gt; - ячейку в заголовке, &lt;tr&gt; - строчку таблицы. Все содержимое таблицы помещайте в тег &lt;table&gt;.',
'standart_ul' => 'Ненумерованный список; каждый элемент списка задается тегом &lt;li&gt;, набор элементов списка помещайте в тег &lt;ul&gt;.',
'standart_ol' => 'Нумерованный список; каждый элемент списка задается тегом &lt;li&gt;, набор элементов списка помещайте в тег &lt;ol&gt;.',
),
'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' => 'Введите логин пользователя',
),
),
),
/**
* Админка
*/
'admin' => array(
'admin' => array(
'title' => 'Админка',
'items' => array(
'plugins' => '___admin.plugins.title___',
@ -1583,7 +1492,7 @@ return array(
/**
* Жалобы
*/
'report' => array(
'report' => array(
'report' => 'Пожаловаться',
'form' => array(
'title' => '___report.report___',
@ -1606,7 +1515,7 @@ return array(
/**
* Загрузкчик файлов
*/
'uploader' => array(
'uploader' => array(
'actions' => array(
'remove' => '___common.remove___'
),
@ -1623,9 +1532,9 @@ return array(
/**
* Загрузка изображений
*/
'media' => array(
'media' => array(
'title' => 'Загрузка медиа-файлов',
'error' => array(
'error' => array(
'upload' => 'Не удалось загрузить файл',
'not_image' => 'Файл не является изображением',
'too_large' => 'Превышен максимальный размер файла: %%size%%Кб',
@ -1683,461 +1592,10 @@ return array(
'submit_upload' => 'Загрузить и вставить'
),
),
/**
* Дата
*/
'date' => array(
'day' => 'день',
'month' => 'месяц',
'year' => 'год',
'now' => 'Только что',
'today' => 'Сегодня',
'today_at' => 'Сегодня в',
'yesterday_at' => 'Вчера в',
'tomorrow_at' => 'Завтра в',
'minutes_back' => '%%minutes%% минута назад; %%minutes%% минуты назад; %%minutes%% минут назад',
'minutes_back_less' => 'Менее минуты назад',
'hours_back' => '%%hours%% час назад; %%hours%% часа назад; %%hours%% часов назад',
'hours_back_less' => 'Менее часа назад',
'month_array' => array(
1 => array('январь', 'января', 'январе'),
2 => array('февраль', 'февраля', 'феврале'),
3 => array('март', 'марта', 'марте'),
4 => array('апрель', 'апреля', 'апреле'),
5 => array('май', 'мая', 'мае'),
6 => array('июнь', 'июня', 'июне'),
7 => array('июль', 'июля', 'июле'),
8 => array('август', 'августа', 'августе'),
9 => array('сентябрь', 'сентября', 'сентябре'),
10 => array('октябрь', 'октября', 'октябре'),
11 => array('ноябрь', 'ноября', 'ноябре'),
12 => array('декабрь', 'декабря', 'декабре'),
),
'timezones' => array(
'Europe/Amsterdam' => '[UTC +1] Европа/Амстердам',
'Europe/Andorra' => '[UTC +1] Европа/Андорра',
'Europe/Athens' => '[UTC +2] Европа/Афины',
'Europe/Belgrade' => '[UTC +1] Европа/Белград',
'Europe/Berlin' => '[UTC +1] Европа/Берлин',
'Europe/Bratislava' => '[UTC +1] Европа/Братислава',
'Europe/Brussels' => '[UTC +1] Европа/Брюссель',
'Europe/Bucharest' => '[UTC +2] Европа/Бухарест',
'Europe/Budapest' => '[UTC +1] Европа/Будапешт',
'Europe/Busingen' => '[UTC +1] Европа/Бюзинген',
'Europe/Chisinau' => '[UTC +2] Европа/Кишинёв',
'Europe/Copenhagen' => '[UTC +1] Европа/Копенгаген',
'Europe/Dublin' => '[UTC] Европа/Дублин',
'Europe/Gibraltar' => '[UTC +1] Европа/Гибралтар',
'Europe/Guernsey' => '[UTC] Европа/Гернси',
'Europe/Helsinki' => '[UTC +2] Европа/Хельсинки',
'Europe/Isle_of_Man' => '[UTC] Европа/Остров Мэн',
'Europe/Istanbul' => '[UTC +2] Европа/Стамбул',
'Europe/Jersey' => '[UTC] Европа/Джерси',
'Europe/Kaliningrad' => '[UTC +2] Европа/Калининград',
'Europe/Kiev' => '[UTC +2] Европа/Киев',
'Europe/Lisbon' => '[UTC] Европа/Лиссабон',
'Europe/Ljubljana' => '[UTC +1] Европа/Любляна',
'Europe/London' => '[UTC] Европа/Лондон',
'Europe/Luxembourg' => '[UTC +1] Европа/Люксембург',
'Europe/Madrid' => '[UTC +1] Европа/Мадрид',
'Europe/Malta' => '[UTC +1] Европа/Мальта',
'Europe/Mariehamn' => '[UTC +2] Европа/Маарианхамина',
'Europe/Minsk' => '[UTC +3] Европа/Минск',
'Europe/Monaco' => '[UTC +1] Европа/Монако',
'Europe/Moscow' => '[UTC +3] Европа/Москва',
'Europe/Oslo' => '[UTC +1] Европа/Осло',
'Europe/Paris' => '[UTC +1] Европа/Париж',
'Europe/Podgorica' => '[UTC +1] Европа/Подгорица',
'Europe/Prague' => '[UTC +1] Европа/Прага',
'Europe/Riga' => '[UTC +2] Европа/Рига',
'Europe/Rome' => '[UTC +1] Европа/Рим',
'Europe/Samara' => '[UTC +4] Европа/Самара',
'Europe/San_Marino' => '[UTC +1] Европа/Сан-Марино',
'Europe/Sarajevo' => '[UTC +1] Европа/Сараево',
'Europe/Simferopol' => '[UTC +3] Европа/Симферополь',
'Europe/Skopje' => '[UTC +1] Европа/Скопье',
'Europe/Sofia' => '[UTC +2] Европа/София',
'Europe/Stockholm' => '[UTC +1] Европа/Стокгольм',
'Europe/Tallinn' => '[UTC +2] Европа/Таллин',
'Europe/Tirane' => '[UTC +1] Европа/Тирана',
'Europe/Uzhgorod' => '[UTC +2] Европа/Ужгород',
'Europe/Vaduz' => '[UTC +1] Европа/Вадуц',
'Europe/Vatican' => '[UTC +1] Европа/Ватикан',
'Europe/Vienna' => '[UTC +1] Европа/Вена',
'Europe/Vilnius' => '[UTC +2] Европа/Вильнюс',
'Europe/Volgograd' => '[UTC +3] Европа/Волгоград',
'Europe/Warsaw' => '[UTC +1] Европа/Варшава',
'Europe/Zagreb' => '[UTC +1] Европа/Загреб',
'Europe/Zaporozhye' => '[UTC +2] Европа/Запорожье',
'Europe/Zurich' => '[UTC +1] Европа/Цюрих',
'Asia/Aden' => '[UTC +3] Азия/Аден',
'Asia/Almaty' => '[UTC +6] Азия/Алматы',
'Asia/Amman' => '[UTC +2] Азия/Амман',
'Asia/Anadyr' => '[UTC +12] Азия/Анадырь',
'Asia/Aqtau' => '[UTC +5] Азия/Актау',
'Asia/Aqtobe' => '[UTC +5] Азия/Актобе',
'Asia/Ashgabat' => '[UTC +5] Азия/Ашгабат',
'Asia/Baghdad' => '[UTC +3] Азия/Багдад',
'Asia/Bahrain' => '[UTC +3] Азия/Бахрейн',
'Asia/Baku' => '[UTC +4] Азия/Баку',
'Asia/Bangkok' => '[UTC +7] Азия/Бангкок',
'Asia/Beirut' => '[UTC +2] Азия/Бейрут',
'Asia/Bishkek' => '[UTC +6] Азия/Бишкек',
'Asia/Brunei' => '[UTC +8] Азия/Бруней',
'Asia/Choibalsan' => '[UTC +8] Азия/Чойбалсан',
'Asia/Chongqing' => '[UTC +8] Азия/Чунцин',
'Asia/Colombo' => '[UTC +5.5] Азия/Коломбо',
'Asia/Damascus' => '[UTC +2] Азия/Дамаск',
'Asia/Dhaka' => '[UTC +6] Азия/Дакка',
'Asia/Dili' => '[UTC +9] Азия/Дили',
'Asia/Dubai' => '[UTC +4] Азия/Дубай',
'Asia/Dushanbe' => '[UTC +5] Азия/Душанбе',
'Asia/Gaza' => '[UTC +2] Азия/Газа',
'Asia/Harbin' => '[UTC +8] Азия/Харбин',
'Asia/Hebron' => '[UTC +2] Азия/Хеврон',
'Asia/Ho_Chi_Minh' => '[UTC +7] Азия/Хо Ши Мин',
'Asia/Hong_Kong' => '[UTC +8] Азия/Гонконг',
'Asia/Hovd' => '[UTC +7] Азия/Ховд',
'Asia/Irkutsk' => '[UTC +8] Азия/Иркутск',
'Asia/Jakarta' => '[UTC +7] Азия/Джакарта',
'Asia/Jayapura' => '[UTC +9] Азия/Джаяпура',
'Asia/Jerusalem' => '[UTC +2] Азия/Иерусалим',
'Asia/Kabul' => '[UTC +4.5] Азия/Кабул',
'Asia/Kamchatka' => '[UTC +12] Азия/Камчатка',
'Asia/Karachi' => '[UTC +5] Азия/Карачи',
'Asia/Kashgar' => '[UTC +6] Азия/Кашгар',
'Asia/Kathmandu' => '[UTC +5.75] Азия/Катманду',
'Asia/Khandyga' => '[UTC +9] Азия/Хандыга',
'Asia/Kolkata' => '[UTC +5.5] Азия/Калькутта',
'Asia/Krasnoyarsk' => '[UTC +7] Азия/Красноярск',
'Asia/Kuala_Lumpur' => '[UTC +8] Азия/Куала-Лумпур',
'Asia/Kuching' => '[UTC +8] Азия/Кучинг',
'Asia/Kuwait' => '[UTC +3] Азия/Кувейт',
'Asia/Macau' => '[UTC +8] Азия/Макао',
'Asia/Magadan' => '[UTC +10] Азия/Магадан',
'Asia/Makassar' => '[UTC +8] Азия/Макасар',
'Asia/Manila' => '[UTC +8] Азия/Манила',
'Asia/Muscat' => '[UTC +4] Азия/Маскат',
'Asia/Nicosia' => '[UTC +2] Азия/Никосия',
'Asia/Novokuznetsk' => '[UTC +7] Азия/Новокузнецк',
'Asia/Novosibirsk' => '[UTC +6] Азия/Новосибирск',
'Asia/Omsk' => '[UTC +6] Азия/Омск',
'Asia/Oral' => '[UTC +5] Азия/Уральск',
'Asia/Phnom_Penh' => '[UTC +7] Азия/Пномпень',
'Asia/Pontianak' => '[UTC +7] Азия/Понтианак',
'Asia/Pyongyang' => '[UTC +9] Азия/Пхеньян',
'Asia/Qatar' => '[UTC +3] Азия/Катар',
'Asia/Qyzylorda' => '[UTC +6] Азия/Кызылорда',
'Asia/Rangoon' => '[UTC +6.5] Азия/Рангун',
'Asia/Riyadh' => '[UTC +3] Азия/Эр-Рияд',
'Asia/Sakhalin' => '[UTC +10] Азия/Сахалин',
'Asia/Samarkand' => '[UTC +5] Азия/Самарканд',
'Asia/Seoul' => '[UTC +9] Азия/Сеул',
'Asia/Shanghai' => '[UTC +8] Азия/Шанхай',
'Asia/Singapore' => '[UTC +8] Азия/Сингапур',
'Asia/Taipei' => '[UTC +8] Азия/Тайбэй',
'Asia/Tashkent' => '[UTC +5] Азия/Ташкент',
'Asia/Tbilisi' => '[UTC +4] Азия/Тбилиси',
'Asia/Tehran' => '[UTC +3.5] Азия/Тегеран',
'Asia/Thimphu' => '[UTC +6] Азия/Тхимпху',
'Asia/Tokyo' => '[UTC +9] Азия/Токио',
'Asia/Ulaanbaatar' => '[UTC +8] Азия/Улан-Батор',
'Asia/Urumqi' => '[UTC +6] Азия/Урумчи',
'Asia/Ust-Nera' => '[UTC +10] Азия/Усть-Нера',
'Asia/Vientiane' => '[UTC +7] Азия/Вьентьян',
'Asia/Vladivostok' => '[UTC +10] Азия/Владивосток',
'Asia/Yakutsk' => '[UTC +9] Азия/Якутск',
'Asia/Yekaterinburg' => '[UTC +5] Азия/Екатеринбург',
'Asia/Yerevan' => '[UTC +4] Азия/Ереван',
'America/Adak' => '[UTC -10] Америка/Адак',
'America/Anchorage' => '[UTC -9] Америка/Анкоридж',
'America/Anguilla' => '[UTC -4] Америка/Ангилья',
'America/Antigua' => '[UTC -4] Америка/Антигуа',
'America/Araguaina' => '[UTC -3] Америка/Арагуаина',
'America/Argentina/Buenos_Aires' => '[UTC -3] Америка/Аргентина/Буэнос-Айрес',
'America/Argentina/Catamarca' => '[UTC -3] Америка/Аргентина/Катамарка',
'America/Argentina/Cordoba' => '[UTC -3] Америка/Аргентина/Кордова',
'America/Argentina/Jujuy' => '[UTC -3] Америка/Аргентина/Жужуй',
'America/Argentina/La_Rioja' => '[UTC -3] Америка/Аргентина/Ла-Риоха',
'America/Argentina/Mendoza' => '[UTC -3] Америка/Аргентина/Мендоса',
'America/Argentina/Rio_Gallegos' => '[UTC -3] Америка/Аргентина/Рио-Гальегос',
'America/Argentina/Salta' => '[UTC -3] Америка/Аргентина/Сальта',
'America/Argentina/San_Juan' => '[UTC -3] Америка/Аргентина/Сан-Хуан',
'America/Argentina/San_Luis' => '[UTC -3] Америка/Аргентина/Сан-Луис',
'America/Argentina/Tucuman' => '[UTC -3] Америка/Аргентина/Тукуман',
'America/Argentina/Ushuaia' => '[UTC -3] Америка/Аргентина/Ушуая',
'America/Aruba' => '[UTC -4] Америка/Аруба',
'America/Asuncion' => '[UTC -3] Америка/Асунсьон',
'America/Atikokan' => '[UTC -5] Америка/Атикокан',
'America/Bahia' => '[UTC -3] Америка/Баия',
'America/Bahia_Banderas' => '[UTC -6] Америка/Баия-де-Бандерас',
'America/Barbados' => '[UTC -4] Америка/Барбадос',
'America/Belem' => '[UTC -3] Америка/Белен',
'America/Belize' => '[UTC -6] Америка/Белиз',
'America/Blanc-Sablon' => '[UTC -4] Америка/Блан-Саблон',
'America/Boa_Vista' => '[UTC -4] Америка/Боа-Виста',
'America/Bogota' => '[UTC -5] Америка/Богота',
'America/Boise' => '[UTC -7] Америка/Бойсе',
'America/Cambridge_Bay' => '[UTC -7] Америка/Кеймбридж-Бей',
'America/Campo_Grande' => '[UTC -3] Америка/Кампу-Гранди',
'America/Cancun' => '[UTC -6] Америка/Канкун',
'America/Caracas' => '[UTC -4.5] Америка/Каракас',
'America/Cayenne' => '[UTC -3] Америка/Кайенна',
'America/Cayman' => '[UTC -5] Америка/Кайман',
'America/Chicago' => '[UTC -6] Америка/Чикаго',
'America/Chihuahua' => '[UTC -7] Америка/Чиуауа',
'America/Costa_Rica' => '[UTC -6] Америка/Коста-Рика',
'America/Creston' => '[UTC -7] Америка/Крестон',
'America/Cuiaba' => '[UTC -3] Америка/Куяба',
'America/Curacao' => '[UTC -4] Америка/Кюрасао',
'America/Danmarkshavn' => '[UTC] Америка/Данмарксхавн',
'America/Dawson' => '[UTC -8] Америка/Доусон',
'America/Dawson_Creek' => '[UTC -7] Америка/Досон-Крик',
'America/Denver' => '[UTC -7] Америка/Денвер',
'America/Detroit' => '[UTC -5] Америка/Детройт',
'America/Dominica' => '[UTC -4] Америка/Доминика',
'America/Edmonton' => '[UTC -7] Америка/Эдмонтон',
'America/Eirunepe' => '[UTC -5] Америка/Эйрунепе',
'America/El_Salvador' => '[UTC -6] Америка/Сальвадор',
'America/Fortaleza' => '[UTC -3] Америка/Форталеза',
'America/Glace_Bay' => '[UTC -4] Америка/Глейс-Бей',
'America/Godthab' => '[UTC -3] Америка/Готхоб',
'America/Goose_Bay' => '[UTC -4] Америка/Гус-Бей',
'America/Grand_Turk' => '[UTC -5] Америка/Гранд-Терк',
'America/Grenada' => '[UTC -4] Америка/Гренада',
'America/Guadeloupe' => '[UTC -4] Америка/Гваделупа',
'America/Guatemala' => '[UTC -6] Америка/Гватемала',
'America/Guayaquil' => '[UTC -5] Америка/Гуаякиль',
'America/Guyana' => '[UTC -4] Америка/Гайана',
'America/Halifax' => '[UTC -4] Америка/Галифакс',
'America/Havana' => '[UTC -5] Америка/Гавана',
'America/Hermosillo' => '[UTC -7] Америка/Эрмосильо',
'America/Indiana/Indianapolis' => '[UTC -5] Америка/Индиана/Индианаполис',
'America/Indiana/Knox' => '[UTC -6] Америка/Индиана/Нокс',
'America/Indiana/Marengo' => '[UTC -5] Америка/Индиана/Маренго',
'America/Indiana/Petersburg' => '[UTC -5] Америка/Индиана/Петерсберг',
'America/Indiana/Tell_City' => '[UTC -6] Америка/Индиана/Телл Сити',
'America/Indiana/Vevay' => '[UTC -5] Америка/Индиана/Вевей',
'America/Indiana/Vincennes' => '[UTC -5] Америка/Индиана/Винсенс',
'America/Indiana/Winamac' => '[UTC -5] Америка/Индиана/Уинамак',
'America/Inuvik' => '[UTC -7] Америка/Инувик',
'America/Iqaluit' => '[UTC -5] Америка/Икалуит',
'America/Jamaica' => '[UTC -5] Америка/Ямайка',
'America/Juneau' => '[UTC -9] Америка/Джуно',
'America/Kentucky/Louisville' => '[UTC -5] Америка/Кентукки/Луисвилл',
'America/Kentucky/Monticello' => '[UTC -5] Америка/Кентукки/Монтиселло',
'America/Kralendijk' => '[UTC -4] Америка/Кралендейк',
'America/La_Paz' => '[UTC -4] Америка/Ла-Пас',
'America/Lima' => '[UTC -5] Америка/Лима',
'America/Los_Angeles' => '[UTC -8] Америка/Лос-Анджелес',
'America/Lower_Princes' => '[UTC -4] Америка/Лоуэр-Принсес',
'America/Maceio' => '[UTC -3] Америка/Масейо',
'America/Managua' => '[UTC -6] Америка/Манагуа',
'America/Manaus' => '[UTC -4] Америка/Манаус',
'America/Marigot' => '[UTC -4] Америка/Мариго',
'America/Martinique' => '[UTC -4] Америка/Мартиника',
'America/Matamoros' => '[UTC -6] Америка/Матаморос',
'America/Mazatlan' => '[UTC -7] Америка/Масатлан',
'America/Menominee' => '[UTC -6] Америка/Меномини',
'America/Merida' => '[UTC -6] Америка/Мерида',
'America/Metlakatla' => '[UTC -8] Америка/Метлакатла',
'America/Mexico_City' => '[UTC -6] Америка/Мехико',
'America/Miquelon' => '[UTC -3] Америка/Микелон',
'America/Moncton' => '[UTC -4] Америка/Монктон',
'America/Monterrey' => '[UTC -6] Америка/Монтеррей',
'America/Montevideo' => '[UTC -2] Америка/Монтевидео',
'America/Montreal' => '[UTC -5] Америка/Монреаль',
'America/Montserrat' => '[UTC -4] Америка/Монтсеррат',
'America/Nassau' => '[UTC -5] Америка/Нассау',
'America/New_York' => '[UTC -5] Америка/Нью-Йорк',
'America/Nipigon' => '[UTC -5] Америка/Нипигон',
'America/Nome' => '[UTC -9] Америка/Ном',
'America/Noronha' => '[UTC -2] Америка/Норонья',
'America/North_Dakota/Beulah' => '[UTC -6] Америка/Северная Дакота/Бойла',
'America/North_Dakota/Center' => '[UTC -6] Америка/Северная Дакота/Центр',
'America/North_Dakota/New_Salem' => '[UTC -6] Америка/Северная Дакота/Новый Салем',
'America/Ojinaga' => '[UTC -7] Америка/Охинага',
'America/Panama' => '[UTC -5] Америка/Панама',
'America/Pangnirtung' => '[UTC -5] Америка/Пангниртанг',
'America/Paramaribo' => '[UTC -3] Америка/Парамарибо',
'America/Phoenix' => '[UTC -7] Америка/Финикс',
'America/Port-au-Prince' => '[UTC -5] Америка/Порт-о-Пренс',
'America/Port_of_Spain' => '[UTC -4] Америка/Порт-оф-Спейн',
'America/Porto_Velho' => '[UTC -4] Америка/Порту-Велью',
'America/Puerto_Rico' => '[UTC -4] Америка/Пуэрто-Рико',
'America/Rainy_River' => '[UTC -6] Америка/Рейни-Ривер',
'America/Rankin_Inlet' => '[UTC -6] Америка/Залив Ранкин',
'America/Recife' => '[UTC -3] Америка/Ресифи',
'America/Regina' => '[UTC -6] Америка/Риджайна',
'America/Resolute' => '[UTC -6] Америка/Резольют',
'America/Rio_Branco' => '[UTC -5] Америка/Риу-Бранку',
'America/Santa_Isabel' => '[UTC -8] Америка/Санта-Исабель',
'America/Santarem' => '[UTC -3] Америка/Сантарен',
'America/Santiago' => '[UTC -3] Америка/Сантьяго',
'America/Santo_Domingo' => '[UTC -4] Америка/Санто-Доминго',
'America/Sao_Paulo' => '[UTC -2] Америка/Сан-Паулу',
'America/Scoresbysund' => '[UTC -1] Америка/Скорсбисунн',
'America/Shiprock' => '[UTC -7] Америка/Шипрок',
'America/Sitka' => '[UTC -9] Америка/Ситка',
'America/St_Barthelemy' => '[UTC -4] Америка/Сент-Бартелеми',
'America/St_Johns' => '[UTC -3.5] Америка/Сент-Джонс',
'America/St_Kitts' => '[UTC -4] Америка/Сент-Китс',
'America/St_Lucia' => '[UTC -4] Америка/Сент-Люсия',
'America/St_Thomas' => '[UTC -4] Америка/Сент-Томас',
'America/St_Vincent' => '[UTC -4] Америка/Сент-Винсент',
'America/Swift_Current' => '[UTC -6] Америка/Суифт-Каррент',
'America/Tegucigalpa' => '[UTC -6] Америка/Тегусигальпа',
'America/Thule' => '[UTC -4] Америка/Туле',
'America/Thunder_Bay' => '[UTC -5] Америка/Тандер-Бей',
'America/Tijuana' => '[UTC -8] Америка/Тихуана',
'America/Toronto' => '[UTC -5] Америка/Торонто',
'America/Tortola' => '[UTC -4] Америка/Тортола',
'America/Vancouver' => '[UTC -8] Америка/Ванкувер',
'America/Whitehorse' => '[UTC -8] Америка/Уайтхорс',
'America/Winnipeg' => '[UTC -6] Америка/Виннипег',
'America/Yakutat' => '[UTC -9] Америка/Якутат',
'America/Yellowknife' => '[UTC -7] Америка/Йеллоунайф',
'Antarctica/Casey' => '[UTC +8] Антарктика/Кейси',
'Antarctica/Davis' => '[UTC +7] Антарктика/Дейвис',
'Antarctica/DumontDUrville' => '[UTC +10] Антарктика/Дюмон-д’Юрвиль',
'Antarctica/Macquarie' => '[UTC +11] Антарктика/Маккуари',
'Antarctica/Mawson' => '[UTC +5] Антарктика/Моусон',
'Antarctica/McMurdo' => '[UTC +13] Антарктика/Мак-Мердо',
'Antarctica/Palmer' => '[UTC -3] Антарктика/Палмер',
'Antarctica/Rothera' => '[UTC -3] Антарктика/Ротера',
'Antarctica/South_Pole' => '[UTC +13] Антарктика/Южный полюс',
'Antarctica/Syowa' => '[UTC +3] Антарктика/Сёва',
'Antarctica/Vostok' => '[UTC +6] Антарктика/Восток',
'Arctic/Longyearbyen' => '[UTC +1] Арктика/Шпицберген',
'Atlantic/Azores' => '[UTC -1] Атлантический океан/Азорские Острова',
'Atlantic/Bermuda' => '[UTC -4] Атлантический океан/Бермудские Острова',
'Atlantic/Canary' => '[UTC] Атлантический океан/Канарские Острова',
'Atlantic/Cape_Verde' => '[UTC -1] Атлантический океан/Острова Зеленого Мыса',
'Atlantic/Faroe' => '[UTC] Атлантический океан/Фарерские Острова',
'Atlantic/Madeira' => '[UTC] Атлантический океан/Мадейра',
'Atlantic/Reykjavik' => '[UTC] Атлантический океан/Рейкьявик',
'Atlantic/South_Georgia' => '[UTC -2] Атлантический океан/Южная Георгия',
'Atlantic/St_Helena' => '[UTC] Атлантический океан/Остров Святой Елены',
'Atlantic/Stanley' => '[UTC -3] Атлантический океан/Стэнли',
'Australia/Adelaide' => '[UTC +10.5] Австралия/Аделаида',
'Australia/Brisbane' => '[UTC +10] Австралия/Брисбен',
'Australia/Broken_Hill' => '[UTC +10.5] Австралия/Брокен-Хилл',
'Australia/Currie' => '[UTC +11] Австралия/Керри',
'Australia/Darwin' => '[UTC +9.5] Австралия/Дарвин',
'Australia/Eucla' => '[UTC +8.75] Австралия/Юкла',
'Australia/Hobart' => '[UTC +11] Австралия/Хобарт',
'Australia/Lindeman' => '[UTC +10] Австралия/Линдман',
'Australia/Lord_Howe' => '[UTC +11] Австралия/Остров Лорд-Хау',
'Australia/Melbourne' => '[UTC +11] Австралия/Мельбурн',
'Australia/Perth' => '[UTC +8] Австралия/Перт',
'Australia/Sydney' => '[UTC +11] Австралия/Сидней',
'Indian/Antananarivo' => '[UTC +3] Индийский океан/Антананариву',
'Indian/Chagos' => '[UTC +6] Индийский океан/Чагос',
'Indian/Christmas' => '[UTC +7] Индийский океан/Кристмас',
'Indian/Cocos' => '[UTC +6.5] Индийский океан/Кокосовые острова',
'Indian/Comoro' => '[UTC +3] Индийский океан/Коморские Острова',
'Indian/Kerguelen' => '[UTC +5] Индийский океан/Кергелен',
'Indian/Mahe' => '[UTC +4] Индийский океан/Маэ',
'Indian/Maldives' => '[UTC +5] Индийский океан/Мальдивы',
'Indian/Mauritius' => '[UTC +4] Индийский океан/Маврикий',
'Indian/Mayotte' => '[UTC +3] Индийский океан/Майотта',
'Indian/Reunion' => '[UTC +4] Индийский океан/Реюньон',
'Pacific/Apia' => '[UTC +14] Тихий океан/Апиа',
'Pacific/Auckland' => '[UTC +13] Тихий океан/Окленд',
'Pacific/Chatham' => '[UTC +13.75] Тихий океан/Чатем',
'Pacific/Chuuk' => '[UTC +10] Тихий океан/Чуук',
'Pacific/Easter' => '[UTC -5] Тихий океан/Остров Пасхи',
'Pacific/Efate' => '[UTC +11] Тихий океан/Эфате',
'Pacific/Enderbury' => '[UTC +13] Тихий океан/Эндербери',
'Pacific/Fakaofo' => '[UTC +13] Тихий океан/Факаофо',
'Pacific/Fiji' => '[UTC +13] Тихий океан/Фиджи',
'Pacific/Funafuti' => '[UTC +12] Тихий океан/Фунафути',
'Pacific/Galapagos' => '[UTC -6] Тихий океан/Галапагос',
'Pacific/Gambier' => '[UTC -9] Тихий океан/Острова Гамбье',
'Pacific/Guadalcanal' => '[UTC +11] Тихий океан/Гуадалканал',
'Pacific/Guam' => '[UTC +10] Тихий океан/Гуам',
'Pacific/Honolulu' => '[UTC -10] Тихий океан/Гонолулу',
'Pacific/Johnston' => '[UTC -10] Тихий океан/Джонстон',
'Pacific/Kiritimati' => '[UTC +14] Тихий океан/Кирибати',
'Pacific/Kosrae' => '[UTC +11] Тихий океан/Кусаие',
'Pacific/Kwajalein' => '[UTC +12] Тихий океан/Кваджалейн',
'Pacific/Majuro' => '[UTC +12] Тихий океан/Маджуро',
'Pacific/Marquesas' => '[UTC -9.5] Тихий океан/Маркизские острова',
'Pacific/Midway' => '[UTC -11] Тихий океан/Мидуэй',
'Pacific/Nauru' => '[UTC +12] Тихий океан/Науру',
'Pacific/Niue' => '[UTC -11] Тихий океан/Ниуэ',
'Pacific/Norfolk' => '[UTC +11.5] Тихий океан/Норфолк',
'Pacific/Noumea' => '[UTC +11] Тихий океан/Нумеа',
'Pacific/Pago_Pago' => '[UTC -11] Тихий океан/Паго-Паго',
'Pacific/Palau' => '[UTC +9] Тихий океан/Палау',
'Pacific/Pitcairn' => '[UTC -8] Тихий океан/Питкэрн',
'Pacific/Pohnpei' => '[UTC +11] Тихий океан/Понпеи',
'Pacific/Port_Moresby' => '[UTC +10] Тихий океан/Порт-Морсби',
'Pacific/Rarotonga' => '[UTC -10] Тихий океан/Раротонга',
'Pacific/Saipan' => '[UTC +10] Тихий океан/Сайпан',
'Pacific/Tahiti' => '[UTC -10] Тихий океан/Таити',
'Pacific/Tarawa' => '[UTC +12] Тихий океан/Тарава',
'Pacific/Tongatapu' => '[UTC +13] Тихий океан/Тонгатапу',
'Pacific/Wake' => '[UTC +12] Тихий океан/Уэйк',
'Pacific/Wallis' => '[UTC +12] Тихий океан/Уоллис',
'Africa/Abidjan' => '[UTC] Африка/Абиджан',
'Africa/Accra' => '[UTC] Африка/Аккра',
'Africa/Addis_Ababa' => '[UTC +3] Африка/Аддис-Абеба',
'Africa/Algiers' => '[UTC +1] Африка/Алжир',
'Africa/Asmara' => '[UTC +3] Африка/Асмара',
'Africa/Bamako' => '[UTC] Африка/Бамако',
'Africa/Bangui' => '[UTC +1] Африка/Банги',
'Africa/Banjul' => '[UTC] Африка/Банджул',
'Africa/Bissau' => '[UTC] Африка/Бисау',
'Africa/Blantyre' => '[UTC +2] Африка/Блантайр',
'Africa/Brazzaville' => '[UTC +1] Африка/Браззавиль',
'Africa/Bujumbura' => '[UTC +2] Африка/Бужумбура',
'Africa/Cairo' => '[UTC +2] Африка/Каир',
'Africa/Casablanca' => '[UTC] Африка/Касабланка',
'Africa/Ceuta' => '[UTC +1] Африка/Сеута',
'Africa/Conakry' => '[UTC] Африка/Конакри',
'Africa/Dakar' => '[UTC] Африка/Дакар',
'Africa/Dar_es_Salaam' => '[UTC +3] Африка/Дар-эс-Салам',
'Africa/Djibouti' => '[UTC +3] Африка/Джибути',
'Africa/Douala' => '[UTC +1] Африка/Дуала',
'Africa/El_Aaiun' => '[UTC] Африка/Эль-Аюн',
'Africa/Freetown' => '[UTC] Африка/Фритаун',
'Africa/Gaborone' => '[UTC +2] Африка/Габороне',
'Africa/Harare' => '[UTC +2] Африка/Хараре',
'Africa/Johannesburg' => '[UTC +2] Африка/Йоханнесбург',
'Africa/Juba' => '[UTC +3] Африка/Джуба',
'Africa/Kampala' => '[UTC +3] Африка/Кампала',
'Africa/Khartoum' => '[UTC +3] Африка/Хартум',
'Africa/Kigali' => '[UTC +2] Африка/Кигали',
'Africa/Kinshasa' => '[UTC +1] Африка/Киншаса',
'Africa/Lagos' => '[UTC +1] Африка/Лагос',
'Africa/Libreville' => '[UTC +1] Африка/Либревиль',
'Africa/Lome' => '[UTC] Африка/Ломе',
'Africa/Luanda' => '[UTC +1] Африка/Луанда',
'Africa/Lubumbashi' => '[UTC +2] Африка/Лубумбаши',
'Africa/Lusaka' => '[UTC +2] Африка/Лусака',
'Africa/Malabo' => '[UTC +1] Африка/Малабо',
'Africa/Maputo' => '[UTC +2] Африка/Мапуту',
'Africa/Maseru' => '[UTC +2] Африка/Масеру',
'Africa/Mbabane' => '[UTC +2] Африка/Мбабане',
'Africa/Mogadishu' => '[UTC +3] Африка/Могадишо',
'Africa/Monrovia' => '[UTC] Африка/Монровия',
'Africa/Nairobi' => '[UTC +3] Африка/Найроби',
'Africa/Ndjamena' => '[UTC +1] Африка/Нджамена',
'Africa/Niamey' => '[UTC +1] Африка/Ниамей',
'Africa/Nouakchott' => '[UTC] Африка/Нуакшот',
'Africa/Ouagadougou' => '[UTC] Африка/Уагадугу',
'Africa/Porto-Novo' => '[UTC +1] Африка/Порто-Ново',
'Africa/Sao_Tome' => '[UTC] Африка/Сан-Томе',
'Africa/Tripoli' => '[UTC +2] Африка/Триполи',
'Africa/Tunis' => '[UTC +1] Африка/Тунис',
'Africa/Windhoek' => '[UTC +2] Африка/Виндхук',
),
),
/**
* Теги
*/
'tags' => array(
'tags' => array(
'tags' => 'Теги',
'tag' => 'Тег',
'search' => array(
@ -2157,14 +1615,14 @@ return array(
/**
* Теги избранных топиков
*/
'favourite_tags' => array(
'favourite_tags' => array(
'title' => 'Теги избранного',
'edit' => 'изменить свои теги',
),
/**
* Toolbar
*/
'toolbar' => array(
'toolbar' => array(
'scrollup' => array(
'title' => 'Вверх',
),
@ -2176,7 +1634,7 @@ return array(
/**
* Создание
*/
'modal_create' => array(
'modal_create' => array(
'title' => 'Создать',
'items' => array(
'blog' => 'Блог',
@ -2186,13 +1644,13 @@ return array(
/**
* Обрезка изображения
*/
'crop' => array(
'crop' => array(
'title' => 'Обрезка изображения'
),
/**
* Экшнбар
*/
'actionbar' => array(
'actionbar' => array(
'select' => array(
'title' => 'Выбрать',
'menu' => array(
@ -2205,14 +1663,14 @@ return array(
/**
* Подгрузка контента
*/
'more' => array(
'text' => 'Подгрузить еще',
'more' => array(
'text' => 'Подгрузить еще',
'empty' => 'Больше нечего подгружать'
),
/**
* Управление правами (RBAC)
*/
'rbac' => array(
'rbac' => array(
'permission' => array(
'create_blog' => array(
'title' => 'Создание блога',
@ -2264,22 +1722,4 @@ return array(
),
),
),
/**
* Системные сообщения
*/
'error' => 'Ошибка',
'attention' => 'Внимание',
'system_error' => 'Системная ошибка, повторите позже',
'system_error_event_args' => 'Некорректное число аргументов при добавлении евента',
'system_error_event_method' => 'Добавляемый метод евента не найден',
'system_error_module' => 'Не найден класс модуля',
'system_error_module_no_method' => 'В модуле нет необходимого метода',
'system_error_cache_type' => 'Неверный тип кеширования',
'system_error_template' => 'Не найден шаблон',
'system_error_template_block' => 'Не найден шаблон подключаемого блока',
'install_directory_exists' => 'Для работы с сайтом удалите директорию /application/install.',
'need_authorization' => 'Необходимо авторизоваться!',
'not_access' => 'Нет доступа',
'site_history_back' => 'Вернуться назад',
'site_go_main' => 'перейти на главную',
);

View file

@ -9,5 +9,5 @@
{/block}
{block 'layout_content'}
<a href="{router page='/'}">{$aLang.site_go_main}</a>
<a href="{router page='/'}">{$aLang.common.site_go_main}</a>
{/block}

View file

@ -11,5 +11,5 @@
{block 'layout_content'}
{$aLang.auth.registration.confirm.text}<br /><br />
<a href="{router page='/'}">{$aLang.site_go_main}</a>
<a href="{router page='/'}">{$aLang.common.site_go_main}</a>
{/block}

View file

@ -17,7 +17,7 @@
{block 'layout_content'}
<p>{$aMsgError[0].msg}</p>
<p>
<a href="javascript:history.go(-1);">{$aLang.site_history_back}</a>,
<a href="{router page='/'}">{$aLang.site_go_main}</a>
<a href="javascript:history.go(-1);">{$aLang.common.site_history_back}</a>,
<a href="{router page='/'}">{$aLang.common.site_go_main}</a>
</p>
{/block}

@ -1 +1 @@
Subproject commit ef81022a97a3233a18d6a87c08c5160daab3c007
Subproject commit 0bad3dd2d8a6228c64a4332da43e6b6ea49b068a