Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ozoux <pierre@ozoux.net>2022-04-12 18:59:21 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-05-20 14:37:29 +0300
commited92e1346fcf0d35cfb75a1aa58fec4490a00561 (patch)
tree777b4dcb77fc006255308468d6940059f7bd5b54
parentea06709ff41b2846a04091191f588ebf6bd97cf7 (diff)
Changes menu entry.backport/2292/stable24
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 <pierre@ozoux.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
-rw-r--r--lib/AppInfo/Application.php2
-rw-r--r--src/helpers/files.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index a370e8056..aaa39fd18 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -68,7 +68,7 @@ class Application extends App implements IBootstrap {
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 551670052..67f281d03 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) {