using System.Collections;

namespace QDART_MFG_CfgEditor;

public class LanguageDetails
{
	public enum Language
	{
		ENGLISH,
		CHINESE
	}

	public const int TARGET_RFCalVerify = 0;

	public const int TARGET_RFStationCal = 1;

	public const int TARGET_LossEditorRF = 2;

	public const int TARGET_LossEditorBTWLAN = 3;

	public const int TARGET_RFRadiatedVerify = 4;

	public const int TARGET_BTWLAN = 5;

	public const int TARGET_BTWLANStationCal = 6;

	public const int TARGET_LossEditorRFRadiated = 7;

	public const int TARGET_StationCfg = 8;

	public const int TARGET_QSEQ = 9;

	public const int TARGET_MULTIPLEX = 10;

	public const int TARGET_GPS = 11;

	public const int TARGET_LogCfg = 12;

	public const int TARGET_MMICfg = 13;

	public const int TXT_CONDUCTION_TEST = 20;

	public const int TXT_CONNECTIVITY_TEST = 21;

	public const int TXT_RADIATED_TEST = 22;

	public const int TXT_CABLELOSS_EDITOR = 23;

	public const int TXT_OTHERS = 24;

	public const int TXT_RFCALVERIFY = 25;

	public const int TXT_RFSTATIONCAL = 26;

	public const int TXT_BTWLAN = 27;

	public const int TXT_BTWLAN_STATIONCAL = 28;

	public const int TXT_RFVERIFY_RADIATED = 29;

	public const int TXT_BTWLAN_RADIATED = 30;

	public const int TXT_STATION_CFG = 31;

	public const int TXT_LOSS_CONDUCTION = 32;

	public const int TXT_LOSS_CONNECTIVITY = 33;

	public const int TXT_LOSS_RADIATED = 34;

	public const int TXT_AUTORUN = 100;

	public const int TXT_SAVE = 101;

	public const int TXT_RF_CALVERIFY = 102;

	public const int TXT_RF_STATIONCAL = 103;

	public const int TXT_WCN = 104;

	public const int TXT_WCN_STATIONCAL = 105;

	public const int TXT_RFCAL_LOSSEDIT = 106;

	public const int TXT_WCN_LOSSEDIT = 107;

	public const int TXT_SETTING = 108;

	public const int TXT_HELP = 109;

	public const int TXT_LAN = 110;

	public const int TXT_AUTORUN_DETAIL = 111;

	public const int TXT_SAVEAS_DETAIL = 112;

	public const int TXT_BACKUP_DETAIL = 113;

	public const int TXT_SWITCH_OR_NOT = 114;

	public const int TXT_SWITCH_WARNING = 115;

	public const int TXT_TARGET = 116;

	public const int TXT_ABOUT = 117;

	public const int TXT_BEMULT = 118;

	public const int TXT_QMSCTPANELS = 119;

	public const int TXT_LOAD_DEFAULT = 120;

	public const int TXT_SAVE_AS = 121;

	public const int TXT_LOAD_FROM = 122;

	public const int TXT_APPLY = 123;

	public const int TXT_CANCEL = 124;

	public const int TXT_HELP_VIEW = 125;

	public const int TXT_WARNING = 126;

	public const int TXT_SAVE_FAIL_PRE = 127;

	public const int TXT_SAVE_FAIL_MID = 128;

	public const int TXT_SAVE_FAIL_SUFFIX = 129;

	public const int TXT_FILE = 130;

	public const int TXT_APP_TITLE = 131;

	public const int TXT_APP_MULTI_DUTS_MODE = 132;

	public const int TXT_ERROR_NULL = 200;

	public const int TXT_ERROR_SAVE_FAIL = 201;

	public const int TXT_INSTRUMENT_NAME = 301;

	public const int TXT_INSTRUMENT_REMOTE = 302;

	public const int TXT_INSTRUMENT_PAD = 303;

	public const int TXT_INSTRUMENT_SAD = 304;

	public const int TXT_INSTRUMENT_IP = 305;

	public const int TXT_INSTRUMENT_USB = 306;

	public const int TXT_INSTRUMENT_WAVEPATH_BT = 307;

	public const int TXT_INSTRUMENT_WAVEPATH_WLAN = 308;

	public const int TXT_INSTRUMENT_LITEPOINT_EXE_PATH = 309;

	public const int TXT_INSTRUMENT_SAME_REMOTE = 310;

	public const int TXT_INSTRUMENT_SAME_WAVEPATH = 311;

	public const int TXT_BLUETOOTH = 312;

	public const int TXT_WLAN = 313;

	public const int TXT_CALLPROCESSOR = 314;

	public const int TXT_POWERSUPPLY = 315;

	public const int TXT_SIGNALGENERATOR = 316;

	public const int TXT_POWERMETER = 317;

	private Hashtable englishData = new Hashtable();

	private Hashtable chineseData = new Hashtable();

	private Hashtable currentLangData;

	private Language currentLang;

	public Language CurrentLanguage
	{
		get
		{
			return currentLang;
		}
		set
		{
			currentLang = value;
			if (currentLang == Language.ENGLISH)
			{
				currentLangData = englishData;
			}
			else
			{
				currentLangData = chineseData;
			}
		}
	}

	public LanguageDetails()
	{
		AddToEnglishData();
		AddToChineseData();
		currentLangData = englishData;
	}

	private void AddToEnglishData()
	{
		englishData.Add(0, "RF Calibration/Verification(equipconfig.xml)");
		englishData.Add(1, "RF Station Calibration(equipconfig.xml)");
		englishData.Add(5, "BT & WLAN Verification(TesterConfig.xml)");
		englishData.Add(6, "BT & WLAN - Station Calibration");
		englishData.Add(4, "RF Radiated Verify");
		englishData.Add(2, "RF - Path Loss Editor (CalDB_NET.xml)");
		englishData.Add(3, "BT & WLAN - Path Loss Editor(QTA_CalDataFile.xml)");
		englishData.Add(7, "Path Loss Editor ( RF Radiated)");
		englishData.Add(8, "Station Configuration (stationconfig.xml)");
		englishData.Add(9, "QSEQ Configuration (QSEQ_DeviceConfig.xml)");
		englishData.Add(10, "Multi-DUT Configuration (MultiplexManagerConfigFile.xml)");
		englishData.Add(11, "GPS RF Verification Equipment (equipconfig.xml)");
		englishData.Add(12, "Logging Rules (QDART_Logging_Configuration.xml)");
		englishData.Add(13, "MMI Configuration (mmi_stationConfig.xml)");
		englishData.Add(101, "SAVE");
		englishData.Add(100, "AutoRun");
		englishData.Add(108, "Settings");
		englishData.Add(131, "QDART Configuration Editor");
		englishData.Add(132, " (Multiple DUTs Mode)");
		englishData.Add(130, "File");
		englishData.Add(109, "Help");
		englishData.Add(110, "中文");
		englishData.Add(111, "Auto start QSPR/QMSCT after save");
		englishData.Add(112, "Save confile file as function");
		englishData.Add(113, "Backup confile file before edit");
		englishData.Add(114, "Do you want to save the edited values ? ");
		englishData.Add(115, "Warning");
		englishData.Add(116, "Target");
		englishData.Add(117, "About QDART Configuration Editor");
		englishData.Add(118, "Multi-DUT");
		englishData.Add(119, "QMSCT Panels ");
		englishData.Add(120, "Auto populate default setting for new DUT");
		englishData.Add(121, "Save as");
		englishData.Add(122, "Load from");
		englishData.Add(123, "Apply");
		englishData.Add(124, "Cancel");
		englishData.Add(125, "View Help");
		englishData.Add(126, "Warning");
		englishData.Add(127, "Please enter values for items ");
		englishData.Add(128, "highlighted with");
		englishData.Add(129, "and try to re-save.");
		englishData.Add(200, "Not null");
		englishData.Add(201, "Failed to save! ");
		englishData.Add(301, "name");
		englishData.Add(302, "remote");
		englishData.Add(303, "pad");
		englishData.Add(304, "sad");
		englishData.Add(305, "ip");
		englishData.Add(306, "usb");
		englishData.Add(307, "BT wavefile path");
		englishData.Add(308, "WLAN wavefile path");
		englishData.Add(309, "StartLitePointConnectivityServer.exe path");
		englishData.Add(310, "Same Remote Ctrol");
		englishData.Add(311, "Same Wave Path");
		englishData.Add(312, "BlueTooth");
		englishData.Add(313, "WLAN");
		englishData.Add(314, "Call Processor");
		englishData.Add(315, "Power Supply");
		englishData.Add(316, "Signal Generator");
		englishData.Add(317, "Power Meter");
		englishData.Add(20, "Conduction test");
		englishData.Add(21, "Connectivity test");
		englishData.Add(22, "Radiated test");
		englishData.Add(23, "Cableloss editor");
		englishData.Add(24, "Others");
		englishData.Add(25, "RF Cal_Verify");
		englishData.Add(26, "RF StationCal");
		englishData.Add(27, "BT_WLAN");
		englishData.Add(28, "BT_WLAN StationCal");
		englishData.Add(29, "RF Verify");
		englishData.Add(30, "BT_WLAN Verify");
		englishData.Add(31, "Station config");
		englishData.Add(32, "Conduction");
		englishData.Add(33, "Connectivity");
		englishData.Add(34, "Radiated");
	}

	private void AddToChineseData()
	{
		chineseData.Add(0, "射频 - 测试仪设置(equipconfig.xml)");
		chineseData.Add(1, "射频 - 站位校准仪器设置(equipconfig.xml)");
		chineseData.Add(5, "蓝牙无线 - 测试仪设置");
		chineseData.Add(6, "蓝牙无线 - 站位校准仪器设置");
		chineseData.Add(4, "射频 - 天线测试");
		chineseData.Add(2, "射频 - 线损编辑(CalDB_NET.xml)");
		chineseData.Add(3, "蓝牙无线 - 线损编辑");
		chineseData.Add(7, "天线测试 - 线损编辑");
		chineseData.Add(8, "站位配置(stationconfig.xml)");
		chineseData.Add(9, "QSEQ 配置(QSEQ_DeviceConfig.xml)");
		chineseData.Add(10, "多路测试配置(DUT_n)");
		chineseData.Add(11, "GPS - 测试仪配置(equipconfig.xml)");
		chineseData.Add(12, "测试Log规则 (QDART_Logging_Configuration.xml)");
		chineseData.Add(13, "MMI测试配置 (mmi_stationConfig.xml)");
		chineseData.Add(101, "保存");
		chineseData.Add(100, "立刻运行");
		chineseData.Add(108, "设置");
		chineseData.Add(130, "文件");
		chineseData.Add(131, "QDART 配置编辑器");
		chineseData.Add(132, " (多路模式)");
		chineseData.Add(109, "帮助");
		chineseData.Add(110, "English");
		chineseData.Add(111, "保存后立刻运行QSPR/QMSCT");
		chineseData.Add(112, "配置文件另存为");
		chineseData.Add(113, "备份原始文件");
		chineseData.Add(114, "是否保存编辑结果 ?");
		chineseData.Add(115, "提示");
		chineseData.Add(116, "目标");
		chineseData.Add(117, "关于QDART配置编辑器");
		chineseData.Add(118, "多路测试");
		chineseData.Add(119, "QMSCT面板数");
		chineseData.Add(120, "为新增DUT填充默认数据");
		chineseData.Add(121, "另存为");
		chineseData.Add(122, "载入");
		chineseData.Add(123, "应用");
		chineseData.Add(124, "取消");
		chineseData.Add(125, "查看帮助");
		chineseData.Add(126, "提示");
		chineseData.Add(127, "");
		chineseData.Add(128, "请对高亮部分");
		chineseData.Add(129, "重新输入并保存.");
		chineseData.Add(200, "不能为空");
		chineseData.Add(201, "保存失败!");
		chineseData.Add(301, "名称");
		chineseData.Add(302, "程控类型");
		chineseData.Add(303, "主地址");
		chineseData.Add(304, "辅地址");
		chineseData.Add(305, "IP地址");
		chineseData.Add(306, "USB地址");
		chineseData.Add(307, "蓝牙波形文件路径");
		chineseData.Add(308, "无线波形文件路径");
		chineseData.Add(309, "StartLitePointConnectivityServer.exe 路径");
		chineseData.Add(310, "相同的程控设置");
		chineseData.Add(311, "相同的波形路径");
		chineseData.Add(312, "蓝牙");
		chineseData.Add(313, "无线");
		chineseData.Add(314, "综测仪");
		chineseData.Add(315, "电源");
		chineseData.Add(316, "信号发生器");
		chineseData.Add(317, "功率计");
		chineseData.Add(20, "传导测试");
		chineseData.Add(21, "连接测试");
		chineseData.Add(22, "天线测试");
		chineseData.Add(23, "手动线损补偿");
		chineseData.Add(24, "其他");
		chineseData.Add(25, "射频校准测试");
		chineseData.Add(26, "自动线损补偿");
		chineseData.Add(27, "蓝牙无线");
		chineseData.Add(28, "自动线损补偿");
		chineseData.Add(29, "射频天线");
		chineseData.Add(30, "蓝牙无线天线");
		chineseData.Add(31, "站位配置");
		chineseData.Add(32, "传导");
		chineseData.Add(33, "连接");
		chineseData.Add(34, "天线");
	}

	public string GetData(int key)
	{
		return currentLangData[key].ToString();
	}
}
