ec1a73fab9
Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps
19 lines
461 B
PHP
19 lines
461 B
PHP
<?php
|
|
$l = \OC::$server->getL10N('files_trashbin');
|
|
|
|
OCP\Util::addTranslations('files_trashbin');
|
|
|
|
OC::$CLASSPATH['OCA\Files_Trashbin\Exceptions\CopyRecursiveException'] = 'files_trashbin/lib/exceptions.php';
|
|
|
|
// register hooks
|
|
\OCA\Files_Trashbin\Trashbin::registerHooks();
|
|
|
|
\OCA\Files\App::getNavigationManager()->add(
|
|
array(
|
|
"id" => 'trashbin',
|
|
"appname" => 'files_trashbin',
|
|
"script" => 'list.php',
|
|
"order" => 50,
|
|
"name" => $l->t('Deleted files')
|
|
)
|
|
);
|