summaryrefslogtreecommitdiffstats
path: root/po/it.po
blob: f2353b58a47e5b1ecf11915054213cf802e58013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
# translation of mdkonline-it.po to italian
# translation of Mandrakeonline-it.po to italian
# Italian translation of Mandrakeonline.
# Copyright (C) 2002,2003, 2004, 2005 Free Software Foundation, Inc.
# Simone Riccio <s.riccio@aeb-informatica.it>, 2002.
# Roberto Rosselli Del Turco <rosselli@ling.unipi.it>, 2002.
# Daniele Pighin <daniele@dcs.it>, 2003, 2004, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: mdkonline-it\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-01-31 20:23+0100\n"
"PO-Revision-Date: 2005-02-09 21:44+0100\n"
"Last-Translator: \n"
"Language-Team:  <en@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.9.1\n"

#: ../mdkapplet:63
#, c-format
msgid "Your system is up-to-date"
msgstr "Il tuo sistema è aggiornato"

#: ../mdkapplet:69
#, c-format
msgid ""
"Service configuration problem. Please check logs and send mail to "
"support@mandrakeonline.net"
msgstr ""
"Problema di configurazione del server. Controlla i log e scrivi a "
"support@mandrakeonline.net"

#: ../mdkapplet:75
#, c-format
msgid "System is busy. Please wait ..."
msgstr "Il sistema è occupato. Attendi ..."

#: ../mdkapplet:81
#, c-format
msgid "New updates are available for your system"
msgstr "Nuovi aggiornamenti disponibili per il tuo sistema"

#: ../mdkapplet:87
#, c-format
msgid "Service is not configured. Please click on \"Configure the service\""
msgstr "Servizio non configurato. Clicca su \"Configura il servizio\""

#: ../mdkapplet:93
#, c-format
msgid "Network is down. Please configure your network"
msgstr "La rete è disattivata. Prova a riconfigurare la rete"

#: ../mdkapplet:99
#, c-format
msgid "Service is not activated. Please click on \"Online Website\""
msgstr "Servizio non attivato. Clicca su \"Sito web online\""

#: ../mdkapplet:105
#, c-format
msgid "Release not supported (too old release, or development release)"
msgstr "Versione non supportata (troppo vecchia o di sviluppo)"

#: ../mdkapplet:110 ../mdkapplet:164
#, c-format
msgid "Install updates"
msgstr "Installa aggiornamenti"

#: ../mdkapplet:111
#, c-format
msgid "Configure the service"
msgstr "Configura il servizio"

#: ../mdkapplet:112
#, c-format
msgid "Check Updates"
msgstr "Controlla aggiornamenti"

#: ../mdkapplet:113 ../mdkapplet:167 ../mdkapplet:228 ../mdkonline:89
#: ../mdkonline:93 ../mdkonline:131
#, c-format
msgid "Please wait"
msgstr "Attendere prego"

#: ../mdkapplet:113 ../mdkapplet:166 ../mdkapplet:167 ../mdkapplet:228
#, c-format
msgid "Check updates"
msgstr "Controlla aggiornamenti"

#: ../mdkapplet:115
#, c-format
msgid "Online WebSite"
msgstr "Sito online"

#: ../mdkapplet:116
#, c-format
msgid "Configure Network"
msgstr "Configura la rete"

#: ../mdkapplet:117
#, c-format
msgid "Configure Now!"
msgstr "Configura adesso!"

#: ../mdkapplet:152 ../mdkapplet:232
#, c-format
msgid "Mandrakelinux Updates Applet"
msgstr "Applet aggiornamenti Mandrakelinux"

#: ../mdkapplet:162
#, c-format
msgid "Actions"
msgstr "Azioni"

#: ../mdkapplet:165
#, c-format
msgid "Configure"
msgstr "Configura"

#: ../mdkapplet:169
#, c-format
msgid "See logs"
msgstr "Visualizza i log"

#: ../mdkapplet:172
#, c-format
msgid "Status"
msgstr "Stato"

#: ../mdkapplet:176 ../mdkapplet:370
#, c-format
msgid "Close"
msgstr "Chiudi"

#: ../mdkapplet:213
#, c-format
msgid "Network Connection: "
msgstr "Connessione alla rete: "

#: ../mdkapplet:213
#, c-format
msgid "Up"
msgstr "Attiva"

#: ../mdkapplet:213
#, c-format
msgid "Down"
msgstr "Disattiva"

#: ../mdkapplet:214
#, c-format
msgid "Last check: "
msgstr "Ultimo controllo: "

#: ../mdkapplet:215 ../mdkonline:127
#, c-format
msgid "Machine name:"
msgstr "Nome computer:"

#: ../mdkapplet:216
#, c-format
msgid "Updates: "
msgstr "Aggiornamenti: "

#: ../mdkapplet:220
#, c-format
msgid "Launching drakconnect\n"
msgstr "Sto avviando drakconnect\n"

#: ../mdkapplet:224
#, c-format
msgid "Launching mdkupdate --applet\n"
msgstr "Sto avviando mdkupdate --applet\n"

#: ../mdkapplet:227
#, c-format
msgid "Mandrakeonline seems to be reinstalled, reloading applet ...."
msgstr ""
"Sembra che Mandrakeonline sia stato reinstallato, ricarico l'applet ..."

#: ../mdkapplet:238
#, c-format
msgid "Computing new updates...\n"
msgstr "Calcolo dei nuovi aggiornamenti in corso...\n"

#: ../mdkapplet:240
#, c-format
msgid "Connecting to"
msgstr "Connessione in corso con"

#: ../mdkapplet:247
#, c-format
msgid "Response from Mandrakeonline server\n"
msgstr "Risposta del server Mandrakeonline\n"

#: ../mdkapplet:265
#, c-format
msgid "Checking... Updates are available\n"
msgstr "Sto controllando... Ci sono aggiornamenti disponibili\n"

#: ../mdkapplet:270
#, c-format
msgid "Development release not supported by service"
msgstr "Versione di sviluppo non supportata dal servizio"

#: ../mdkapplet:271
#, c-format
msgid "Too old release not supported by service"
msgstr "Release troppo vecchia non supportata dal servizio"

#: ../mdkapplet:272
#, c-format
msgid "Unknown state"
msgstr "Stato ignoto"

#: ../mdkapplet:273
#, c-format
msgid "Online services disabled. Contact Mandrakeonline site\n"
msgstr "Servizi online disabilitati .Contatta il sito Mandrakeonline\n"

#: ../mdkapplet:274
#, c-format
msgid "Wrong Password.\n"
msgstr "Password errata.\n"

#: ../mdkapplet:275
#, c-format
msgid "Wrong Action or host or login.\n"
msgstr "Azione, host o login errati.\n"

#: ../mdkapplet:276
#, c-format
msgid ""
"Something is wrong with your network settings (check your route, firewall or "
"proxy settings)\n"
msgstr ""
"C'è qualcosa di sbagliato nei tuoi parametri di rete (controlla i percorsi, "
"il firewall o le impostazioni del proxy)\n"

#: ../mdkapplet:278
#, c-format
msgid ""
"Problem occurred while connecting to the server, please contact the support "
"team"
msgstr ""
"C'è stato un problema cercando di contattare il server. Contatta il team di "
"supporto"

#: ../mdkapplet:280
#, c-format
msgid "System is up-to-date\n"
msgstr "Il sistema è aggiornato\n"

#: ../mdkapplet:312
#, c-format
msgid "No check"
msgstr "Nessun controllo"

#: ../mdkapplet:325
#, c-format
msgid "Checking Network: seems disabled\n"
msgstr "Controllo la rete: sembra disattivata\n"

#: ../mdkapplet:328
#, c-format
msgid "Checking config file: Not present\n"
msgstr "Controllo il file di configurazione: Non presente\n"

#: ../mdkapplet:360
#, c-format
msgid "Logs"
msgstr "Log"

#: ../mdkapplet:376
#, c-format
msgid "Clear"
msgstr "Cancella"

#: ../mdkapplet:403
#, c-format
msgid "About..."
msgstr "Informazioni su..."

#: ../mdkapplet:404
#, c-format
msgid "Always launch on startup"
msgstr "Lanciare sempre all'avvio"

#: ../mdkapplet:406
#, c-format
msgid "Quit"
msgstr "Esci"

#: ../mdkonline:52 ../mdkonline:106
#, c-format
msgid "Mandrakeonline"
msgstr "Mandrakeonline"

#: ../mdkonline:55
#, c-format
msgid "I already have an account"
msgstr "Ho già un account"

#: ../mdkonline:56
#, c-format
msgid "I want to subscribe"
msgstr "Voglio iscrivermi"

#: ../mdkonline:89
#, c-format
msgid "Reading configuration\n"
msgstr "Lettura della configurazione in corso\n"

#: ../mdkonline:93
#, c-format
msgid "Sending configuration..."
msgstr "Invio della configurazione in corso..."

#: ../mdkonline:109
#, c-format
msgid ""
"This assistant will help you to upload your configuration\n"
"(packages, hardware configuration) to a centralized database in\n"
"order to keep you informed about security updates and useful upgrades.\n"
msgstr ""
"L'assistente ti aiuterà ad inviare la tua configurazione\n"
"(pacchetti, hardware installato) ad un database centralizzato per tenerti\n"
"informato su aggiornamenti del software mirati alla produttività e alla "
"sicurezza.\n"

#: ../mdkonline:114
#, c-format
msgid "Account creation or authentication"
msgstr "Creazione dell'account o autenticazione"

#: ../mdkonline:119
#, c-format
msgid "Enter your Mandrakeonline login, password and machine name:"
msgstr "Immetti nome utente, password e nome computer per Mandrakeonline:"

#: ../mdkonline:125 ../mdkonline:156
#, c-format
msgid "Login:"
msgstr "Nome utente:"

#: ../mdkonline:126 ../mdkonline:157
#, c-format
msgid "Password:"
msgstr "Password:"

#: ../mdkonline:131
#, c-format
msgid "Connecting to Mandrakeonline website..."
msgstr "Connessione in corso al sito Mandrakeonline..."

#: ../mdkonline:139
#, c-format
msgid ""
"In order to benefit from Mandrakeonline services,\n"
"we are about to upload your configuration.\n"
"\n"
"The Wizard will now send the following information to Mandrakesoft:\n"
"1) the list of packages you have installed on your system,\n"
"2) your hardware configuration.\n"
"\n"
"If you feel uncomfortable by that idea, or do not want to benefit from this "
"service,\n"
"please press 'Cancel'. By pressing 'Next', you allow us to keep you "
"informed\n"
"about security updates and useful upgrades via personalized email alerts.\n"
"Furthermore, you benefit from discounted paid support services on\n"
"www.mandrakeexpert.com."
msgstr ""
"Per permetterti di beneficiare dei servizi offerti da Mandrakeonline,\n"
"la configurazione del tuo PC sta per essere trasmessa attraverso Internet.\n"
"\n"
"Alla Mandrakesoft saranno inviate le seguenti informazioni:\n"
"1) la lista dei pacchetti installati sul tuo sistema,\n"
"2) la tua configurazione hardware.\n"
"\n"
"Se la cosa non ti piace, o se non vuoi usufruire di questo servizio,\n"
"fai clic su 'Annulla''. Premendo 'Avanti', ci consenti di tenerti informato\n"
"su aggiornamenti del software e della sicurezza con email personalizzate.\n"
"Inoltre, potrai accedere a sconti sul supporto tecnico presso\n"
"www.mandrakeexpert.com."

#: ../mdkonline:141 ../mdkonline:180 ../mdkupdate:131
#, c-format
msgid "Connection problem"
msgstr "Problema di connessione"

#: ../mdkonline:141
#, c-format
msgid "or"
msgstr "o"

#: ../mdkonline:141
#, c-format
msgid "wrong password:"
msgstr "password errata:"

#: ../mdkonline:141
#, c-format
msgid ""
"Your login or password was wrong.\n"
" Either you'll have to type it again, or you'll need to create an account on "
"Mandrakeonline.\n"
" In the latter case, go back to the first step to connect to "
"Mandrakeonline.\n"
" Be aware that you must also provide a Machine name \n"
" (only alphabetical characters are admitted)"
msgstr ""
"Il nome utente o la password sono errati.\n"
" Dovrai ridigitarli oppure, qualora non ne avessi uno, creare un account su "
"Mandrakeonline.\n"
" Nel secondo caso, torna al primo passo per collegarti a Mandrakeonline.\n"
" Ricorda che devi fornire anche un nome per il tuo computer \n"
" (sono ammessi solo caratteri alfabetici)"

#: ../mdkonline:153
#, c-format
msgid "Create a Mandrakeonline Account"
msgstr "Crea un account per Mandrakeonline"

#: ../mdkonline:158
#, c-format
msgid "Confirm Password:"
msgstr "Conferma password:"

#: ../mdkonline:159
#, c-format
msgid "Mail contact:"
msgstr "Contatto email:"

#: ../mdkonline:163
#, c-format
msgid ""
"The passwords do not match\n"
" Please try again\n"
msgstr ""
"Le password non coincidono\n"
"Per favore, riprova\n"

#: ../mdkonline:163
#, c-format
msgid "Please provide a login"
msgstr "Fornisci un nome utente"

#: ../mdkonline:163
#, c-format
msgid "Not a valid mail address!\n"
msgstr "Non è un indirizzo di email valido!\n"

#: ../mdkonline:169
#, c-format
msgid ""
"Mandrakeonline Account successfully created.\n"
"Please click \"Next\" to authenticate and upload your configuration\n"
msgstr ""
"Account Mandrakeonline creato correttamente.\n"
"Clicca su \"Avanti\" per autenticarti e fare l'upload della tua "
"configurazione\n"

#: ../mdkonline:178
#, c-format
msgid "Your upload was successful!"
msgstr "Trasmissione completata con successo!"

#: ../mdkonline:178
#, c-format
msgid ""
"From now you will receive on security and updates \n"
"announcements thanks to Mandrakeonline."
msgstr ""
"Da ora in poi riceverai avvisi sulla sicurezza e sugli\n"
"aggiornamenti grazie a Mandrakeonline."

#: ../mdkonline:178
#, c-format
msgid ""
"Mandrakeonline offers you the ability to automate the updates.\n"
"A program will run regulary in your system waiting for new updates\n"
msgstr ""
"Mandrakeonline ti offre la possibilità di automatizzare gli aggiornamenti.\n"
"Un programma in attesa di nuovi aggiornamenti sarà eseguito periodicamente\n"

#: ../mdkonline:180
#, c-format
msgid "Problem occurs when uploading files, please try again"
msgstr "C'è stato un problema in upload, per favore riprova"

#: ../mdkonline:186
#, c-format
msgid "Country"
msgstr "Paese"

#: ../mdkonline:203
#, c-format
msgid "Congratulations"
msgstr "Congratulazioni"

#: ../mdkonline:203
#, c-format
msgid "Your Mandrakeonline account has been successfully configured\n"
msgstr ""
"Il tuo account presso Mandrakeonline è stato configurato correttamente\n"

#: ../mdkonline:219
#, c-format
msgid "Configuration uploaded successfully"
msgstr "Configurazione inviata con successo"

#: ../mdkonline:220
#, c-format
msgid "Problem uploading configuration"
msgstr "Problema durante l'invio della configurazione"

#: ../mdkonline:221
#, c-format
msgid ""
"Cannot connect to mandrakeonline website: wrong login/password or router/"
"firewall bad settings"
msgstr ""
"Non è possibile stabilire una connessione con il sito Mandrakeonline: errore "
"nella login/password o nella configurazione del router/firewall"

#: ../mdkonline.pm:66
#, c-format
msgid "Login and password should be less than 12 characters\n"
msgstr "Login e password non devono superare i 12 caratteri\n"

#: ../mdkonline.pm:67
#, c-format
msgid "Special characters are not allowed\n"
msgstr "I caratteri speciali non sono consentiti\n"

#: ../mdkonline.pm:68
#, c-format
msgid "Please fill in all fields\n"
msgstr "Per favore compila tutti i campi\n"

#: ../mdkonline.pm:69
#, c-format
msgid "Email not valid\n"
msgstr "Email non valida\n"

#: ../mdkonline.pm:70
#, c-format
msgid "Account already exist\n"
msgstr "Account già esistente\n"

#: ../mdkonline.pm:76
#, c-format
msgid "Problem connecting to server \n"
msgstr "Problema di connessione al server\n"

#: ../mdkupdate:58
#, c-format
msgid ""
"mdkupdate version %s\n"
"Copyright (C) %s Mandrakesoft.\n"
"This is free software and may be redistributed under the terms of the GNU "
"GPL.\n"
"\n"
"usage:\n"
msgstr ""
"mdkupdate versione %s\n"
"Copyright (C) %s Mandrakesoft.\n"
"Questo è software libero e può essere ridistribuito secondo i termini della "
"GNU GPL.\n"
"\n"
"uso:\n"

#: ../mdkupdate:63
#, c-format
msgid "  --help         - print this help message.\n"
msgstr "  --help         - stampa questo messaggio d'aiuto.\n"

#: ../mdkupdate:64
#, c-format
msgid "  --auto         - Mandrakeupdate launched automatically.\n"
msgstr "  --auto         - Mandrakeupdate avviato automaticamente.\n"

#: ../mdkupdate:65
#, c-format
msgid "  --applet       - launch Mandrakeupdate.\n"
msgstr "  --applet       - avvia Mandrakelinux Update.\n"

#: ../mdkupdate:73
#, c-format
msgid "No %s file found. Run mdkonline wizard first"
msgstr "File %s non trovato. Devi prima eseguire mdkonline"

#: ../mdkupdate:131
#, c-format
msgid "Mandrakeupdate could not contact the site, we will try again."
msgstr "Mandrakeupdate non è riuscito a contattare il sito, nuovo tentativo."

#: ../mdkupdate:186
#, c-format
msgid "Unable to update packages from update_source medium.\n"
msgstr "Impossibile aggiornare i pacchetti dalla sorgente update_source.\n"
/Provider"; my (%countries, @isp, $country, $provider, $old_provider); my $config = {}; eval(cat_("$::prefix/etc/sysconfig/drakconnect")); my %wireless_mode = (N("Ad-hoc") => "Ad-hoc", N("Managed") => "Managed", N("Master") => "Master", N("Repeater") => "Repeater", N("Secondary") => "Secondary", N("Auto") => "Auto", ); my %l10n_lan_protocols = ( static => N("Manual configuration"), dhcp => N("Automatic IP (BOOTP/DHCP)"), if_(0, dhcp_zeroconf => N("Automatic IP (BOOTP/DHCP/Zeroconf)"), ) ); my $_w = N("Protocol for the rest of the world"); my %isdn_protocols = ( 2 => N("European protocol (EDSS1)"), 3 => N("Protocol for the rest of the world\nNo D-Channel (leased lines)"), ); network::tools::remove_initscript(); init_globals($in); $netc->{NET_DEVICE} = $netcnx->{NET_DEVICE} if $netcnx->{NET_DEVICE}; # REDONDANCE with read_conf. FIXME $netc->{NET_INTERFACE} = $netcnx->{NET_INTERFACE} if $netcnx->{NET_INTERFACE}; # REDONDANCE with read_conf. FIXME network::network::read_all_conf($::prefix, $netc, $intf); modules::mergein_conf(); $netc->{autodetect} = {}; my $lan_detect = sub { detect($netc->{autodetect}, 'lan'); modules::interactive::load_category($in, 'network/main|gigabit|pcmcia|usb|wireless', !$::expert, 0); @all_cards = network::ethernet::get_eth_cards(); %eth_intf = network::ethernet::get_eth_cards_names(@all_cards); require list_modules; %eth_intf = map { $_->[0] => join(': ', $_->[0], $_->[2]) } grep { $is_wireless ^ !c::isNetDeviceWirelessAware($_->[0]) } @all_cards; }; my $find_lan_module = sub { if (my $dev = find { $_->{device} eq $ethntf->{DEVICE} } detect_devices::pcmcia_probe()) { # PCMCIA case $module = $dev->{driver}; } elsif ($dev = find { $_->[0] eq $ethntf->{DEVICE} } @all_cards) { $module = $dev->[1]; } else { $module = "" } }; my $is_hotplug_blacklisted = sub { bool2yesno($is_wireless || member($module, qw(b44 forcedeth madwifi_pci)) || find { $_->{device} eq $ntf_name } detect_devices::pcmcia_probe()); }; my %adsl_devices = ( speedtouch => N("Alcatel speedtouch USB modem"), sagem => N("Sagem USB modem"), bewan => N("Bewan modem"), eci => N("ECI Hi-Focus modem"), # this one needs eci agreement ); my %adsl_types = ( dhcp => N("Dynamic Host Configuration Protocol (DHCP)"), manual => N("Manual TCP/IP configuration"), pptp => N("Point to Point Tunneling Protocol (PPTP)"), pppoe => N("PPP over Ethernet (PPPoE)"), pppoa => N("PPP over ATM (PPPoA)"), ); my %encapsulations = ( 1 => N("Bridged Ethernet LLC"), 2 => N("Bridged Ethernet VC"), 3 => N("Routed IP LLC"), 4 => N("Routed IP VC"), 5 => N("PPPOA LLC"), 6 => N("PPPOA VC"), ); my %ppp_auth_methods = ( 0 => N("Script-based"), 1 => N("PAP"), 2 => N("Terminal-based"), 3 => N("CHAP"), 4 => N("PAP/CHAP"), ); my $offer_to_connect = sub { return "ask_connect_now" if $netc->{internet_cnx_choice} eq 'adsl' && $adsl_devices{$ntf_name}; return "ask_connect_now" if member($netc->{internet_cnx_choice}, qw(modem isdn)); return "end"; }; my $after_start_on_boot_step = sub { if ($netc->{internet_cnx_choice}) { write_cnx_script($netc); $netcnx->{type} = $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{type} if $netc->{internet_cnx_choice}; } else { undef $netc->{NET_DEVICE}; } network::network::configureNetwork2($in, $::prefix, $netc, $intf); $network_configured = 1; return "restart" if $need_restart_network && $::isStandalone && !$::expert; return $offer_to_connect->(); }; my $goto_start_on_boot_ifneeded = sub { return $after_start_on_boot_step->() if $netcnx->{type} =~ /lan|cable/; return "network_on_boot"; }; my $save_cnx = sub { if (keys %$config) { require Data::Dumper; output("$::prefix/etc/sysconfig/drakconnect", Data::Dumper->Dump([ $config ], [ '$p' ])); } return $goto_start_on_boot_ifneeded->(); }; my $handle_multiple_cnx = sub { $need_restart_network = 1 if $netcnx->{type} =~ /adsl|cable|lan/; my $nb = keys %{$netc->{internet_cnx}}; if (1 < $nb) { return "multiple_internet_cnx"; } else { $netc->{internet_cnx_choice} = (keys %{$netc->{internet_cnx}})[0] if $nb == 1; $save_cnx->(); return $goto_start_on_boot_ifneeded->() } }; # main wizard: my $wiz; $wiz = { defaultimage => "drakconnect.png", name => N("Network & Internet Configuration"), pages => { welcome => { pre => sub { # keep b/c of translations in case they can be reused somewhere else: my @_a = (N("(detected on port %s)", 'toto'), #-PO: here, "(detected)" string will be appended to eg "ADSL connection" N("(detected %s)", 'toto'), N("(detected)")); my @connections = ([ N("Modem connection"), "modem" ], [ N("ISDN connection"), "isdn" ], [ N("ADSL connection"), "adsl" ], [ N("Cable connection"), "cable" ], [ N("LAN connection"), "lan" ], [ N("Wireless connection"), "lan" ], ); foreach (@connections) { my ($string, $type) = @$_; $connections{$string} = $type; } @connection_list = { val => \$cnx_type, type => 'list', list => [ map { $_->[0] } @connections ], }; }, if_(!$::isInstall, no_back => 1), name => N("Choose the connection you want to configure"), interactive_help_id => 'configureNetwork', data => \@connection_list, post => sub { $is_wireless = $cnx_type eq N("Wireless connection"); load_conf($netcnx, $netc, $intf) if $::isInstall; # :-( $type = $netcnx->{type} = $connections{$cnx_type}; if ($type eq 'cable') { $auto_ip = 1; return "lan"; } return $type; }, }, prepare_detection => { name => N("We are now going to configure the %s connection.\n\n\nPress \"%s\" to continue.", translate($type), N("Next")), post => $handle_multiple_cnx, }, hw_account => { name => N("Connection Configuration") . "\n\n" . N("Please fill or check the field below"), data => sub { [ (map { my ($dstruct, $field, $item) = @$_; $item->{val} = \$dstruct->{$field}; if__(exists $dstruct->{$field}, $item); } ([ $netcnx, "irq", { label => N("Card IRQ") } ], [ $netcnx, "mem", { label => N("Card mem (DMA)") } ], [ $netcnx, "io", { label => N("Card IO") } ], [ $netcnx, "io0", { label => N("Card IO_0") } ], [ $netcnx, "io1", { label => N("Card IO_1") } ], [ $isdn, "phone_in", { label => N("Your personal phone number") } ], [ $netc, "DOMAINNAME2", { label => N("Provider name (ex provider.net)") } ], [ $isdn, "phone_out", { label => N("Provider phone number") } ], [ $netc, "dnsServer2", { label => N("Provider DNS 1 (optional)") } ], [ $netc, "dnsServer3", { label => N("Provider DNS 2 (optional)") } ], [ $isdn, "dialing_mode", { label => N("Dialing mode"), list => ["auto", "manual"] } ], [ $isdn, "speed", { label => N("Connection speed"), list => ["64 Kb/s", "128 Kb/s"] } ], [ $netcnx, "huptimeout", { label => N("Connection timeout (in sec)") } ], #unused? ) ), ({ label => N("Account Login (user name)"), val => \$isdn->{login} }, { label => N("Account Password"), val => \$isdn->{passwd}, hidden => 1 }, ) ], }, post => sub { network::isdn::write_config($isdn, $netc); # or return 'isdn_protocol'; $netc->{$_} = 'ippp0' foreach 'NET_DEVICE', 'NET_INTERFACE'; # return "static_hostname"; $handle_multiple_cnx->(); }, }, # KILLME?: no longer called and deprecated fonction calls :-( #go_ethernet => #{ # pre => sub { # conf_network_card($netc, $intf, $type, $ipadr, $netadr) or return; # $netc->{NET_INTERFACE} = $netc->{NET_DEVICE}; # configureNetwork($netc, $intf, $first_time) or return; # }, #}, isdn => { pre=> sub { detect($netc->{autodetect}, 'isdn'); %isdn_cards = map { $_->{description} => $_ } @{$netc->{autodetect}{isdn}}; }, name => N("Select the network interface to configure:"), data => sub { [ { label => N("Net Device"), type => "list", val => \$isdn_name, allow_empty_list => 1, list => [ $my_isdn, N("External ISDN modem"), keys %isdn_cards ] } ] }, post => sub { # !intern_pci: # data => [ { val => \$isdn_type, type => "list", list => [ , ], } ], # post => sub { if ($isdn_name eq $my_isdn) { return "isdn_ask"; } elsif ($isdn_name eq N("External ISDN modem")) { detect($netc->{autodetect}, 'modem'); $netc->{isdntype} = 'isdn_external'; $netcnx->{isdn_external}{device} = network::modem::first_modem($netc); network::isdn::read_config($netcnx->{isdn_external}); $netcnx->{isdn_external}{special_command} = 'AT&F&O2B40'; require network::modem; $modem = $netcnx->{isdn_external}; return "modem"; } $netc->{isdntype} = 'isdn_internal'; # FIXME: some of these should be taken from isdn db $netcnx->{isdn_internal} = $isdn = { map { $_ => $isdn_cards{$isdn_name}{$_} } qw(description vendor id card_type driver type mem io io0 io1 irq firmware) }; if ($isdn->{id}) { log::explanations("found isdn card : $isdn->{description}; vendor : $isdn->{vendor}; id : $isdn->{id}; driver : $isdn->{driver}\n"); $isdn->{description} =~ s/\|/ -- /; } network::isdn::read_config($netcnx->{isdn_internal}); return "isdn_protocol"; }, }, isdn_ask => { pre => sub { %isdn_cards = network::isdn::get_cards(); }, name => N("Select a device!"), data => sub { [ { label => N("Net Device"), val => \$isdn_name, type => 'list', separator => '|', list => [ keys %isdn_cards ], allow_empty_list => 1 } ] }, pre2 => sub { my ($label) = @_; #- ISDN card already detected goto isdn_ask_step_3; isdn_ask_step_1: my $e = $in->ask_from_list_(N("ISDN Configuration"), $label . "\n" . N("What kind of card do you have?"), [ N_("ISA / PCMCIA"), N_("PCI"), N_("USB"), N_("I don't know") ] ) or return; isdn_ask_step_1b: if ($e =~ /PCI/) { $isdn->{card_type} = 'pci'; } elsif ($e =~ /USB/) { $isdn->{card_type} = 'usb'; } else { $in->ask_from_list_(N("ISDN Configuration"), N(" If you have an ISA card, the values on the next screen should be right.\n If you have a PCMCIA card, you have to know the \"irq\" and \"io\" of your card. "), [ N_("Continue"), N_("Abort") ]) eq 'Continue' or goto isdn_ask_step_1; $isdn->{card_type} = 'isa'; } isdn_ask_step_2: $e = $in->ask_from_listf(N("ISDN Configuration"), N("Which of the following is your ISDN card?"), sub { $_[0]{description} }, [ network::isdn::get_cards_by_type($isdn->{card_type}) ]) or goto($isdn->{card_type} =~ /usb|pci/ ? 'isdn_ask_step_1' : 'isdn_ask_step_1b'); $e->{$_} and $isdn->{$_} = $e->{$_} foreach qw(driver type mem io io0 io1 irq firmware); }, post => sub { $netcnx->{isdn_internal} = $isdn = $isdn_cards{$isdn_name}; return "isdn_protocol"; } }, isdn_protocol => { name => N("ISDN Configuration") . "\n\n" . N("Which protocol do you want to use?"), data => [ { label => N("Protocol"), type => "list", val => \$isdn_type, list => [ keys %isdn_protocols ], format => sub { $isdn_protocols{$_[0]} } } ], post => sub { $isdn->{protocol} = $isdn_type; return "isdn_db", } }, isdn_db => { name => N("ISDN Configuration") . "\n\n" . N("Select your provider.\nIf it isn't listed, choose Unlisted."), data => sub { [ { label => N("Provider:"), type => "list", val => \$provider, separator => '|', list => [ N("Unlisted - edit manually"), network::isdn::read_providers_backend() ] } ];