diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-07-05 09:50:55 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-07-05 09:50:55 +0000 |
commit | 484955136b25948d2268ebeecce9491903594fb1 (patch) | |
tree | 2d0ee732255f6a1474ee8245f00f2dde9b941a03 /Source/SPTablesList.m | |
parent | ace52dbf3a9b3660443a7cb4e9ca947a9f51806d (diff) | |
download | sequelpro-484955136b25948d2268ebeecce9491903594fb1.tar.gz sequelpro-484955136b25948d2268ebeecce9491903594fb1.tar.bz2 sequelpro-484955136b25948d2268ebeecce9491903594fb1.zip |
• localisation issues
- made "This table currently does not support relations..." localisable
- resized some nib elements for longer translations
- replaced [[NSApp mainMenu] itemWithTitle:@"Table"] by [[NSApp mainMenu] itemWithTag:SPMainMenuTable] for dynamic title changes
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 509e3b83..d0d39eec 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -869,9 +869,10 @@ [separatorTableMenuItem setHidden:YES]; [separatorTableMenuItem2 setHidden:YES]; [showCreateSyntaxMenuItem setHidden:YES]; - - NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTitle:@"Table"] submenu]; - + + // Get main menu "Table"'s submenu + NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTag:SPMainMenuTable] submenu]; + [[tableSubMenu itemAtIndex:6] setTitle:NSLocalizedString(@"Check Selected Items", @"check selected items menu item")]; [[tableSubMenu itemAtIndex:7] setTitle:NSLocalizedString(@"Repair Selected Items", @"repair selected items menu item")]; @@ -926,7 +927,7 @@ // Set gear menu items Remove/Duplicate table/view and mainMenu > Table items // according to the table types - NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTitle:@"Table"] submenu]; + NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTag:SPMainMenuTable] submenu]; // Enable/disable the various menu items depending on the selected item. Also update their titles. // Note, that this should ideally be moved to menu item validation as opposed to using fixed item positions. |