mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
add more english localizations
This commit is contained in:
parent
9e4d4481e8
commit
3aeeae8e98
@ -324,16 +324,14 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
||||
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||
code:BITAuthenticatorAPIServerReturnedInvalidRespone
|
||||
userInfo:@{
|
||||
//TODO localize
|
||||
NSLocalizedDescriptionKey : @"Failed to authenticate"
|
||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later.")
|
||||
}];
|
||||
completion(NO, error);
|
||||
} else if(401 == operation.response.statusCode) {
|
||||
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||
code:BITAuthenticatorNotAuthorized
|
||||
userInfo:@{
|
||||
//TODO localize
|
||||
NSLocalizedDescriptionKey : @"Not authorized"
|
||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized")
|
||||
}];
|
||||
completion(NO, error);
|
||||
} else {
|
||||
@ -347,8 +345,7 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
||||
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||
code:BITAuthenticatorNotAuthorized
|
||||
userInfo:@{
|
||||
//TODO localize
|
||||
NSLocalizedDescriptionKey : @"Not authorized",
|
||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized"),
|
||||
NSUnderlyingErrorKey : authParseError
|
||||
}];
|
||||
}
|
||||
|
@ -242,4 +242,13 @@
|
||||
"HockeyAuthenticationViewControllerPasswordPlaceholder" = "Required";
|
||||
"HockeyAuthenticationViewControllerEmailDescription" = "Email";
|
||||
"HockeyAuthenticationViewControllerPasswordDescription" = "Password";
|
||||
"HockeyAuthenticationViewControllerPasswordDescription" = "Password";
|
||||
|
||||
/* error presented to the user if authentication failed because of networking issues */
|
||||
"Failed to authenticate. Please try again later." = "Failed to authenticate. Please try again later.";
|
||||
|
||||
/* error presented to the user if authentication failed */
|
||||
"Not authorized" = "Not authorized";
|
||||
|
||||
/* BarButton item to skip auth */
|
||||
"Skip" = "Skip";
|
Loading…
x
Reference in New Issue
Block a user