diff options
author | rowanbeentje <rowan@beent.je> | 2010-07-05 09:06:24 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-07-05 09:06:24 +0000 |
commit | ace52dbf3a9b3660443a7cb4e9ca947a9f51806d (patch) | |
tree | eb6e24d856188d2666dde758f95ba0e4829938b8 /Source | |
parent | 74ad9f4532e30ee859cf0773b76e5a1b4f73e5db (diff) | |
download | sequelpro-ace52dbf3a9b3660443a7cb4e9ca947a9f51806d.tar.gz sequelpro-ace52dbf3a9b3660443a7cb4e9ca947a9f51806d.tar.bz2 sequelpro-ace52dbf3a9b3660443a7cb4e9ca947a9f51806d.zip |
- Fix localisation support for NSTabViews - previously only the first tab in each tabview was localised
Diffstat (limited to 'Source')
-rw-r--r-- | Source/DMLocalizedNibBundle.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/DMLocalizedNibBundle.m b/Source/DMLocalizedNibBundle.m index 428f8899..15b05f85 100644 --- a/Source/DMLocalizedNibBundle.m +++ b/Source/DMLocalizedNibBundle.m @@ -22,6 +22,7 @@ + (void)_localizeStringValueOfObject:(id)object table:(NSString *)table; + (void)_localizePlaceholderStringOfObject:(id)object table:(NSString *)table; + (void)_localizeToolTipOfObject:(id)object table:(NSString *)table; ++ (void)_localizeLabelOfObject:(id)object table:(NSString *)table; @end @@ -172,6 +173,14 @@ } else [self _localizeStringsInObject:[control cell] table:table]; + } else if ([view isKindOfClass:[NSTabView class]]) { + NSTabView *tabView = (NSTabView *)view; + for (NSTabViewItem *tabViewItem in [tabView tabViewItems]) { + [self _localizeLabelOfObject:tabViewItem table:table]; + [self _localizeToolTipOfObject:tabViewItem table:table]; + [self _localizeStringsInObject:[tabViewItem view] table:table]; + } + } [self _localizeStringsInObject:[view subviews] table:table]; @@ -218,5 +227,6 @@ DM_DEFINE_LOCALIZE_BLAH_OF_OBJECT(alternateTitle, AlternateTitle) DM_DEFINE_LOCALIZE_BLAH_OF_OBJECT(stringValue, StringValue) DM_DEFINE_LOCALIZE_BLAH_OF_OBJECT(placeholderString, PlaceholderString) DM_DEFINE_LOCALIZE_BLAH_OF_OBJECT(toolTip, ToolTip) +DM_DEFINE_LOCALIZE_BLAH_OF_OBJECT(label, Label) @end
\ No newline at end of file |