Skip to content

Commit

Permalink
Support localized punctuation for "Port:"
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Jan 2, 2023
1 parent 8064912 commit 629146f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions macosx/InfoPeersViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +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 629146f

Please sign in to comment.