From 3ba29a5267ed27384d313871bfc8a754c437dd0d Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Tue, 12 Apr 2022 17:59:21 +0200 Subject: [PATCH] Changes menu entry. We realized with our users that when the apps Text and ONLYOFFICE are installed in parallel, this is a bit confusing. You can see a screenshot here, in french: https://forge.liiib.re/indiehost/tech/plateforme/-/issues/217#note_9733 So we propose this change. In relation to this change in [onlyoffice app](https://github.com/ONLYOFFICE/onlyoffice-nextcloud/pull/617). Signed-off-by: Pierre Ozoux --- lib/AppInfo/Application.php | 2 +- src/helpers/files.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index a370e80567b..aaa39fd18da 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -68,7 +68,7 @@ public function register(IRegistrationContext $context): void { public function boot(IBootContext $context): void { $context->injectFn(function (ITemplateManager $templateManager, IL10N $l) { $templateManager->registerTemplateFileCreator(function () use ($l) { - $markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text document'), '.md'); + $markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text file'), '.md'); $markdownFile->addMimetype('text/markdown'); $markdownFile->addMimetype('text/plain'); $markdownFile->setIconClass('icon-filetype-text'); diff --git a/src/helpers/files.js b/src/helpers/files.js index 551670052f2..67f281d0378 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -55,8 +55,8 @@ const registerFileCreate = () => { // register the new menu entry menu.addMenuEntry({ id: 'file', - displayName: t('text', 'New text document'), - templateName: t('text', 'New text document') + '.md', + displayName: t('text', 'New text file'), + templateName: t('text', 'New text file') + '.md', iconClass: 'icon-filetype-text', fileType: 'file', actionHandler(name) {