diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-27 11:37:10 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-10-27 11:37:33 +0400 |
commit | e3f26447c1a7f3c1ba1e85cb360e7e4093a1f232 (patch) | |
tree | f64591cfc76c5561ed861e1370710f06e8491f83 /appinfo/app.php | |
parent | c59e4a8717f0f4f3852a483b2d2b32c5161f8a89 (diff) |
Translate appp title in navigation
Diffstat (limited to 'appinfo/app.php')
-rwxr-xr-x | appinfo/app.php | 4 |
1 files changed, 3 insertions, 1 deletions
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'; |