From 264b76387f83aa228cda8b72fcf97536f6fa8010 Mon Sep 17 00:00:00 2001 From: Dennis1993 Date: Sat, 24 Feb 2024 11:55:17 +0100 Subject: [PATCH] Update Application.php PR for https://github.com/nextcloud/officeonline/issues/522 use correct language for new files in menu Signed-off-by: Dennis1993 --- lib/AppInfo/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 0611f0fe..d0addce7 100755 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -198,7 +198,7 @@ private function registerNewFileCreators($context) { } $ooxml = $config->getAppValue(self::APP_ID, 'doc_format', '') === 'ooxml'; $templateManager->registerTemplateFileCreator(function () use ($l10n, $ooxml) { - $odtType = new TemplateFileCreator('richdocuments', $l10n->t('New document'), ($ooxml ? '.docx' : '.odt')); + $odtType = new TemplateFileCreator('richdocuments', $l10n->t('New Document'), ($ooxml ? '.docx' : '.odt')); if ($ooxml) { $odtType->addMimetype('application/msword'); $odtType->addMimetype('application/vnd.openxmlformats-officedocument.wordprocessingml.document'); @@ -211,7 +211,7 @@ private function registerNewFileCreators($context) { return $odtType; }); $templateManager->registerTemplateFileCreator(function () use ($l10n, $ooxml) { - $odsType = new TemplateFileCreator('richdocuments', $l10n->t('New spreadsheet'), ($ooxml ? '.xlsx' : '.ods')); + $odsType = new TemplateFileCreator('richdocuments', $l10n->t('New Spreadsheet'), ($ooxml ? '.xlsx' : '.ods')); if ($ooxml) { $odsType->addMimetype('application/vnd.ms-excel'); $odsType->addMimetype('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); @@ -224,7 +224,7 @@ private function registerNewFileCreators($context) { return $odsType; }); $templateManager->registerTemplateFileCreator(function () use ($l10n, $ooxml) { - $odpType = new TemplateFileCreator('richdocuments', $l10n->t('New presentation'), ($ooxml ? '.pptx' : '.odp')); + $odpType = new TemplateFileCreator('richdocuments', $l10n->t('New Presentation'), ($ooxml ? '.pptx' : '.odp')); if ($ooxml) { $odpType->addMimetype('application/vnd.ms-powerpoint'); $odpType->addMimetype('application/vnd.openxmlformats-officedocument.presentationml.presentation');