From 16c79c16d189f9f59d77d023491b27866a77c9d6 Mon Sep 17 00:00:00 2001 From: silver Date: Thu, 29 Oct 2026 11:52:10 +0100 Subject: [PATCH] fix(translation): translate default card description Used the text from here: https://github.com/nextcloud/deck/blob/e835df4706ced2dd8077362d124c849e6e30257e/lib/Service/fixtures/default-board.json#L16 Signed-off-by: silver Assisted-by: ClaudeCode:claude-opus-5.5 --- lib/Service/DefaultBoardService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Service/DefaultBoardService.php b/lib/Service/DefaultBoardService.php index caeffafd0c..608f1055ee 100644 --- a/lib/Service/DefaultBoardService.php +++ b/lib/Service/DefaultBoardService.php @@ -107,6 +107,12 @@ public function createDefaultBoard(string $title, string $userId, string $color) '4. Share, comment and collaborate!' => $this->l10n->t('4. Share, comment and collaborate!'), 'Create your first card!' => $this->l10n->t('Create your first card!'), ]; + $translatedCardDescriptions = [ + "## Welcome to Nextcloud Deck!\n\nNextcloud Deck is a kanban style project management app that integrates seamlessly with the Nextcloud ecosystem. Here, you can create and manage boards to streamline your projects and organize project tasks visually using cards. A versatile tool, Nextcloud Deck will help you stay efficient in both personal and collaborative settings!\n\n### ๐Ÿ“Œ How to set up a new board?\n\nAdd a new board via the โ€œ+โ€ button or โ€œAdd boardโ€. Name your board and add a description to clarify its purpose if you wish.\n\nAdd task lists to your board via โ€œAdd Listโ€ (e.g., \"To Do\"). Add cards to these lists to represent individual tasks or items. Organize your cards visually by assigning labels or colors.\n\nManage your board list: In the board menu next to the board name, you can edit, clone, archive and export your boards.\n\n### ๐Ÿ—‚๏ธ How to create and edit task cards?\n\nAdd cards via the โ€œ+โ€ button on top of the list of your choice. Name your card and add a description using the available rich text formatting instruments.\n\nSet a due date to track deadlines and add responsible team members. Label your cards with tags for better navigation. You can create and manage tags in the sidebar, which is accessible via the toolbar button.\n\n### ๐Ÿ’กUseful tips for Nextcloud Deck\n\n- Integrate Nextcloud Deck with Nextcloud Calendar and track the upcoming card deadlines.\n- Use comments to keep discussions around a task within its dedicated card.\n- Enable Nextcloud Deck notifications to always stay updated on changes to your boards." => $this->l10n->t("## Welcome to Nextcloud Deck!\n\nNextcloud Deck is a kanban style project management app that integrates seamlessly with the Nextcloud ecosystem. Here, you can create and manage boards to streamline your projects and organize project tasks visually using cards. A versatile tool, Nextcloud Deck will help you stay efficient in both personal and collaborative settings!\n\n### ๐Ÿ“Œ How to set up a new board?\n\nAdd a new board via the โ€œ+โ€ button or โ€œAdd boardโ€. Name your board and add a description to clarify its purpose if you wish.\n\nAdd task lists to your board via โ€œAdd Listโ€ (e.g., \"To Do\"). Add cards to these lists to represent individual tasks or items. Organize your cards visually by assigning labels or colors.\n\nManage your board list: In the board menu next to the board name, you can edit, clone, archive and export your boards.\n\n### ๐Ÿ—‚๏ธ How to create and edit task cards?\n\nAdd cards via the โ€œ+โ€ button on top of the list of your choice. Name your card and add a description using the available rich text formatting instruments.\n\nSet a due date to track deadlines and add responsible team members. Label your cards with tags for better navigation. You can create and manage tags in the sidebar, which is accessible via the toolbar button.\n\n### ๐Ÿ’กUseful tips for Nextcloud Deck\n\n- Integrate Nextcloud Deck with Nextcloud Calendar and track the upcoming card deadlines.\n- Use comments to keep discussions around a task within its dedicated card.\n- Enable Nextcloud Deck notifications to always stay updated on changes to your boards."), + "## ๐Ÿšฆ Manage your boards and cards\n\nDrag your cards around the board to change position in the list or move them to other lists.\n\nArchive cards to remove them from the board without losing your content. You can always access archived cards and put them back by going to \"Show archived cards\" in the board menu.\n\nUse tags to assign types, statuses and other special attributes to your cards to aid visual navigation. Open the \"Tags\" tab in the sidebar of Nextcloud Deck to manage tags you can add to your cards.\n\n## ๐Ÿ‘“ Change how you view your boards\n\nTo navigate large boards easily, you can filter your cards by tags, team members, statuses and due dates. Open filter menu via Nextcloud Deck toolbar.\n\nEnable compact display mode in the Deck Board menu via the three dots menu in the toolbar. In the same menu, you can disable and enable cover images." => $this->l10n->t("## ๐Ÿšฆ Manage your boards and cards\n\nDrag your cards around the board to change position in the list or move them to other lists.\n\nArchive cards to remove them from the board without losing your content. You can always access archived cards and put them back by going to \"Show archived cards\" in the board menu.\n\nUse tags to assign types, statuses and other special attributes to your cards to aid visual navigation. Open the \"Tags\" tab in the sidebar of Nextcloud Deck to manage tags you can add to your cards.\n\n## ๐Ÿ‘“ Change how you view your boards\n\nTo navigate large boards easily, you can filter your cards by tags, team members, statuses and due dates. Open filter menu via Nextcloud Deck toolbar.\n\nEnable compact display mode in the Deck Board menu via the three dots menu in the toolbar. In the same menu, you can disable and enable cover images."), + "## ๐ŸŽจ Make use of rich formatting in card descriptions\n\nYou can use various instruments to make your content more structured and informative. Try all the instruments yourself - use this checklist!\n\n- [ ] Apply headings of different hierarchy (H1-H6).\n- [ ] Use **bold** *italic* __underline__ and ~~strikethrough~~ text formatting.\n- [ ] Create unordered, ordered and to-do lists.\n- [ ] Highlight code and blockquotes, add various illustrated callouts.\n- [ ] Create and format tables\n- [ ] Add details\n- [ ] Add links, for example to [the Nextcloud website](https://nextcloud.com/)\n- [ ] Insert attachments\n- [ ] Add emojis ๐Ÿ•ถ๏ธ \n\n## ๐Ÿ”— Attach files to cards\n\nYou can upload any files from your machine or pick from your Nextcloud Files, such as documents, presentations, images, video clips and anything else. Add files via \"Attachments\" tab.\n\n## ๐ŸŒ„ Illustrate cards with images\n\nAttach images to your cards - they will automatically work as card covers." => $this->l10n->t("## ๐ŸŽจ Make use of rich formatting in card descriptions\n\nYou can use various instruments to make your content more structured and informative. Try all the instruments yourself - use this checklist!\n\n- [ ] Apply headings of different hierarchy (H1-H6).\n- [ ] Use **bold** *italic* __underline__ and ~~strikethrough~~ text formatting.\n- [ ] Create unordered, ordered and to-do lists.\n- [ ] Highlight code and blockquotes, add various illustrated callouts.\n- [ ] Create and format tables\n- [ ] Add details\n- [ ] Add links, for example to [the Nextcloud website](https://nextcloud.com/)\n- [ ] Insert attachments\n- [ ] Add emojis ๐Ÿ•ถ๏ธ \n\n## ๐Ÿ”— Attach files to cards\n\nYou can upload any files from your machine or pick from your Nextcloud Files, such as documents, presentations, images, video clips and anything else. Add files via \"Attachments\" tab.\n\n## ๐ŸŒ„ Illustrate cards with images\n\nAttach images to your cards - they will automatically work as card covers."), + "## ๐Ÿค How to collaborate in your board?\n\nShare your cards and boards with others. In many Nextcloud apps, linked Nextcloud Deck items will appear as rich, interactive widgets. Once you assign someone to a card, they will receive a notification.\n\nEdit cards together, leave notes for your teammates, share task-related files by adding attachments and discuss your tasks using card comments.\n\n### " => $this->l10n->t("## ๐Ÿค How to collaborate in your board?\n\nShare your cards and boards with others. In many Nextcloud apps, linked Nextcloud Deck items will appear as rich, interactive widgets. Once you assign someone to a card, they will receive a notification.\n\nEdit cards together, leave notes for your teammates, share task-related files by adding attachments and discuss your tasks using card comments.\n\n### "), + ]; foreach ($boardData['addition_labels'] as $labelData) { $additionLabels[] = $this->labelService->create( @@ -132,7 +138,7 @@ public function createDefaultBoard(string $title, string $userId, string $color) $cardData['type'], $cardData['order'], $userId, - $cardData['description'], + $translatedCardDescriptions[$cardData['description']] ?? $cardData['description'], ); foreach ($defaultLabels as $defaultLabel) {