Skip to content

Commit

Permalink
Change translation for title and subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
aulamber committed Apr 3, 2023
1 parent 5665a9a commit 492aa11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/matrix-react-sdk/src/stores/RoomViewStore.tsx b/node_modules/matrix-react-sdk/src/stores/RoomViewStore.tsx
index 47bc9b9..1c1d4d6 100644
index 47bc9b9..05902fd 100644
--- a/node_modules/matrix-react-sdk/src/stores/RoomViewStore.tsx
+++ b/node_modules/matrix-react-sdk/src/stores/RoomViewStore.tsx
@@ -581,6 +581,12 @@ export class RoomViewStore extends EventEmitter {
Expand All @@ -8,7 +8,7 @@ index 47bc9b9..1c1d4d6 100644

+ /* :TCHAP: add this for a translation */
+ if (typeof description === 'string' && description.includes('You are not invited to this room')) {
+ description = _t("You have not been invited to this room.");
+ description = _t("Access possible only by invitation of a member of the room.");
+ }
+ /* end :TCHAP: */
+
Expand Down
10 changes: 7 additions & 3 deletions src/i18n/strings/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,12 @@
"fr": "Générer un nouveau code",
"en": "Generate a new code"
},
"You have not been invited to this room.": {
"fr": "Vous n'avez pas été pas invité dans ce salon.",
"en": "You have not been invited to this room."
"Failed to join": {
"fr": "Impossible de rejoindre ce salon",
"en": "Failed to join this room."
},
"Access possible only by invitation of a member of the room.": {
"fr": "Accès possible uniquement sur invitation d'un membre du salon.",
"en": "Access possible only by invitation of a member of the room."
}
}

0 comments on commit 492aa11

Please sign in to comment.