|
|
@@ -101,6 +101,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
'locale' => 'auto',
|
|
|
'log' => null,
|
|
|
'logMessage' => "Untranslated message within '%locale%': %message%",
|
|
|
+ 'logPriority' => 5,
|
|
|
'logUntranslated' => false,
|
|
|
'reload' => false,
|
|
|
'route' => null,
|
|
|
@@ -423,7 +424,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
if (!isset($this->_translate[$temp[0]]) and !isset($this->_translate[$locale])) {
|
|
|
if (!$this->_options['disableNotices']) {
|
|
|
if ($this->_options['log']) {
|
|
|
- $this->_options['log']->notice("The language '{$locale}' has to be added before it can be used.");
|
|
|
+ $this->_options['log']->log("The language '{$locale}' has to be added before it can be used.", $this->_options['logPriority']);
|
|
|
} else {
|
|
|
trigger_error("The language '{$locale}' has to be added before it can be used.", E_USER_NOTICE);
|
|
|
}
|
|
|
@@ -436,7 +437,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
if (empty($this->_translate[$locale])) {
|
|
|
if (!$this->_options['disableNotices']) {
|
|
|
if ($this->_options['log']) {
|
|
|
- $this->_options['log']->notice("No translation for the language '{$locale}' available.");
|
|
|
+ $this->_options['log']->log("No translation for the language '{$locale}' available.", $this->_options['logPriority']);
|
|
|
} else {
|
|
|
trigger_error("No translation for the language '{$locale}' available.", E_USER_NOTICE);
|
|
|
}
|
|
|
@@ -817,7 +818,7 @@ abstract class Zend_Translate_Adapter {
|
|
|
$message = str_replace('%message%', $message, $this->_options['logMessage']);
|
|
|
$message = str_replace('%locale%', $locale, $message);
|
|
|
if ($this->_options['log']) {
|
|
|
- $this->_options['log']->notice($message);
|
|
|
+ $this->_options['log']->log($message, $this->_options['logPriority']);
|
|
|
} else {
|
|
|
trigger_error($message, E_USER_NOTICE);
|
|
|
}
|