aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2012-06-23 22:37:03 +0000
committerdmoagx <post@wickenrode.com>2012-06-23 22:37:03 +0000
commit2776ee20e178628a7802a0fc603e06b5d1b24d0a (patch)
treef1a725d3c268ce05c52e69a6f9228d45c2f1d03b /Source/SPConnectionControllerDelegate.m
parent9d5fcd3a9e71a01ae9b4916f2185326142dea0ca (diff)
downloadsequelpro-2776ee20e178628a7802a0fc603e06b5d1b24d0a.tar.gz
sequelpro-2776ee20e178628a7802a0fc603e06b5d1b24d0a.tar.bz2
sequelpro-2776ee20e178628a7802a0fc603e06b5d1b24d0a.zip
* Fixes some cases of bad localizability
* In Help viewer [HELP\nTOPIC] would not be recognized as link
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 567f8e87..905e1a56 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -145,10 +145,10 @@ static NSString *SPDatabaseImage = @"database-small";
NSMutableArray *tooltipParts = [NSMutableArray arrayWithCapacity:2];
if (favCount || !groupCount) {
- [tooltipParts addObject:[NSString stringWithFormat:@"%d %@", favCount, (favCount == 1) ? NSLocalizedString(@"favorite", @"favorite singular label") : NSLocalizedString(@"favorites", @"favorites plural label")]];
+ [tooltipParts addObject:[NSString stringWithFormat:((favCount == 1) ? NSLocalizedString(@"%d favorite", @"favorite singular label (%d == 1)") : NSLocalizedString(@"%d favorites", @"favorites plural label (%d != 1)")), favCount]];
}
if (groupCount) {
- [tooltipParts addObject:[NSString stringWithFormat:@"%d %@", groupCount, (groupCount == 1) ? NSLocalizedString(@"group", @"favorite group singular label") : NSLocalizedString(@"groups", @"favorite groups plural label")]];
+ [tooltipParts addObject:[NSString stringWithFormat:((groupCount == 1) ? NSLocalizedString(@"%d group", @"favorite group singular label (%d == 1)") : NSLocalizedString(@"%d groups", @"favorite groups plural label (%d != 1)")), groupCount]];
}
toolTip = [NSString stringWithFormat:@"%@ - %@", [[node representedObject] nodeName], [tooltipParts componentsJoinedByString:@", "]];