- add translations
[enigma2-plugins.git] / networkwizard / src / networkwizard.xml
1 <wizard>
2                 <step id="welcome" nextstep="introduction">
3                         <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4                         <code>
5 self["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["arrowup2"].moveTo(800, 320, 1)
10 self["arrowup2"].startMoving()
11 self["arrowup3"].moveTo(800, 320, 1)
12 self["arrowup3"].startMoving()
13 self["rc"].moveTo(500, 50, 1)
14 self["rc"].startMoving()
15                         </code>
16                 </step>
17
18                 <step id="introduction" >
19                 <condition>
20 self.condition = (self.InterfaceAvailable == True )
21                 </condition>
22                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK.\n\n\n\nConnect to the internet..." />
23                         <list>
24                                 <listentry caption="via LAN." step="conflan" />
25                                 <listentry caption="via wireless LAN." step="scanwlan" />
26                                 <listentry caption="Exit wizard and configure later manually" step="end" />
27                         </list>
28                         <code>
29 self["arrowup2"].moveTo(800, 320, 1)
30 self["arrowup2"].startMoving()
31 self["arrowdown"].moveTo(557, 200, 1)
32 self["arrowup"].moveTo(557, 355, 1)
33 self["arrowdown"].startMoving()
34 self["arrowup"].startMoving()
35 self["rc"].moveTo(500, 50, 1)
36 self["rc"].startMoving()
37                         </code>
38                 </step>
39
40                 <step id="introduction" >
41                 <condition>
42 self.condition = (self.InterfaceAvailable == False )
43                 </condition>
44                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK.\n\n\n\nConnect to the internet..." />
45                         <list>
46                                 <listentry caption="via LAN." step="conflan" />
47                                 <listentry caption="Exit wizard and configure later manually" step="end" />
48                         </list>
49                         <code>
50 self["arrowup2"].moveTo(800, 320, 1)
51 self["arrowup2"].startMoving()
52 self["arrowdown"].moveTo(557, 200, 1)
53 self["arrowup"].moveTo(557, 355, 1)
54 self["arrowdown"].startMoving()
55 self["arrowup"].startMoving()
56 self["rc"].moveTo(500, 50, 1)
57 self["rc"].startMoving()
58                         </code>
59                 </step>
60
61                 <step id="conflan" nextstep="conflandns">
62                         <text value="Please configure your LAN internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
63                         <config screen="AdapterSetup" module="NetworkSetup" args="'eth0'" type="ConfigList" />
64                         <code>
65 self.checkInterface('eth0')
66                         </code> 
67                         <code>
68 self["arrowup2"].moveTo(525, 320, 1)
69 self["arrowup2"].startMoving()
70 self["arrowup3"].moveTo(590, 320, 1)
71 self["arrowup3"].startMoving()
72 self["arrowdown"].moveTo(557, 200, 1)
73 self["arrowup"].moveTo(557, 355, 1)
74 self["arrowdown"].startMoving()
75 self["arrowup"].startMoving()
76 self["rc"].moveTo(500, 50, 1)
77 self["rc"].startMoving()
78                         </code>
79                 </step>
80
81                 <step id="conflandns" nextstep="checklanstatusend">
82                         <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
83                         <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
84                         <code>
85 self["arrowup2"].moveTo(525, 320, 1)
86 self["arrowup2"].startMoving()
87 self["arrowup3"].moveTo(590, 320, 1)
88 self["arrowup3"].startMoving()
89 self["arrowdown"].moveTo(557, 200, 1)
90 self["arrowup"].moveTo(557, 355, 1)
91 self["arrowdown"].startMoving()
92 self["arrowup"].startMoving()
93 self["rc"].moveTo(500, 50, 1)
94 self["rc"].startMoving()
95                         </code>
96                         <code pos="after">
97 self.checkNetwork()
98                         </code> 
99                 </step>
100
101                 <step id="checklanstatusend" nextstep="end">
102                 <condition>
103 self.condition = (self.InterfaceState == True )
104                 </condition>
105                         <text value="Your Dreambox is now ready to use.\n\nYour LAN internet connection is working now.\n\nPlease press OK to continue." />
106                         <code>
107 self["arrowdown"].moveTo(557, 232, 1)
108 self["arrowdown"].startMoving()
109 self["arrowup"].moveTo(800, 232, 1)
110 self["arrowup"].startMoving()
111 self["arrowup2"].moveTo(800, 320, 1)
112 self["arrowup2"].startMoving()
113 self["arrowup3"].moveTo(800, 320, 1)
114 self["arrowup3"].startMoving()
115 self["rc"].moveTo(500, 50, 1)
116 self["rc"].startMoving()
117                         </code>
118                 </step>
119
120                 <step id="checklanstatusend">
121                 <condition>
122 self.condition = (self.InterfaceState == False )
123                 </condition>
124                         <text value="Your LAN internet connection is not working!\nPlease choose what you want to do next." />
125                         <code>
126 self["arrowdown"].moveTo(557, 232, 1)
127 self["arrowdown"].startMoving()
128 self["arrowup"].moveTo(800, 232, 1)
129 self["arrowup"].startMoving()
130 self["arrowup2"].moveTo(800, 320, 1)
131 self["arrowup2"].startMoving()
132 self["arrowup3"].moveTo(800, 320, 1)
133 self["arrowup3"].startMoving()
134 self["rc"].moveTo(500, 50, 1)
135 self["rc"].startMoving()
136                         </code>
137                         <list>
138                                 <listentry caption="Configure your LAN again" step="conflan" />
139                                 <listentry caption="Configure your wireless LAN" step="scanwlan" />
140                                 <listentry caption="Exit wizard and configure later manually" step="end" />
141                         </list>
142                 </step>
143
144
145                 <step id="scanwlan" nextstep="wlanconfig">
146                 <condition>
147 self.checkInterface('wlan0')                    
148 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
149                 </condition>
150                         <text value="Please select the wireless LAN network that you want to connect to.\n\nPlease press OK to continue." />
151                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
152                         <code>
153 self["arrowup2"].moveTo(800, 320, 1)
154 self["arrowup2"].startMoving()
155 self["arrowdown"].moveTo(557, 200, 1)
156 self["arrowup"].moveTo(557, 355, 1)
157 self["arrowdown"].startMoving()
158 self["arrowup"].startMoving()
159 self["rc"].moveTo(500, 50, 1)
160 self["rc"].startMoving()
161                         </code>
162                         <code pos="after">
163 self.saveAccessPoint(self.ap)
164                         </code>
165                 </step>
166
167                 <step id="scanwlan">
168                 <condition>
169 self.checkInterface('wlan0')                            
170 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
171                 </condition>
172                         <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
173                         <list>
174                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
175                                 <listentry caption="Configure your internal LAN" step="conflan" />
176                                 <listentry caption="Exit wizard and configure later manually" step="end" />
177                         </list>
178                         <code>
179 self["arrowup2"].moveTo(800, 320, 1)
180 self["arrowup2"].startMoving()
181 self["arrowdown"].moveTo(557, 200, 1)
182 self["arrowup"].moveTo(557, 355, 1)
183 self["arrowdown"].startMoving()
184 self["arrowup"].startMoving()
185 self["rc"].moveTo(500, 50, 1)
186 self["rc"].startMoving()
187                         </code>
188                 </step>
189
190                 <step id="scanwlan">
191                 <condition>
192 self.checkInterface('wlan0')                            
193 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
194                 </condition>
195                         <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
196                         <list>
197                                 <listentry caption="Configure your internal LAN" step="conflan" />
198                                 <listentry caption="Exit wizard and configure later manually" step="end" />
199                         </list>
200                         <code>
201 self["arrowup2"].moveTo(800, 320, 1)
202 self["arrowup2"].startMoving()
203 self["arrowdown"].moveTo(557, 200, 1)
204 self["arrowup"].moveTo(557, 355, 1)
205 self["arrowdown"].startMoving()
206 self["arrowup"].startMoving()
207 self["rc"].moveTo(500, 50, 1)
208 self["rc"].startMoving()
209                         </code>
210                 </step>
211
212
213                 <step id="wlanconfig" nextstep="confwlandns" timeout="60" timeoutaction="selectnext">
214                         <text value="Please configure your wireless LAN internet connection by filling out the required values.\nWhen you are done, press OK to continue." />
215                         <config screen="AdapterSetup" module="NetworkSetup" args="'wlan0'" type="ConfigList" />
216                         <code>
217 self["arrowup2"].moveTo(525, 320, 1)
218 self["arrowup2"].startMoving()
219 self["arrowup3"].moveTo(590, 320, 1)
220 self["arrowup3"].startMoving()
221 self["arrowdown"].moveTo(557, 200, 1)
222 self["arrowup"].moveTo(557, 355, 1)
223 self["arrowdown"].startMoving()
224 self["arrowup"].startMoving()
225 self["rc"].moveTo(500, 50, 1)
226 self["rc"].startMoving()
227                         </code>
228                 </step>
229
230                 <step id="confwlandns" nextstep="checkwlanstatusend">
231                         <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
232                         <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
233                         <code>
234 self["arrowup2"].moveTo(525, 320, 1)
235 self["arrowup2"].startMoving()
236 self["arrowup3"].moveTo(590, 320, 1)
237 self["arrowup3"].startMoving()
238 self["arrowdown"].moveTo(557, 200, 1)
239 self["arrowup"].moveTo(557, 355, 1)
240 self["arrowdown"].startMoving()
241 self["arrowup"].startMoving()
242 self["rc"].moveTo(500, 50, 1)
243 self["rc"].startMoving()
244                         </code>
245                         <code pos="after">
246 self.checkNetwork()
247                         </code> 
248                 </step>
249
250                 <step id="checkwlanstatusend" nextstep="end">
251                 <condition>
252 self.condition = (self.InterfaceState == True )
253                 </condition>
254                         <text value="Your Dreambox is now ready to use.\n\nYour wireless LAN internet connection is working now.\n\nPlease press OK to continue." />
255                         <code>
256 self["arrowdown"].moveTo(557, 232, 1)
257 self["arrowdown"].startMoving()
258 self["arrowup"].moveTo(800, 232, 1)
259 self["arrowup"].startMoving()
260 self["arrowup2"].moveTo(800, 320, 1)
261 self["arrowup2"].startMoving()
262 self["arrowup3"].moveTo(800, 320, 1)
263 self["arrowup3"].startMoving()
264 self["rc"].moveTo(500, 50, 1)
265 self["rc"].startMoving()
266                         </code>
267                 </step>
268
269                 <step id="checkwlanstatusend">
270                 <condition>
271 self.condition = (self.InterfaceState == False )
272                 </condition>
273                         <text value="Your wireless LAN internet connection is not working!\nPlease choose what you want to do next." />
274                         <code>
275 self["arrowup2"].moveTo(800, 320, 1)
276 self["arrowup2"].startMoving()
277 self["arrowdown"].moveTo(557, 200, 1)
278 self["arrowup"].moveTo(557, 355, 1)
279 self["arrowdown"].startMoving()
280 self["arrowup"].startMoving()
281 self["rc"].moveTo(500, 50, 1)
282 self["rc"].startMoving()
283                         </code>
284                         <list>
285                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
286                                 <listentry caption="Restart your wireless interface" step="wlanrestart" />
287                                 <listentry caption="Configure your internal LAN" step="conflan" />
288                                 <listentry caption="Exit wizard and configure later manually" step="end" />
289                         </list>
290                 </step>
291
292                 <step id="wlanrestart" nextstep="checkwlanstatusend" timeout="3" timeoutaction="selectnext">
293                         <text value="Your network is restarting.\n\nPlease press OK to continue." />
294                         <code pos="after">
295 self.restartNetwork()
296                         </code> 
297                 </step>
298
299                 <step id="end">
300                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\nPlease press OK to continue." />
301
302                 </step>
303 </wizard>
304
305