|
@@ -88,7 +88,7 @@ typedef enum {
|
|
|
|
|
|
|
|
- (void)configNavigationBar {
|
|
- (void)configNavigationBar {
|
|
|
|
|
|
|
|
- UIBarButtonItem *unreadItem = [[UIBarButtonItem alloc] initWithTitle:@"Unread" style:UIBarButtonItemStylePlain target:self action:@selector(unreadBtnClick:)];
|
|
|
|
|
|
|
+ UIBarButtonItem *unreadItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Unread", nil) style:UIBarButtonItemStylePlain target:self action:@selector(unreadBtnClick:)];
|
|
|
self.navigationItem.rightBarButtonItem = unreadItem;
|
|
self.navigationItem.rightBarButtonItem = unreadItem;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -123,11 +123,11 @@ typedef enum {
|
|
|
self.unread = !self.unread;
|
|
self.unread = !self.unread;
|
|
|
if (self.unread) {
|
|
if (self.unread) {
|
|
|
|
|
|
|
|
- sender.title = @"All";
|
|
|
|
|
|
|
+ sender.title = NSLocalizedString(@"All", nil);
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
- sender.title = @"Unread";
|
|
|
|
|
|
|
+ sender.title = NSLocalizedString(@"Unread", nil);
|
|
|
}
|
|
}
|
|
|
[self reloadData];
|
|
[self reloadData];
|
|
|
}
|
|
}
|
|
@@ -203,7 +203,7 @@ typedef enum {
|
|
|
// process error
|
|
// process error
|
|
|
NSString *msg = [json objectForKey:@"err_msg"];
|
|
NSString *msg = [json objectForKey:@"err_msg"];
|
|
|
// [strongSelf showAlert:msg];
|
|
// [strongSelf showAlert:msg];
|
|
|
- [strongSelf showAlertTilte:@"Warning" message:msg];
|
|
|
|
|
|
|
+ [strongSelf showAlertTilte:NSLocalizedString(@"Warning", nil) message:msg];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|