Unify translation
This commit is contained in:
parent
dd8e3242fb
commit
caf3678ce0
@ -5,8 +5,6 @@ namespace OCA\Documents;
|
||||
\OCP\JSON::callCheck();
|
||||
\OCP\JSON::checkAdminUser();
|
||||
|
||||
$l10n = \OCP\Util::getL10N('documents');
|
||||
|
||||
$converter = isset($_POST['converter']) ? $_POST['converter'] : null;
|
||||
$url = isset($_POST['url']) ? $_POST['url'] : null;
|
||||
try {
|
||||
@ -21,7 +19,7 @@ try {
|
||||
if (Config::getConverter()!='local'){
|
||||
if (!Converter::checkConnection()){
|
||||
Helper::warnLog('Bad response from Format Filter Server');
|
||||
\OCP\JSON::error(array('message' => $l10n->t('Format filter server is down or misconfigured') ));
|
||||
\OCP\JSON::error(array('message' => Config::getL10n()->t('Format filter server is down or misconfigured') ));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -26,14 +26,12 @@ OCP\App::register(array('order' => 70, 'id' => 'documents', 'name' => 'Documents
|
||||
\OCP\App::registerAdmin('documents', 'admin');
|
||||
OCP\App::registerPersonal('documents', 'personal');
|
||||
|
||||
$l10n = \OCP\Util::getL10N('documents');
|
||||
|
||||
OCP\App::addNavigationEntry(array(
|
||||
'id' => 'documents_index',
|
||||
'order' => 2,
|
||||
'href' => OCP\Util::linkTo('documents', 'index.php'),
|
||||
'icon' => OCP\Util::imagePath('documents', 'documents.svg'),
|
||||
'name' => $l10n->t('Documents'))
|
||||
'name' => OCA\Documents\Config::getL10n()->t('Documents'))
|
||||
);
|
||||
|
||||
OC::$CLASSPATH['OCA\Documents\Controller'] = 'documents/ajax/controller.php';
|
||||
|
Loading…
x
Reference in New Issue
Block a user