diff options
author | rowanbeentje <rowan@beent.je> | 2010-07-15 00:09:30 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-07-15 00:09:30 +0000 |
commit | 11bd9d4da5e42d5914b50c1f149d38ce6df863e7 (patch) | |
tree | ed58663c91ed823a8a68828162828ca1eb1c8a4c | |
parent | 31a094d621fc266b401c1f216a3b757638151651 (diff) | |
download | sequelpro-11bd9d4da5e42d5914b50c1f149d38ce6df863e7.tar.gz sequelpro-11bd9d4da5e42d5914b50c1f149d38ce6df863e7.tar.bz2 sequelpro-11bd9d4da5e42d5914b50c1f149d38ce6df863e7.zip |
- Don't localize table types when duplicating tables - used as part of queries. This addresses Issue #762.
-rw-r--r-- | Source/SPTablesList.m | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index a6e46c37..70d7b704 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -2157,21 +2157,23 @@ NSInteger tblType = [[filteredTableTypes objectAtIndex:[tablesListView selectedRow]] integerValue]; + // Set up the table type and whether content can be duplicated. The table type is used + // in queries and should not be localized. switch (tblType){ case SPTableTypeTable: - tableType = NSLocalizedString(@"table",@"table"); + tableType = @"table"; [copyTableContentSwitch setEnabled:YES]; break; case SPTableTypeView: - tableType = NSLocalizedString(@"view",@"view"); + tableType = @"view"; [copyTableContentSwitch setEnabled:NO]; break; case SPTableTypeProc: - tableType = NSLocalizedString(@"procedure",@"procedure"); + tableType = @"procedure"; [copyTableContentSwitch setEnabled:NO]; break; case SPTableTypeFunc: - tableType = NSLocalizedString(@"function",@"function"); + tableType = @"function"; [copyTableContentSwitch setEnabled:NO]; break; } |