mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 22:18:46 +03:00
i18n for M_THREEPID_AUTH_FAILED
This commit is contained in:
parent
175a5ab824
commit
36a9b80040
2 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,9 @@ class DefaultErrorFormatter @Inject constructor(
|
||||||
&& throwable.error.message == "Email is already in use" -> {
|
&& throwable.error.message == "Email is already in use" -> {
|
||||||
stringProvider.getString(R.string.account_email_already_used_error)
|
stringProvider.getString(R.string.account_email_already_used_error)
|
||||||
}
|
}
|
||||||
|
throwable.error.code == MatrixError.M_THREEPID_AUTH_FAILED -> {
|
||||||
|
stringProvider.getString(R.string.error_threepid_auth_failed)
|
||||||
|
}
|
||||||
else -> {
|
else -> {
|
||||||
throwable.error.message.takeIf { it.isNotEmpty() }
|
throwable.error.message.takeIf { it.isNotEmpty() }
|
||||||
?: throwable.error.code.takeIf { it.isNotEmpty() }
|
?: throwable.error.code.takeIf { it.isNotEmpty() }
|
||||||
|
|
|
@ -685,6 +685,7 @@
|
||||||
<string name="settings_emails">Email addresses</string>
|
<string name="settings_emails">Email addresses</string>
|
||||||
<string name="settings_phone_numbers">Phone numbers</string>
|
<string name="settings_phone_numbers">Phone numbers</string>
|
||||||
<string name="settings_remove_three_pid_confirmation_content">Remove %s?</string>
|
<string name="settings_remove_three_pid_confirmation_content">Remove %s?</string>
|
||||||
|
<string name="error_threepid_auth_failed">Ensure that you have clicked on the link in the email we have sent to you.</string>
|
||||||
|
|
||||||
<string name="settings_notification_advanced">Advanced Notification Settings</string>
|
<string name="settings_notification_advanced">Advanced Notification Settings</string>
|
||||||
<string name="settings_notification_by_event">Notification importance by event</string>
|
<string name="settings_notification_by_event">Notification importance by event</string>
|
||||||
|
|
Loading…
Reference in a new issue