diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index 874dab02e..ff69f3f29 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -474,3 +474,5 @@ "bug_report_send_screenshot" = "Send screenshot"; "bug_report_progress_zipping" = "Collecting logs"; "bug_report_progress_uploading" = "Uploading report"; +"bug_report_send" = "Send"; + diff --git a/Riot/ViewController/BugReportViewController.m b/Riot/ViewController/BugReportViewController.m index a69bb7d0b..b9087d541 100644 --- a/Riot/ViewController/BugReportViewController.m +++ b/Riot/ViewController/BugReportViewController.m @@ -89,6 +89,11 @@ // Allow to send empty description for crash report but not for bug report _sendButton.enabled = NO; } + + [_cancelButton setTitle:[NSBundle mxk_localizedStringForKey:@"cancel"] forState:UIControlStateNormal]; + [_cancelButton setTitle:[NSBundle mxk_localizedStringForKey:@"cancel"] forState:UIControlStateHighlighted]; + [_sendButton setTitle:NSLocalizedStringFromTable(@"bug_report_send", @"Vector", nil) forState:UIControlStateNormal]; + [_sendButton setTitle:NSLocalizedStringFromTable(@"bug_report_send", @"Vector", nil) forState:UIControlStateHighlighted]; _sendingContainer.hidden = YES; diff --git a/Riot/ViewController/ReadReceiptsViewController.m b/Riot/ViewController/ReadReceiptsViewController.m index b2c29ed75..298528ce5 100644 --- a/Riot/ViewController/ReadReceiptsViewController.m +++ b/Riot/ViewController/ReadReceiptsViewController.m @@ -31,6 +31,7 @@ @property (weak, nonatomic) IBOutlet UILabel *titleLabel; @property (weak, nonatomic) IBOutlet UIView *containerView; @property (weak, nonatomic) IBOutlet UITableView *receiptsTableView; +@property (weak, nonatomic) IBOutlet UIButton *closeButton; @end @@ -79,6 +80,9 @@ { self.containerView.layer.cornerRadius = 20; self.titleLabel.text = NSLocalizedStringFromTable(@"read_receipts_list", @"Vector", nil); + + [_closeButton setTitle:[NSBundle mxk_localizedStringForKey:@"close"] forState:UIControlStateNormal]; + [_closeButton setTitle:[NSBundle mxk_localizedStringForKey:@"close"] forState:UIControlStateHighlighted]; } - (void)configureReceiptsTableView @@ -106,6 +110,11 @@ [self dismissViewControllerAnimated:YES completion:nil]; } +- (IBAction)onCloseButtonPress:(id)sender +{ + [self dismissViewControllerAnimated:YES completion:nil]; +} + #pragma mark - UITableViewDataSource - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section diff --git a/Riot/ViewController/ReadReceiptsViewController.xib b/Riot/ViewController/ReadReceiptsViewController.xib index 26b0926e7..a3a67dbf1 100644 --- a/Riot/ViewController/ReadReceiptsViewController.xib +++ b/Riot/ViewController/ReadReceiptsViewController.xib @@ -1,16 +1,17 @@ - + - + + @@ -48,19 +49,28 @@ - + + - + + + @@ -71,11 +81,11 @@ - + - +