blob: 8f002f2c95918c947c719abda0e4f1d84f6911c7 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5package tai_ofa;
6
7
8import java.text.MessageFormat;
9import java.util.*;
10
11/**
12 *
13 * @author Raghav Kashyap (raghavkashyap@paxterrasolutions.com)
14
15 * TestON is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 2 of the License, or
18 * (at your option) any later version.
19
20 * TestON is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24
25 * You should have received a copy of the GNU General Public License
26 * along with TestON. If not, see <http://www.gnu.org/licenses/>.
27
28 */
29public class TAILocale {
30
31 String fileMenu, viewMenu, editMenu, helpMenu, runMenu,OFAHarnessPath,hierarchyTestON;
32 String New, newTestScript, newParams, newTopology,newDriver;
33 String open, save, saveAs, saveAll, close, closeAll, exit;
34 String copy, cut, paste, select, selectAll, pauseTest, resumeTest, stopTest,aboutHelp;
35 String driverExplorer, logExplorer, ProjectExplorer;
36 String contextNew, contextTest, contextTpl, contextParam, contextOpen, contextCut, contextCopy, contextPaste, contextDelete, contextRefresh;
37 String wizTitle, wiz_Previous, wizN_ext, wizCancel, wiz_Finish, wizTestName, wizTestParams, wizEmailId, wizNumberofTestCases, wizEstimatedTime, wizProject, wizParamName, wizTopologyName;
38 String wizProjectWizardId, wizTestWizardId, wizTopologyWizardId;
39 String topoTitle, topoProperties, topoInterfaces, topoAttribute, topoValue, topoHost, topoUserName, topoPassword, topoTransport;
40 String topoSSH, topoTELNET, topoFTP, topoRLOGIN, topoPrompt, topoSave, topoDefault, topoCancel, topoAttribue, topoValues;
41 String testSummaryEndTest, testSummaryTestSummary, testSummaryEnterComment, testSummaryConsoleOutput, summary, information;
42 String testSummaryViewLog, testSummaryExecutionStatus, testSummaryTestCaseId, testSummaryTestCaseName, testSummaryTestCaseTitle, testSummaryStartTest;
43 String testParameterTestDirctory, testParameteremailId, testParameterSelectTestCase, testParameterStartTest, testParameterCancel;
44
45 public TAILocale(Locale currentLocale){
46 TAIProperties resource = new TAIProperties();
47 MessageFormat messageFormat = new MessageFormat("");
48 messageFormat.setLocale(currentLocale);
49
50 hierarchyTestON = (String) resource.handleObject("hierarchyTestON");
51 OFAHarnessPath = (String) resource.handleObject("OFAHarnessPath");
52 fileMenu = (String) resource.handleObject("File");
53 viewMenu = (String) resource.handleObject("View");
54 editMenu = (String) resource.handleObject("Edit");
55 helpMenu= (String) resource.handleObject("Help");
56 runMenu = (String) resource.handleObject("Run");
57 pauseTest = (String) resource.handleObject("Pause");
58 resumeTest = (String) resource.handleObject("Resume");
59 stopTest = (String) resource.handleObject("Stop");
60 aboutHelp = (String) resource.handleObject("About");
61 driverExplorer = (String) resource.handleObject("DriverExplorer");
62 logExplorer= (String) resource.handleObject("LogExplorer");
63 ProjectExplorer = (String) resource.handleObject("ProjectExplorer");
64 copy = (String) resource.handleObject("Copy");
65 cut = (String) resource.handleObject("Cut");
66 paste = (String) resource.handleObject("Paste");
67 select = (String) resource.handleObject("Select");
68 selectAll = (String) resource.handleObject("Select All");
69 New = (String) resource.handleObject("New");
70 open = (String) resource.handleObject("Open");
71 save = (String) resource.handleObject("Save");
72 saveAs = (String) resource.handleObject("SaveAs");
73 saveAll = (String) resource.handleObject("Save All");
74 close = (String) resource.handleObject("Close");
75 closeAll = (String) resource.handleObject("CloseAll");
76 exit = (String) resource.handleObject("Exit");
77 newDriver = (String) resource.handleObject("Driver");
78 newTestScript = (String) resource.handleObject("newTestScript");
79 newParams = (String) resource.handleObject("Params");
80 newTopology = (String) resource.handleObject("Topology");
81
82 // project explorer context menu
83
84 contextNew = (String) resource.handleObject("New");
85 contextTest = (String) resource.handleObject("Test");
86
87 contextParam = (String) resource.handleObject("Params");
88 contextTpl = (String) resource.handleObject("Tpl");
89
90 contextOpen = (String) resource.handleObject("Open");
91 contextCut = (String) resource.handleObject("Cut");
92
93 contextCopy = (String) resource.handleObject("Copy");;
94 contextPaste = (String) resource.handleObject("Paste");
95
96 contextRefresh = (String) resource.handleObject("Refresh");
97 contextDelete = (String) resource.handleObject("Delete");
98
99 //OFA Wizards
100 wizTitle = (String) resource.handleObject("wizTitle");
101 wiz_Previous = (String) resource.handleObject("wiz_Previous");
102 wizN_ext = (String) resource.handleObject("wizN_ext");
103 wizCancel = (String) resource.handleObject("wizCancel");
104 wiz_Finish = (String) resource.handleObject("wiz_Finish");
105
106 wizTestName = (String) resource.handleObject("wizTestName");
107 wizTestParams = (String) resource.handleObject("wizTestParams");
108 wizEmailId = (String) resource.handleObject("wizEmailId");
109 wizNumberofTestCases = (String) resource.handleObject("wizNumberofTestCases");
110 wizEstimatedTime = (String) resource.handleObject("wizEstimatedTime");
111 wizProject = (String) resource.handleObject("wizProject");
112 wizParamName = (String) resource.handleObject("wizParamName");
113 wizTopologyName = (String) resource.handleObject("wizTopologyName");
114
115
116 wizProjectWizardId = (String) resource.handleObject("wizProjectWizardId");
117 wizTestWizardId = (String) resource.handleObject("wizTestWizardId");
118 wizTopologyWizardId = (String) resource.handleObject("wizTopologyWizardId");
119
120 // OFA Topology
121
122 topoTitle = (String) resource.handleObject("topoTitle");
123 topoProperties = (String) resource.handleObject("topoProperties");
124 topoInterfaces = (String) resource.handleObject("topoInterfaces");
125 topoAttribute = (String) resource.handleObject("topoAttribute");
126 topoValue = (String) resource.handleObject("topoValue");
127 topoHost = (String) resource.handleObject("topoHost");
128 topoUserName = (String) resource.handleObject("topoUserName");
129 topoPassword = (String) resource.handleObject("topoPassword");
130 topoTransport = (String) resource.handleObject("topoTransport");
131 topoSSH = (String) resource.handleObject("topoSSH");
132 topoTELNET = (String) resource.handleObject("topoTELNET");
133 topoFTP = (String) resource.handleObject("topoFTP");
134 topoRLOGIN = (String) resource.handleObject("topoRLOGIN");
135 topoPrompt = (String) resource.handleObject("topoPrompt");
136 topoSave = (String) resource.handleObject("topoSave");
137 topoDefault = (String) resource.handleObject("topoDefault");
138 topoCancel = (String) resource.handleObject("topoCancel");
139 topoValues = (String) resource.handleObject("topoValues");
140
141 // OFA Test Summary
142
143 testSummaryViewLog = (String) resource.handleObject("testSummaryViewLog");
144 testSummaryTestCaseTitle = (String) resource.handleObject("testSummaryExecutionStatus");
145 testSummaryTestCaseId = (String) resource.handleObject("testSummaryTestCaseId");
146 testSummaryTestCaseName = (String) resource.handleObject("testSummaryTestCaseName");
147 testSummaryExecutionStatus = (String) resource.handleObject("testSummaryTestCaseStatus");
148 testSummaryStartTest = (String) resource.handleObject("testSummaryStartTest");
149 testSummaryEndTest = (String) resource.handleObject("testSummaryEndTest");
150 testSummaryTestSummary = (String) resource.handleObject("testSummaryTestSummary");
151 summary = (String) resource.handleObject("summary");
152 information = (String) resource.handleObject("information");
153 testSummaryEnterComment = (String) resource.handleObject("testSummaryEnterComment");
154 testSummaryConsoleOutput = (String) resource.handleObject("testSummaryConsoleOutput");
155 testParameterCancel = (String) resource.handleObject("testParameterCancel");
156
157
158
159 }
160}