From 355468b6372d662f04beeb5e6a1c8cbfbd5ab351 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 20 Aug 2021 20:36:33 +0530 Subject: [PATCH] Internationalize + add back old message Signed-off-by: RMidhunSuresh --- src/domain/login/PasswordLoginViewModel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/login/PasswordLoginViewModel.js b/src/domain/login/PasswordLoginViewModel.js index 64a48f37..d23cda4a 100644 --- a/src/domain/login/PasswordLoginViewModel.js +++ b/src/domain/login/PasswordLoginViewModel.js @@ -40,13 +40,13 @@ export class PasswordLoginViewModel extends ViewModel { let error = ""; switch (status) { case LoginFailure.Credentials: - error = `Your credentials don't seem to be correct.`; + error = this.i18n`Your username and/or password don't seem to be correct.`; break; case LoginFailure.Connection: - error = `Can't connect to ${this._homeserver}.`; + error = this.i18n`Can't connect to ${this._homeserver}.`; break; case LoginFailure.Unknown: - error = `Something went wrong while checking your credentials.`; + error = this.i18n`Something went wrong while checking your login and password.`; break; } if (error) {