모두 lang() 함수로 변경

This commit is contained in:
conory 2016-03-06 17:01:15 +09:00
parent fc09ea0d47
commit 90400e2b5f
82 changed files with 234 additions and 234 deletions

View file

@ -267,7 +267,7 @@ class commentAdminController extends comment
{
$msgCode = 'success_deleted';
}
//$this->setMessage( sprintf(Context::getLang('msg_checked_comment_is_deleted'), $deleted_count) );
//$this->setMessage( sprintf(lang('msg_checked_comment_is_deleted'), $deleted_count) );
$this->setMessage($msgCode, 'info');
//set url params

View file

@ -207,7 +207,7 @@ class commentController extends comment
// if an user select message from options, message would be the option.
$message_option = strval(Context::get('message_option'));
$improper_comment_reasons = Context::getLang('improper_comment_reasons');
$improper_comment_reasons = lang('improper_comment_reasons');
$declare_message = ($message_option !== 'others' && isset($improper_comment_reasons[$message_option]))?
$improper_comment_reasons[$message_option] : trim(Context::get('declare_message'));
@ -594,7 +594,7 @@ class commentController extends comment
if(!$manual_inserted)
{
// send a message if notify_message option in enabled in the original article
$oDocument->notify(Context::getLang('comment'), $obj->content);
$oDocument->notify(lang('comment'), $obj->content);
// send a message if notify_message option in enabled in the original comment
if($obj->parent_srl)
@ -602,7 +602,7 @@ class commentController extends comment
$oParent = $oCommentModel->getComment($obj->parent_srl);
if($oParent->get('member_srl') != $oDocument->get('member_srl'))
{
$oParent->notify(Context::getLang('comment'), $obj->content);
$oParent->notify(lang('comment'), $obj->content);
}
}
}

View file

@ -312,7 +312,7 @@ class commentItem extends Object
{
if($this->isSecret() && !$this->isAccessible())
{
return Context::getLang('msg_is_secret');
return lang('msg_is_secret');
}
$content = $this->get('content');
@ -333,7 +333,7 @@ class commentItem extends Object
{
if($this->isSecret() && !$this->isAccessible())
{
return Context::getLang('msg_is_secret');
return lang('msg_is_secret');
}
$content = $this->get('content');
@ -343,7 +343,7 @@ class commentItem extends Object
if($add_popup_menu && Context::get('is_logged'))
{
$content = sprintf(
'%s<div class="comment_popup_menu"><a href="#popup_menu_area" class="comment_%d" onclick="return false">%s</a></div>', $content, $this->comment_srl, Context::getLang('cmd_comment_do')
'%s<div class="comment_popup_menu"><a href="#popup_menu_area" class="comment_%d" onclick="return false">%s</a></div>', $content, $this->comment_srl, lang('cmd_comment_do')
);
}

View file

@ -77,7 +77,7 @@ class commentModel extends comment
ModuleHandler::triggerCall('comment.getCommentMenu', 'after', $menu_list);
if($this->grant->manager){
$str_confirm = Context::getLang('confirm_move');
$str_confirm = lang('confirm_move');
$url = sprintf("if(!confirm('%s')) return; var params = new Array(); params['comment_srl']='%s'; params['mid']=current_mid;params['cur_url']=current_url; exec_xml('comment', 'procCommentAdminMoveToTrash', params)", $str_confirm, $comment_srl);
$oCommentController->addCommentPopupMenu($url,'cmd_trash','','javascript');
@ -106,7 +106,7 @@ class commentModel extends comment
for($i = 0; $i < $menus_count; $i++)
{
$menus[$i]->str = Context::getLang($menus[$i]->str);
$menus[$i]->str = lang($menus[$i]->str);
}
// get a list of final organized pop-up menus