add more english localizations

This commit is contained in:
Stephan Diederich 2013-09-11 15:17:01 +02:00
parent 9e4d4481e8
commit 3aeeae8e98
2 changed files with 12 additions and 6 deletions

View File

@ -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
}];
}

View File

@ -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";