From afadea01a09cec162db246d1cd3067225098c603 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 14 Mar 2022 09:12:02 +0000 Subject: [PATCH] Reuse a common part of the translation (#7978) --- src/components/views/elements/ErrorBoundary.tsx | 5 ++++- .../views/settings/tabs/user/HelpUserSettingsTab.tsx | 8 +++++--- src/i18n/strings/en_EN.json | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/views/elements/ErrorBoundary.tsx b/src/components/views/elements/ErrorBoundary.tsx index 057969437e..60e40fe06c 100644 --- a/src/components/views/elements/ErrorBoundary.tsx +++ b/src/components/views/elements/ErrorBoundary.tsx @@ -93,7 +93,10 @@ export default class ErrorBoundary extends React.PureComponent<{}, IState> { ) }

{ _t( "If you've submitted a bug via GitHub, debug logs can help " + - "us track down the problem. Debug logs contain application " + + "us track down the problem. ") + } + { _t( + "Debug logs contain application " + "usage data including your username, the IDs or aliases of " + "the rooms or groups you have visited, which UI elements you " + "last interacted with, and the usernames of other users. " + diff --git a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx index df3ebe6d40..fd2c5e4153 100644 --- a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx @@ -239,11 +239,13 @@ export default class HelpUserSettingsTab extends React.Component

{ _t( "If you've submitted a bug via GitHub, debug logs can help " + - "us track down the problem. Debug logs contain application " + + "us track down the problem. ", + ) } + { _t("Debug logs contain application " + "usage data including your username, the IDs or aliases of " + "the rooms or groups you have visited, which UI elements you " + - "last interacted with, and the usernames of " + - "other users. They do not contain messages.", + "last interacted with, and the usernames of other users. " + + "They do not contain messages.", ) }
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8249025ad2..7c96c543c8 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1429,7 +1429,8 @@ "For help with using %(brand)s, click here or start a chat with our bot using the button below.": "For help with using %(brand)s, click here or start a chat with our bot using the button below.", "Chat with %(brand)s Bot": "Chat with %(brand)s Bot", "Bug reporting": "Bug reporting", - "If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.": "If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.", + "If you've submitted a bug via GitHub, debug logs can help us track down the problem. ": "If you've submitted a bug via GitHub, debug logs can help us track down the problem. ", + "Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.": "Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.", "Submit debug logs": "Submit debug logs", "To report a Matrix-related security issue, please read the Matrix.org Security Disclosure Policy.": "To report a Matrix-related security issue, please read the Matrix.org Security Disclosure Policy.", "Help & About": "Help & About", @@ -2432,7 +2433,6 @@ "Failed to send logs: ": "Failed to send logs: ", "Preparing to download logs": "Preparing to download logs", "Reminder: Your browser is unsupported, so your experience may be unpredictable.": "Reminder: Your browser is unsupported, so your experience may be unpredictable.", - "Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.": "Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages.", "Before submitting logs, you must create a GitHub issue to describe your problem.": "Before submitting logs, you must create a GitHub issue to describe your problem.", "Download logs": "Download logs", "GitHub issue": "GitHub issue",