mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
모두 lang() 함수로 변경
This commit is contained in:
parent
fc09ea0d47
commit
90400e2b5f
82 changed files with 234 additions and 234 deletions
|
|
@ -160,7 +160,7 @@ class boardView extends board
|
|||
* add extra vaiables to the search options
|
||||
**/
|
||||
// use search options on the template (the search options key has been declared, based on the language selected)
|
||||
foreach($this->search_option as $opt) $search_option[$opt] = Context::getLang($opt);
|
||||
foreach($this->search_option as $opt) $search_option[$opt] = lang($opt);
|
||||
$extra_keys = Context::get('extra_keys');
|
||||
if($extra_keys)
|
||||
{
|
||||
|
|
@ -328,7 +328,7 @@ class boardView extends board
|
|||
// disappear the document if it is secret
|
||||
if($oDocument->isSecret() && !$oDocument->isGranted())
|
||||
{
|
||||
$oDocument->add('content',Context::getLang('thisissecret'));
|
||||
$oDocument->add('content',lang('thisissecret'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -432,7 +432,7 @@ class boardView extends board
|
|||
{
|
||||
if(!$val->isAccessible())
|
||||
{
|
||||
$val->add('content',Context::getLang('thisissecret'));
|
||||
$val->add('content',lang('thisissecret'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -700,7 +700,7 @@ class boardView extends board
|
|||
{
|
||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = Context::getLang('msg_protect_regdate_document');
|
||||
$format = lang('msg_protect_regdate_document');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
return new Object(-1, $massage);
|
||||
}
|
||||
|
|
@ -827,7 +827,7 @@ class boardView extends board
|
|||
{
|
||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = Context::getLang('msg_protect_regdate_document');
|
||||
$format = lang('msg_protect_regdate_document');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
return new Object(-1, $massage);
|
||||
}
|
||||
|
|
@ -989,7 +989,7 @@ class boardView extends board
|
|||
{
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = Context::getLang('msg_protect_regdate_comment');
|
||||
$format = lang('msg_protect_regdate_comment');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
return new Object(-1, $massage);
|
||||
}
|
||||
|
|
@ -1057,7 +1057,7 @@ class boardView extends board
|
|||
{
|
||||
if($oComment->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||
{
|
||||
$format = Context::getLang('msg_protect_regdate_comment');
|
||||
$format = lang('msg_protect_regdate_comment');
|
||||
$massage = sprintf($format, $this->module_info->protect_document_regdate);
|
||||
return new Object(-1, $massage);
|
||||
}
|
||||
|
|
@ -1136,7 +1136,7 @@ class boardView extends board
|
|||
**/
|
||||
function dispBoardMessage($msg_code)
|
||||
{
|
||||
$msg = Context::getLang($msg_code);
|
||||
$msg = lang($msg_code);
|
||||
if(!$msg) $msg = $msg_code;
|
||||
Context::set('message', $msg);
|
||||
$this->setTemplateFile('message');
|
||||
|
|
@ -1186,7 +1186,7 @@ class boardView extends board
|
|||
**/
|
||||
function alertMessage($message)
|
||||
{
|
||||
$script = sprintf('<script> jQuery(function(){ alert("%s"); } );</script>', Context::getLang($message));
|
||||
$script = sprintf('<script> jQuery(function(){ alert("%s"); } );</script>', lang($message));
|
||||
Context::addHtmlFooter( $script );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue