Revision: 6524
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6524&view=rev
Author:   hofman
Date:     2010-05-04 15:15:27 +0000 (Tue, 04 May 2010)

Log Message:
-----------
don't call super when localizing cell properties

Modified Paths:
--------------
    trunk/SKLocalization.m

Modified: trunk/SKLocalization.m
===================================================================
--- trunk/SKLocalization.m      2010-05-04 14:44:27 UTC (rev 6523)
+++ trunk/SKLocalization.m      2010-05-04 15:15:27 UTC (rev 6524)
@@ -77,11 +77,8 @@
 @implementation NSButtonCell (SKLocalization)
 
 - (void)localizeStringsFromTable:(NSString *)table {
-    [super localizeStringsFromTable:table];
-    if ([self imagePosition] != NSImageOnly && [self 
isKindOfClass:[NSPopUpButtonCell class]] == NO) {
-        localizeTitleForObjectFromTable(self, table);
-        localizeAlternateTitleForObjectFromTable(self, table);
-    }
+    localizeTitleForObjectFromTable(self, table);
+    localizeAlternateTitleForObjectFromTable(self, table);
 }
 
 @end
@@ -90,7 +87,7 @@
 @implementation NSPopUpButtonCell (SKLocalization)
 
 - (void)localizeStringsFromTable:(NSString *)table {
-    [super localizeStringsFromTable:table];
+    // don't call super because the title is taken from the menu
     [[self menu] localizeStringsFromTable:table];
 }
 
@@ -100,7 +97,6 @@
 @implementation NSSegmentedCell (SKLocalization)
 
 - (void)localizeStringsFromTable:(NSString *)table {
-    [super localizeStringsFromTable:table];
     NSUInteger i, iMax = [self segmentCount];
     NSString *string;
     for (i = 0; i < iMax; i++) {
@@ -118,7 +114,6 @@
 @implementation NSTextFieldCell (SKLocalization)
 
 - (void)localizeStringsFromTable:(NSString *)table {
-    [super localizeStringsFromTable:table];
     localizeStringValueForObjectFromTable(self, table);
     localizePlaceholderStringForObjectFromTable(self, table);
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to