mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +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
|
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorAPIServerReturnedInvalidRespone
|
code:BITAuthenticatorAPIServerReturnedInvalidRespone
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
//TODO localize
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later.")
|
||||||
NSLocalizedDescriptionKey : @"Failed to authenticate"
|
|
||||||
}];
|
}];
|
||||||
completion(NO, error);
|
completion(NO, error);
|
||||||
} else if(401 == operation.response.statusCode) {
|
} else if(401 == operation.response.statusCode) {
|
||||||
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorNotAuthorized
|
code:BITAuthenticatorNotAuthorized
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
//TODO localize
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized")
|
||||||
NSLocalizedDescriptionKey : @"Not authorized"
|
|
||||||
}];
|
}];
|
||||||
completion(NO, error);
|
completion(NO, error);
|
||||||
} else {
|
} else {
|
||||||
@ -347,8 +345,7 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
|||||||
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorNotAuthorized
|
code:BITAuthenticatorNotAuthorized
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
//TODO localize
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized"),
|
||||||
NSLocalizedDescriptionKey : @"Not authorized",
|
|
||||||
NSUnderlyingErrorKey : authParseError
|
NSUnderlyingErrorKey : authParseError
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
@ -242,4 +242,13 @@
|
|||||||
"HockeyAuthenticationViewControllerPasswordPlaceholder" = "Required";
|
"HockeyAuthenticationViewControllerPasswordPlaceholder" = "Required";
|
||||||
"HockeyAuthenticationViewControllerEmailDescription" = "Email";
|
"HockeyAuthenticationViewControllerEmailDescription" = "Email";
|
||||||
"HockeyAuthenticationViewControllerPasswordDescription" = "Password";
|
"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";
|
"Skip" = "Skip";
|
Loading…
x
Reference in New Issue
Block a user