Skip to content

Commit ed92e13

Browse files
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](ONLYOFFICE/onlyoffice-nextcloud#617). Signed-off-by: Pierre Ozoux <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent ea06709 commit ed92e13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/AppInfo/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function register(IRegistrationContext $context): void {
6868
public function boot(IBootContext $context): void {
6969
$context->injectFn(function (ITemplateManager $templateManager, IL10N $l) {
7070
$templateManager->registerTemplateFileCreator(function () use ($l) {
71-
$markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text document'), '.md');
71+
$markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text file'), '.md');
7272
$markdownFile->addMimetype('text/markdown');
7373
$markdownFile->addMimetype('text/plain');
7474
$markdownFile->setIconClass('icon-filetype-text');

src/helpers/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ const registerFileCreate = () => {
5555
// register the new menu entry
5656
menu.addMenuEntry({
5757
id: 'file',
58-
displayName: t('text', 'New text document'),
59-
templateName: t('text', 'New text document') + '.md',
58+
displayName: t('text', 'New text file'),
59+
templateName: t('text', 'New text file') + '.md',
6060
iconClass: 'icon-filetype-text',
6161
fileType: 'file',
6262
actionHandler(name) {

0 commit comments

Comments
 (0)