Skip to content

Commit

Permalink
Code review: adopting "Port: %@"
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Apr 14, 2023
1 parent 07d7843 commit b98ede9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions macosx/InfoPeersViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ - (NSString*)tableView:(NSTableView*)tableView
{
portString = NSLocalizedString(@"N/A", "Inspector -> Peers tab -> table row tooltip");
}
[components
addObject:[NSString stringWithFormat:@"%@ %@", NSLocalizedString(@"Port:", "Inspector -> Peers tab -> table row tooltip"), portString]];
[components addObject:[NSString stringWithFormat:NSLocalizedString(@"Port: %@", "Inspector -> Peers tab -> table row tooltip"),
portString]];

NSInteger const peerFrom = [peer[@"From"] integerValue];
switch (peerFrom)
Expand Down
2 changes: 1 addition & 1 deletion macosx/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@
"Peers" = "Peers";

/* Inspector -> Peers tab -> table row tooltip */
"Port:" = "Port:";
"Port: %@" = "Port: %@";

/* Preferences -> Network -> port status */
"Port check site is down" = "Port check site is down";
Expand Down

0 comments on commit b98ede9

Please sign in to comment.