From 73211e817016f37612970eaf6ab1b9eecdbec4ca Mon Sep 17 00:00:00 2001 From: Caleb Roseland Date: Thu, 6 Apr 2023 13:50:52 -0500 Subject: [PATCH] cleanup: reverse-extract/fix boards webapp en.json --- webapp/boards/i18n/en.json | 4 ++-- .../boardTemplateSelector/boardTemplateSelector.tsx | 2 +- .../src/components/boardsSwitcher/boardsSwitcher.tsx | 2 +- webapp/boards/src/components/calendar/fullCalendar.tsx | 2 +- webapp/boards/src/components/cardDetail/cardDetail.tsx | 2 +- webapp/boards/src/components/cardDetail/imagePaste.tsx | 2 +- webapp/boards/src/components/cardDialog.tsx | 10 +++++----- .../src/components/confirmAddUserForNotifications.tsx | 2 +- .../src/components/content/attachmentElement.tsx | 2 +- webapp/boards/src/components/content/imageElement.tsx | 2 +- webapp/boards/src/components/gallery/galleryCard.tsx | 2 +- webapp/boards/src/components/kanban/kanbanCard.tsx | 2 +- .../src/components/kanban/kanbanColumnHeader.tsx | 2 +- .../onboardingTour/addProperties/add_properties.tsx | 2 +- webapp/boards/src/components/rhsChannelBoardItem.tsx | 2 +- webapp/boards/src/components/rhsChannelBoards.tsx | 4 ++-- webapp/boards/src/components/shareBoard/shareBoard.tsx | 2 +- .../src/components/shareBoard/teamPermissionsRow.tsx | 2 +- .../src/components/table/tableGroupHeaderRow.tsx | 2 +- webapp/boards/src/components/table/tableRow.tsx | 2 +- .../src/components/viewLImitDialog/viewLimitDialog.tsx | 4 ++-- webapp/boards/src/errors.ts | 4 ++-- webapp/boards/src/index.tsx | 6 +++--- 23 files changed, 33 insertions(+), 33 deletions(-) diff --git a/webapp/boards/i18n/en.json b/webapp/boards/i18n/en.json index 4cfcf667c3..a913658a73 100644 --- a/webapp/boards/i18n/en.json +++ b/webapp/boards/i18n/en.json @@ -1,7 +1,7 @@ { "AdminBadge.SystemAdmin": "Admin", "AdminBadge.TeamAdmin": "Team Admin", - "AppBar.Tooltip": "Toggle Linked Boards", + "AppBar.Tooltip": "Toggle linked boards", "Attachment.Attachment-title": "Attachment", "AttachmentBlock.DeleteAction": "delete", "AttachmentBlock.addElement": "add {type}", @@ -453,4 +453,4 @@ "tutorial_tip.ok": "Next", "tutorial_tip.out": "Opt out of these tips.", "tutorial_tip.seen": "Seen this before?" -} +} \ No newline at end of file diff --git a/webapp/boards/src/components/boardTemplateSelector/boardTemplateSelector.tsx b/webapp/boards/src/components/boardTemplateSelector/boardTemplateSelector.tsx index 853fba76ad..3a3821407e 100644 --- a/webapp/boards/src/components/boardTemplateSelector/boardTemplateSelector.tsx +++ b/webapp/boards/src/components/boardTemplateSelector/boardTemplateSelector.tsx @@ -206,7 +206,7 @@ const BoardTemplateSelector = (props: Props) => { > diff --git a/webapp/boards/src/components/boardsSwitcher/boardsSwitcher.tsx b/webapp/boards/src/components/boardsSwitcher/boardsSwitcher.tsx index 962fb34b5f..a30f989946 100644 --- a/webapp/boards/src/components/boardsSwitcher/boardsSwitcher.tsx +++ b/webapp/boards/src/components/boardsSwitcher/boardsSwitcher.tsx @@ -91,7 +91,7 @@ const BoardsSwitcher = (props: Props): JSX.Element => {
- {intl.formatMessage({id: 'BoardsSwitcher.Title', defaultMessage: 'Find Boards'})} + {intl.formatMessage({id: 'BoardsSwitcher.Title', defaultMessage: 'Find boards'})}
diff --git a/webapp/boards/src/components/calendar/fullCalendar.tsx b/webapp/boards/src/components/calendar/fullCalendar.tsx index 09ad5a0a60..1ba1a2c888 100644 --- a/webapp/boards/src/components/calendar/fullCalendar.tsx +++ b/webapp/boards/src/components/calendar/fullCalendar.tsx @@ -147,7 +147,7 @@ const CalendarFullView = (props: Props): JSX.Element|null => { const confirmDialogProps: ConfirmationDialogBoxProps = useMemo(() => { return { - heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete!'}), + heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete'}), confirmButtonText: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-button-text', defaultMessage: 'Delete'}), onConfirm: handleDeleteCard, onClose: () => { diff --git a/webapp/boards/src/components/cardDetail/cardDetail.tsx b/webapp/boards/src/components/cardDetail/cardDetail.tsx index 81035824a5..f899498317 100644 --- a/webapp/boards/src/components/cardDetail/cardDetail.tsx +++ b/webapp/boards/src/components/cardDetail/cardDetail.tsx @@ -255,7 +255,7 @@ const CardDetail = (props: Props): JSX.Element|null => {


{ diff --git a/webapp/boards/src/components/cardDialog.tsx b/webapp/boards/src/components/cardDialog.tsx index 0b082dcadb..7b8be86c20 100644 --- a/webapp/boards/src/components/cardDialog.tsx +++ b/webapp/boards/src/components/cardDialog.tsx @@ -97,7 +97,7 @@ const CardDialog = (props: Props): JSX.Element => { } const confirmDialogProps: ConfirmationDialogBoxProps = { - heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete!'}), + heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete'}), confirmButtonText: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-button-text', defaultMessage: 'Delete'}), onConfirm: handleDeleteCard, onClose: () => { @@ -161,7 +161,7 @@ const CardDialog = (props: Props): JSX.Element => { dispatch(updateAttachments([attachmentBlock])) if (attachment.size > clientConfig.maxFileSize) { removeUploadingAttachment(uploadingBlock) - sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.failed', defaultMessage: 'Unable to upload the file. Attachment size limit reached.'}), severity: 'normal'}) + sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.failed', defaultMessage: "This file couldn't be uploaded as the file size limit has been reached."}), severity: 'normal'}) } else { sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.upload', defaultMessage: 'Attachment uploading.'}), severity: 'normal'}) const xhr = await octoClient.uploadAttachment(boardId, attachment) @@ -183,11 +183,11 @@ const CardDialog = (props: Props): JSX.Element => { const block = createAttachmentBlock() block.fields.attachmentId = attachmentId || '' block.title = attachment.name - sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.uploadSuccess', defaultMessage: 'Attachment uploaded successfull.'}), severity: 'normal'}) + sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.uploadSuccess', defaultMessage: 'Attachment uploaded.'}), severity: 'normal'}) resolve(block) } else { removeUploadingAttachment(uploadingBlock) - sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.failed', defaultMessage: 'Unable to upload the file. Attachment size limit reached.'}), severity: 'normal'}) + sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.failed', defaultMessage: "This file couldn't be uploaded as the file size limit has been reached."}), severity: 'normal'}) } } } @@ -217,7 +217,7 @@ const CardDialog = (props: Props): JSX.Element => { } const description = intl.formatMessage({id: 'AttachmentBlock.DeleteAction', defaultMessage: 'delete'}) await mutator.deleteBlock(block, description) - sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.delete', defaultMessage: 'Attachment Deleted Successfully.'}), severity: 'normal'}) + sendFlashMessage({content: intl.formatMessage({id: 'AttachmentBlock.delete', defaultMessage: 'Attachment deleted.'}), severity: 'normal'}) }, [card?.boardId, card?.id, card?.fields.contentOrder]) const attachBtn = (): React.ReactNode => { diff --git a/webapp/boards/src/components/confirmAddUserForNotifications.tsx b/webapp/boards/src/components/confirmAddUserForNotifications.tsx index f62f9e2b8c..be4c1bbc14 100644 --- a/webapp/boards/src/components/confirmAddUserForNotifications.tsx +++ b/webapp/boards/src/components/confirmAddUserForNotifications.tsx @@ -76,7 +76,7 @@ const ConfirmAddUserForNotifications = (props: Props): JSX.Element => {

diff --git a/webapp/boards/src/components/content/attachmentElement.tsx b/webapp/boards/src/components/content/attachmentElement.tsx index de418aac48..1d18bf442b 100644 --- a/webapp/boards/src/components/content/attachmentElement.tsx +++ b/webapp/boards/src/components/content/attachmentElement.tsx @@ -94,7 +94,7 @@ const AttachmentElement = (props: Props): JSX.Element|null => { } const confirmDialogProps: ConfirmationDialogBoxProps = { - heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-attachment', defaultMessage: 'Confirm Attachment delete!'}), + heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-attachment', defaultMessage: 'Confirm attachment delete'}), confirmButtonText: intl.formatMessage({id: 'AttachmentElement.delete-confirmation-dialog-button-text', defaultMessage: 'Delete'}), onConfirm: deleteAttachment, onClose: () => { diff --git a/webapp/boards/src/components/content/imageElement.tsx b/webapp/boards/src/components/content/imageElement.tsx index ac3bba9ca1..84c4268cd7 100644 --- a/webapp/boards/src/components/content/imageElement.tsx +++ b/webapp/boards/src/components/content/imageElement.tsx @@ -70,7 +70,7 @@ contentRegistry.registerContentType({ block.fields.fileId = fileId || '' resolve(block) } else { - sendFlashMessage({content: intl.formatMessage({id: 'createImageBlock.failed', defaultMessage: 'Unable to upload the file. File size limit reached.'}), severity: 'normal'}) + sendFlashMessage({content: intl.formatMessage({id: 'createImageBlock.failed', defaultMessage: "This file couldn't be uploaded as the file size limit has been reached."}), severity: 'normal'}) } }, '.jpg,.jpeg,.png,.gif') diff --git a/webapp/boards/src/components/gallery/galleryCard.tsx b/webapp/boards/src/components/gallery/galleryCard.tsx index 682b7b6c2e..47fe71b79b 100644 --- a/webapp/boards/src/components/gallery/galleryCard.tsx +++ b/webapp/boards/src/components/gallery/galleryCard.tsx @@ -51,7 +51,7 @@ const GalleryCard = (props: Props) => { const confirmDialogProps: ConfirmationDialogBoxProps = useMemo(() => { return { - heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete!'}), + heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete'}), confirmButtonText: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-button-text', defaultMessage: 'Delete'}), onConfirm: handleDeleteCard, onClose: () => { diff --git a/webapp/boards/src/components/kanban/kanbanCard.tsx b/webapp/boards/src/components/kanban/kanbanCard.tsx index ab9085b88d..074174a60a 100644 --- a/webapp/boards/src/components/kanban/kanbanCard.tsx +++ b/webapp/boards/src/components/kanban/kanbanCard.tsx @@ -59,7 +59,7 @@ const KanbanCard = (props: Props) => { const confirmDialogProps: ConfirmationDialogBoxProps = useMemo(() => { return { - heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete!'}), + heading: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-heading', defaultMessage: 'Confirm card delete'}), confirmButtonText: intl.formatMessage({id: 'CardDialog.delete-confirmation-dialog-button-text', defaultMessage: 'Delete'}), onConfirm: handleDeleteCard, onClose: () => { diff --git a/webapp/boards/src/components/kanban/kanbanColumnHeader.tsx b/webapp/boards/src/components/kanban/kanbanColumnHeader.tsx index 0b88b2f387..3b8ce1896f 100644 --- a/webapp/boards/src/components/kanban/kanbanColumnHeader.tsx +++ b/webapp/boards/src/components/kanban/kanbanColumnHeader.tsx @@ -103,7 +103,7 @@ export default function KanbanColumnHeader(props: Props): JSX.Element {
diff --git a/webapp/boards/src/components/table/tableGroupHeaderRow.tsx b/webapp/boards/src/components/table/tableGroupHeaderRow.tsx index de657bb69e..a9e29935a8 100644 --- a/webapp/boards/src/components/table/tableGroupHeaderRow.tsx +++ b/webapp/boards/src/components/table/tableGroupHeaderRow.tsx @@ -86,7 +86,7 @@ const TableGroupHeaderRow = (props: Props): JSX.Element => { { UserSettings.setLastTeamID(null) return window.location.origin @@ -93,7 +93,7 @@ function errorDefFromId(id: ErrorId | null): ErrorDef { default: { errDef.title = intl.formatMessage({id: 'error.unknown', defaultMessage: 'An error occurred.'}) errDef.button1Enabled = true - errDef.button1Text = intl.formatMessage({id: 'error.back-to-home', defaultMessage: 'Back to Home'}) + errDef.button1Text = intl.formatMessage({id: 'error.back-to-home', defaultMessage: 'Back to home'}) errDef.button1Redirect = '/' errDef.button1Fill = true errDef.button1ClearHistory = true diff --git a/webapp/boards/src/index.tsx b/webapp/boards/src/index.tsx index c90d4417ec..4ca3f3e5ca 100644 --- a/webapp/boards/src/index.tsx +++ b/webapp/boards/src/index.tsx @@ -350,7 +350,7 @@ export default class Plugin { } if (this.registry.registerAppBarComponent) { - this.registry.registerAppBarComponent(appBarIcon, () => mmStore.dispatch(toggleRHSPlugin), intl.formatMessage({id: 'AppBar.Tooltip', defaultMessage: 'Toggle Linked Boards'})) + this.registry.registerAppBarComponent(appBarIcon, () => mmStore.dispatch(toggleRHSPlugin), intl.formatMessage({id: 'AppBar.Tooltip', defaultMessage: 'Toggle linked boards'})) } if (this.registry.registerActionAfterChannelCreation) { @@ -404,13 +404,13 @@ export default class Plugin { if(siteStats){ return { boards_count: { - name: intl.formatMessage({id: 'SiteStats.total_boards', defaultMessage: 'Total Boards'}), + name: intl.formatMessage({id: 'SiteStats.total_boards', defaultMessage: 'Total boards'}), id: 'total_boards', icon: 'icon-product-boards', value: siteStats.board_count, }, cards_count: { - name: intl.formatMessage({id: 'SiteStats.total_cards', defaultMessage: 'Total Cards'}), + name: intl.formatMessage({id: 'SiteStats.total_cards', defaultMessage: 'Total cards'}), id: 'total_cards', icon: 'icon-products', value: siteStats.card_count,