translate error messages
This commit is contained in:
parent
bb80cf4eca
commit
55c28608c9
|
@ -638,15 +638,15 @@ class OC_Util {
|
||||||
if(version_compare(phpversion(), '5.6.0', '>=') &&
|
if(version_compare(phpversion(), '5.6.0', '>=') &&
|
||||||
\OC::$server->getIniWrapper()->getNumeric('always_populate_raw_post_data') !== -1) {
|
\OC::$server->getIniWrapper()->getNumeric('always_populate_raw_post_data') !== -1) {
|
||||||
$errors[] = array(
|
$errors[] = array(
|
||||||
'error' => 'PHP is configured to populate raw post data. Since PHP 5.6 this will lead to PHP throwing notices for perfectly valid code.',
|
'error' => $l->t('PHP is configured to populate raw post data. Since PHP 5.6 this will lead to PHP throwing notices for perfectly valid code.'),
|
||||||
'hint' => 'To fix this issue set <code>always_populate_raw_post_data</code> to <code>-1</code> in your php.ini'
|
'hint' => $l->t('To fix this issue set <code>always_populate_raw_post_data</code> to <code>-1</code> in your php.ini')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!self::isAnnotationsWorking()) {
|
if (!self::isAnnotationsWorking()) {
|
||||||
$errors[] = array(
|
$errors[] = array(
|
||||||
'error' => 'PHP is apparently setup to strip inline doc blocks. This will make several core apps inaccessible.',
|
'error' => $l->t('PHP is apparently setup to strip inline doc blocks. This will make several core apps inaccessible.'),
|
||||||
'hint' => 'This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator.'
|
'hint' => $l->t('This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator.')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue