Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Fix string format failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Jun 20, 2013
1 parent 02241ac commit 99e81f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/IOCRepositoryController.m
Expand Up @@ -218,7 +218,7 @@ - (void)toggleRepositoryWatching {
[SVProgressHUD showWithStatus:status maskType:SVProgressHUDMaskTypeGradient];
[self.currentUser setWatching:state forRepository:self.repository success:^(GHResource *instance, id data) {
NSString *action = state ? NSLocalizedString(@"Watched %@", @"Progress HUD: Watched REPO_ID") : NSLocalizedString(@"Unwatched %@", @"Progress HUD: Unwatched REPO_ID");
NSString *status = [NSString stringWithFormat:@"%@ %@", action, self.repository.repoId];
NSString *status = [NSString stringWithFormat:action, self.repository.repoId];
self.isWatching = state;
[SVProgressHUD showSuccessWithStatus:status];
} failure:^(GHResource *instance, NSError *error) {
Expand Down
2 changes: 1 addition & 1 deletion Classes/IOCUserController.m
Expand Up @@ -185,7 +185,7 @@ - (void)toggleUserFollowing {
[SVProgressHUD showWithStatus:status maskType:SVProgressHUDMaskTypeGradient];
[self.currentUser setFollowing:state forUser:self.user success:^(GHResource *instance, id data) {
NSString *action = state ? NSLocalizedString(@"Followed %@", @"Progress HUD: Followed USER") : NSLocalizedString(@"Unfollowed %@", @"Progress HUD: Unfollowed USER");
NSString *status = [NSString stringWithFormat:@"%@ %@", action, self.user.login];
NSString *status = [NSString stringWithFormat:action, self.user.login];
self.isFollowing = state;
[SVProgressHUD showSuccessWithStatus:status];
} failure:^(GHResource *instance, NSError *error) {
Expand Down

0 comments on commit 99e81f1

Please sign in to comment.