From c014f2309c4f2e38ecc19b1cffaa2bf73a825ac8 Mon Sep 17 00:00:00 2001 From: Claire Gizard Date: Tue, 4 Jan 2022 11:24:29 +0100 Subject: [PATCH] Add French traduction for "Not allowed to join this room" --- .../src/main/java/im/vector/app/core/error/ErrorFormatter.kt | 4 ++++ vector/src/main/res/values-fr/strings_tchap.xml | 1 + vector/src/main/res/values/strings_tchap.xml | 1 + 3 files changed, 6 insertions(+) diff --git a/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt b/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt index 6dcda31cd9..29fa75567f 100644 --- a/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt +++ b/vector/src/main/java/im/vector/app/core/error/ErrorFormatter.kt @@ -116,6 +116,10 @@ class DefaultErrorFormatter @Inject constructor( throwable.error.code == MatrixError.M_PASSWORD_NO_SYMBOL -> { stringProvider.getString(R.string.tchap_register_pwd_no_symbol) } + throwable.error.code == MatrixError.M_UNKNOWN && + throwable.error.message == "Not allowed to join this room" -> { + stringProvider.getString(R.string.tchap_room_access_unauthorized_to_externs) + } else -> { throwable.error.message.takeIf { it.isNotEmpty() } ?: throwable.error.code.takeIf { it.isNotEmpty() } diff --git a/vector/src/main/res/values-fr/strings_tchap.xml b/vector/src/main/res/values-fr/strings_tchap.xml index 09709bd6e2..d6d96cf376 100644 --- a/vector/src/main/res/values-fr/strings_tchap.xml +++ b/vector/src/main/res/values-fr/strings_tchap.xml @@ -74,6 +74,7 @@ %s vous a invité Rejoindre un forum depuis l\'annuaire + Vous n’êtes pas autorisé à rejoindre ce salon Analyse Indisponible diff --git a/vector/src/main/res/values/strings_tchap.xml b/vector/src/main/res/values/strings_tchap.xml index 7b8ee61a64..3714fee049 100644 --- a/vector/src/main/res/values/strings_tchap.xml +++ b/vector/src/main/res/values/strings_tchap.xml @@ -112,6 +112,7 @@ Share the link This change is currently forbidden when externals are allowed to join the room This change is currently forbidden when the room is accessible by link + You are not allowed to join this room The validity period of your account has expired. An email has been sent to you in order to renew it. Once you’ve followed the link it contains, click below.