mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
MESSENGER-4857 translate invalid password message
This commit is contained in:
@@ -506,6 +506,7 @@
|
||||
"bwi_error_invite_banned_in_room" = "%@ ist vom Raum gebannt.";
|
||||
"bwi_error_invite_general" = "%@ konnte nicht eingeladen werden.";
|
||||
"bwi_error_logout_offline" = "Abmelden ist ohne Internetverbindung nicht möglich.";
|
||||
"bwi_error_invalid_password" = "Falsches Passwort";
|
||||
|
||||
// MARK: - Matomo
|
||||
|
||||
|
||||
@@ -415,6 +415,7 @@
|
||||
"bwi_error_invite_banned_in_room" = "%@ is banned from the room.";
|
||||
"bwi_error_invite_general" = "%@ could not be invited.";
|
||||
"bwi_error_logout_offline" = "Logout not possible without internet connection.";
|
||||
"bwi_error_invalid_password" = "Invalid password";
|
||||
|
||||
// MARK: - Matomo
|
||||
|
||||
|
||||
@@ -41,8 +41,14 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
title = [error.userInfo valueForKey:NSLocalizedFailureReasonErrorKey];
|
||||
message = [error.userInfo valueForKey:NSLocalizedDescriptionKey];
|
||||
// bwi: #4857 translate invalid password error message
|
||||
if ([error.domain isEqualToString:kMXNSErrorDomain] && [[error.userInfo valueForKey:NSLocalizedDescriptionKey] isEqualToString: @"Invalid username or password"]) {
|
||||
title = [error.userInfo valueForKey:NSLocalizedFailureReasonErrorKey];
|
||||
message = [BWIL10n bwiErrorInvalidPassword];
|
||||
} else {
|
||||
title = [error.userInfo valueForKey:NSLocalizedFailureReasonErrorKey];
|
||||
message = [error.userInfo valueForKey:NSLocalizedDescriptionKey];
|
||||
}
|
||||
|
||||
if (!title)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user