mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Some authenticator string updates
This commit is contained in:
parent
a9395c78f8
commit
1cb91ae323
@ -124,7 +124,7 @@
|
|||||||
CGRectGetWidth(self.tableView.bounds),
|
CGRectGetWidth(self.tableView.bounds),
|
||||||
kFooterHeight)];
|
kFooterHeight)];
|
||||||
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
|
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
|
||||||
[button setTitle:BITHockeyLocalizedString(@"Show login page") forState:UIControlStateNormal];
|
[button setTitle:BITHockeyLocalizedString(@"HockeyAuthenticationViewControllerWebLoginButtonTitle") forState:UIControlStateNormal];
|
||||||
CGSize buttonSize = [button sizeThatFits:CGSizeMake(CGRectGetWidth(self.tableView.bounds),
|
CGSize buttonSize = [button sizeThatFits:CGSizeMake(CGRectGetWidth(self.tableView.bounds),
|
||||||
kFooterHeight)];
|
kFooterHeight)];
|
||||||
button.frame = CGRectMake(floorf((CGRectGetWidth(containerView.bounds) - buttonSize.width) / 2.f),
|
button.frame = CGRectMake(floorf((CGRectGetWidth(containerView.bounds) - buttonSize.width) / 2.f),
|
||||||
|
@ -321,14 +321,14 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
|||||||
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
NSError *error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorAPIServerReturnedInvalidRespone
|
code:BITAuthenticatorAPIServerReturnedInvalidRespone
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later.")
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"HockeyAuthenticationViewControllerNetworkError")
|
||||||
}];
|
}];
|
||||||
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:@{
|
||||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized")
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"HockeyAuthenticationViewControllerNotauthorized")
|
||||||
}];
|
}];
|
||||||
completion(NO, error);
|
completion(NO, error);
|
||||||
} else {
|
} else {
|
||||||
@ -342,14 +342,14 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
|||||||
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorNotAuthorized
|
code:BITAuthenticatorNotAuthorized
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized"),
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"HockeyAuthenticationViewControllerNotauthorized"),
|
||||||
NSUnderlyingErrorKey : authParseError
|
NSUnderlyingErrorKey : authParseError
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
code:BITAuthenticatorErrorUnknown
|
code:BITAuthenticatorErrorUnknown
|
||||||
userInfo:@{
|
userInfo:@{
|
||||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later."),
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"HockeyAuthenticationViewControllerNetworkError"),
|
||||||
NSUnderlyingErrorKey : authParseError
|
NSUnderlyingErrorKey : authParseError
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
@ -233,22 +233,30 @@
|
|||||||
/* Email Placeholder */
|
/* Email Placeholder */
|
||||||
"HockeyFeedbackUserDataEmailPlaceholder" = "example@email.com";
|
"HockeyFeedbackUserDataEmailPlaceholder" = "example@email.com";
|
||||||
|
|
||||||
|
|
||||||
/* Authenticator */
|
/* Authenticator */
|
||||||
|
|
||||||
|
|
||||||
|
/* View Controller Title*/
|
||||||
"HockeyAuthenticatorViewControllerTitle" = "Authorize";
|
"HockeyAuthenticatorViewControllerTitle" = "Authorize";
|
||||||
"HockeyAuthenticationViewControllerWebLoginDescription" = "Allow this application to access this device's UDID to identify it.";
|
|
||||||
"HockeyAuthenticationViewControllerDataEmailAndPasswordDescription" = "Please provide email and password of your HockeyApp account.";
|
/* BITAuthenticatorAuthTypeUDIDProvider */
|
||||||
"HockeyAuthenticationViewControllerDataEmailDescription" = "Please provide email of your HockeyApp account.";
|
"HockeyAuthenticationViewControllerWebLoginDescription" = "Please tap the following button to identify your device on HockeyApp.";
|
||||||
|
"HockeyAuthenticationViewControllerWebLoginButtonTitle" = "Identify Device";
|
||||||
|
|
||||||
|
/* BITAuthenticatorAuthTypeEmail and BITAuthenticatorAuthTypeEmailAndPassword */
|
||||||
|
"HockeyAuthenticationViewControllerDataEmailAndPasswordDescription" = "Please provide the email address and password of your HockeyApp account.";
|
||||||
|
"HockeyAuthenticationViewControllerDataEmailDescription" = "Please provide the email address of your HockeyApp account.";
|
||||||
"HockeyAuthenticationViewControllerEmailPlaceholder" = "example@email.com";
|
"HockeyAuthenticationViewControllerEmailPlaceholder" = "example@email.com";
|
||||||
"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 */
|
/* 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.";
|
"HockeyAuthenticationViewControllerNetworkError" = "Failed to authenticate. A internet connection is required! Please try again.";
|
||||||
|
|
||||||
/* error presented to the user if authentication failed */
|
/* error presented to the user if authentication failed */
|
||||||
"Not authorized" = "Not authorized";
|
"HockeyAuthenticationViewControllerNotauthorized" = "Not authorized";
|
||||||
|
|
||||||
/* BarButton item to skip auth */
|
/* BarButton item to skip auth */
|
||||||
"Skip" = "Skip";
|
"Skip" = "Skip";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user