Skip to content

Commit

Permalink
Add French traduction for "Not allowed to join this room"
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire Gizard committed Jan 4, 2022
1 parent 8c7fc54 commit c014f23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down
1 change: 1 addition & 0 deletions vector/src/main/res/values-fr/strings_tchap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</plurals>
<string name="tchap_room_invited_you">%s vous a invité</string>
<string name="tchap_fab_join_public_room">Rejoindre un forum depuis l\'annuaire</string>
<string name="tchap_room_access_unauthorized_to_externs">Vous n’êtes pas autorisé à rejoindre ce salon</string>

<!-- tchap scan media -->
<string name="tchap_scan_media_unavailable">Analyse Indisponible</string>
Expand Down
1 change: 1 addition & 0 deletions vector/src/main/res/values/strings_tchap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<string name="tchap_room_settings_room_access_by_link_share">Share the link</string>
<string name="tchap_room_settings_room_access_by_link_forbidden">This change is currently forbidden when externals are allowed to join the room</string>
<string name="tchap_room_settings_allow_external_users_forbidden">This change is currently forbidden when the room is accessible by link</string>
<string name="tchap_room_access_unauthorized_to_externs">You are not allowed to join this room</string>

<!-- tchap account validity -->
<string name="tchap_expired_account_msg">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.</string>
Expand Down

0 comments on commit c014f23

Please sign in to comment.