From e3f26447c1a7f3c1ba1e85cb360e7e4093a1f232 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Sun, 27 Oct 2013 10:37:10 +0300 Subject: [PATCH] Translate appp title in navigation --- appinfo/app.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appinfo/app.php b/appinfo/app.php index ed39863b..9823709b 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -25,12 +25,14 @@ OCP\App::register(array('order' => 70, 'id' => 'documents', 'name' => 'Documents OCP\App::registerAdmin('documents', 'settings'); 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' => 'Documents') + 'name' => $l10n->t('Documents')) ); OC::$CLASSPATH['OCA\Documents\Controller'] = 'documents/ajax/controller.php';