Revision: 6370
http://skim-app.svn.sourceforge.net/skim-app/?rev=6370&view=rev
Author: hofman
Date: 2010-03-25 00:16:06 +0000 (Thu, 25 Mar 2010)
Log Message:
-----------
localize tooltips of segmented cells
Modified Paths:
--------------
trunk/SKLocalization.m
Modified: trunk/SKLocalization.m
===================================================================
--- trunk/SKLocalization.m 2010-03-24 21:54:00 UTC (rev 6369)
+++ trunk/SKLocalization.m 2010-03-25 00:16:06 UTC (rev 6370)
@@ -112,10 +112,12 @@
- (void)localizeStringsFromTable:(NSString *)table {
[super localizeStringsFromTable:table];
NSUInteger i, iMax = [self segmentCount];
+ NSString *string;
for (i = 0; i < iMax; i++) {
- NSString *label = localizedStringFromTable([self labelForSegment:i],
table);
- if (label)
- [self setLabel:label forSegment:i];
+ if (string = localizedStringFromTable([self labelForSegment:i], table))
+ [self setLabel:string forSegment:i];
+ if (string = localizedStringFromTable([self toolTipForSegment:i],
table))
+ [self setToolTip:string forSegment:i];
[[self menuForSegment:i] localizeStringsFromTable:table];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit