Skip to content

Commit 7f9d3b1

Browse files
committed
Unlocalized user-facing string warnings
1 parent ab9306a commit 7f9d3b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Classes/Controllers/PBGitWindowController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ - (void)performPushForBranch:(PBGitRef *)branchRef toRemote:(PBGitRef *)remoteRe
363363
NSAlert *alert = [[NSAlert alloc] init];
364364
alert.messageText = description;
365365
alert.informativeText = [NSString stringWithFormat:@"Are you sure you want to %@?", sdesc];
366-
[alert addButtonWithTitle:@"Push"];
367-
[alert addButtonWithTitle:@"Cancel"];
366+
[alert addButtonWithTitle:NSLocalizedString(@"Push", @"Push alert - default button")];
367+
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Push alert - cancel button")];
368368
[alert setShowsSuppressionButton:YES];
369369

370370
[self confirmDialog:alert suppressionIdentifier:@"Confirm Push" forAction:^{
@@ -509,8 +509,8 @@ - (IBAction)deleteRef:(id)sender
509509
NSAlert *alert = [[NSAlert alloc] init];
510510
alert.messageText = [NSString stringWithFormat:@"Delete %@?", ref_desc];
511511
alert.informativeText = [NSString stringWithFormat:@"Are you sure you want to remove the %@?", ref_desc];
512-
[alert addButtonWithTitle:@"Delete"];
513-
[alert addButtonWithTitle:@"Cancel"];
512+
[alert addButtonWithTitle:NSLocalizedString(@"Delete", @"Delete ref alert - default button")];
513+
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Delete ref alert - cancel button")];
514514

515515
[self confirmDialog:alert suppressionIdentifier:@"Delete Ref" forAction:^{
516516
NSError *error = nil;

0 commit comments

Comments
 (0)