mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
commit
cf26f20461
84 changed files with 285 additions and 234 deletions
|
|
@ -404,14 +404,14 @@ class Debug
|
|||
}
|
||||
|
||||
// Localize the error title.
|
||||
$title = \Context::getLang('msg_server_error');
|
||||
$title = lang('msg_server_error');
|
||||
if ($title === 'msg_server_error')
|
||||
{
|
||||
$message = 'Server Error';
|
||||
}
|
||||
|
||||
// Localize the error message.
|
||||
$message = ini_get('display_errors') ? $message : \Context::getLang('msg_server_error_see_log');
|
||||
$message = ini_get('display_errors') ? $message : lang('msg_server_error_see_log');
|
||||
if ($message === 'msg_server_error_see_log')
|
||||
{
|
||||
$message = 'Your server is configured to hide error messages. Please see your server\'s error log for details.';
|
||||
|
|
|
|||
|
|
@ -50,6 +50,16 @@ class Lang
|
|||
$this->_loaded_plugins['_custom_'] = new \stdClass();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return language type.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function langType()
|
||||
{
|
||||
return $this->_language;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load translations from a plugin (module, addon).
|
||||
*
|
||||
|
|
@ -187,6 +197,18 @@ class Lang
|
|||
return $this->__call($key, $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generic setter.
|
||||
*
|
||||
* @param string $key
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function set($key, $value)
|
||||
{
|
||||
$this->__set($key, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic method for translations without arguments.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue