Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate/modify session lock text #818

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions modules/tchap-translations/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,5 +1135,18 @@
"onboarding_free_e2ee_messaging_tchap_limited_voip": {
"en": "With free end-to-end encrypted messaging, %(brand)s is a great way to stay in touch.",
"fr": "Grâce à la messagerie chiffrée de bout en bout gratuite, %(brand)s est un excellent moyen de rester en contact."
},
"%(brand)s is open in another window. Click \"%(label)s\" to use %(brand)s here and disconnect the other window.": {
"en": "%(brand)s is open in another window. Click \"%(label)s\" to use %(brand)s here and disconnect the other window.",
"fr": "%(brand)s est ouvert dans une autre fenêtre. Cliquez \"%(label)s\" pour utiliser %(brand)s ici et déconnecter l'autre fenêtre.",
"comment": "2023-11-08: remove once the string is translated in element"
},
"%(brand)s has been connected in another tab": {
"en": "%(brand)s has been connected in another tab",
"fr": "%(brand)s a été connecté dans un autre onglet"
},
"You can close this disconnected tab, and go to the other %(brand)s tab.": {
"en": "You can close this disconnected tab, and go to the other %(brand)s tab.",
"fr": "Vous pouvez fermer cet onglet déconnecté, et aller à l'autre onglet %(brand)s."
}
}
18 changes: 18 additions & 0 deletions patches/better-text-for-tab-switch/matrix-react-sdk+3.81.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/node_modules/matrix-react-sdk/src/components/structures/auth/SessionLockStolenView.tsx b/node_modules/matrix-react-sdk/src/components/structures/auth/SessionLockStolenView.tsx
index 0c0bc01..1a5ef24 100644
--- a/node_modules/matrix-react-sdk/src/components/structures/auth/SessionLockStolenView.tsx
+++ b/node_modules/matrix-react-sdk/src/components/structures/auth/SessionLockStolenView.tsx
@@ -28,8 +28,13 @@ export function SessionLockStolenView(): JSX.Element {

return (
<SplashPage className="mx_SessionLockStolenView">
+ {/** :TCHAP: better messaging
<h1>{_t("common|error")}</h1>
<h2>{_t("%(brand)s has been opened in another tab.", { brand })}</h2>
+ */}
+ <h1>{_t("%(brand)s has been connected in another tab", { brand })}</h1>
+ <h2>{_t("You can close this disconnected tab, and go to the other %(brand)s tab.", { brand })}</h2>
+ {/** end :TCHAP: */}
</SplashPage>
);
}
7 changes: 7 additions & 0 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,12 @@
"files": [
"src/components/views/user-onboarding/UserOnboardingHeader.tsx"
]
},
"better-text-for-tab-switch": {
"comments": "Remove when solved in element-web : https://github.com/vector-im/element-web/issues/26537",
"package": "matrix-react-sdk",
"files": [
"src/components/structures/auth/SessionLockStolenView.tsx"
]
}
}