From 11bd9d4da5e42d5914b50c1f149d38ce6df863e7 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 15 Jul 2010 00:09:30 +0000 Subject: - Don't localize table types when duplicating tables - used as part of queries. This addresses Issue #762. --- Source/SPTablesList.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Source') 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; } -- cgit v1.2.3