summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
blob: 21ea3acd228b91f5c594665889dd65a7e433aaef (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
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
package Xconfigurator; # $Id$

use diagnostics;
use strict;
use vars qw($in $install @window_managers @depths @monitorSize2resolution @hsyncranges %min_hsync4wres @vsyncranges %depths @resolutions %serversdriver @svgaservers @accelservers @allbutfbservers @allservers %vgamodes %videomemory @ramdac_name @ramdac_id @clockchip_name @clockchip_id %keymap_translate %standard_monitors $XF86firstchunk_text $keyboardsection_start $keyboardsection_start_v4 $keyboardsection_part2 $keyboardsection_part3 $keyboardsection_part3_v4 $keyboardsection_end $pointersection_text $monitorsection_text1 $monitorsection_text2 $monitorsection_text3 $monitorsection_text4 $modelines_text_Trident_TG_96xx $modelines_text $devicesection_text $devicesection_text_v4 $screensection_text1 %lines @options %xkb_options $good_default_monitor $low_default_monitor $layoutsection_v4);

use common qw(:common :file :functional :system);
use log;
use detect_devices;
use run_program;
use Xconfigurator_consts;
use any;
use modules;
use my_gtk qw(:helpers :wrappers);

my $tmpconfig = "/tmp/Xconfig";

my ($prefix, %monitors, %standard_monitors_);


sub xtest {
    my ($display) = @_;
    $::isStandalone ? 
      system("DISPLAY=$display /usr/X11R6/bin/xtest") == 0 : 
      c::Xtest($display);    
}

sub getVGAMode($) { $_[0]->{card}{vga_mode} || $vgamodes{"640x480x16"}; }

sub readCardsDB {
    my ($file) = @_;
    my ($card, %cards);

    my $F = common::openFileMaybeCompressed($file);

    my ($lineno, $cmd, $val) = 0;
    my $fs = {
        LINE => sub { push @{$card->{lines}}, $val unless $val eq "VideoRam" },
	NAME => sub {
	    $cards{$card->{type}} = $card if $card;
	    $card = { type => $val };
	},
	SEE => sub {
	    my $c = $cards{$val} or die "Error in database, invalid reference $val at line $lineno";

	    push @{$card->{lines}}, @{$c->{lines} || []};
	    add2hash($card->{flags}, $c->{flags});
	    add2hash($card, $c);
	},
	CHIPSET => sub {
	    $card->{chipset} = $val;
	    $card->{flags}{needChipset} = 1 if $val eq 'GeForce DDR';
	    $card->{flags}{needVideoRam} = 1 if member($val, qw(mgag10 mgag200 RIVA128 SiS6326));
	},
	SERVER => sub { $card->{server} = $val; },
	DRIVER => sub { $card->{driver} = $val; },
	RAMDAC => sub { $card->{ramdac} = $val; },
	DACSPEED => sub { $card->{dacspeed} = $val; },
	CLOCKCHIP => sub { $card->{clockchip} = $val; $card->{flags}{noclockprobe} = 1; },
	NOCLOCKPROBE => sub { $card->{flags}{noclockprobe} = 1 },
	UNSUPPORTED => sub { $card->{flags}{unsupported} = 1 },
	COMMENT => sub {},
    };

    local $_;
    while (<$F>) { $lineno++;
	s/\s+$//;
	/^#/ and next;
	/^$/ and next;
	/^END/ and last;

	($cmd, $val) = /(\S+)\s*(.*)/ or next; #log::l("bad line $lineno ($_)"), next;

	my $f = $fs->{$cmd};

	$f ? $f->() : log::l("unknown line $lineno ($_)");
    }
    \%cards;
}
sub readCardsNames {
    my $file = "$ENV{SHARE_PATH}/ldetect-lst/CardsNames";
    map { (split '=>')[0] } grep { !/^#/ } catMaybeCompressed($file);
}
sub cardName2RealName {
    my ($name) = @_;
    my $file = "$ENV{SHARE_PATH}/ldetect-lst/CardsNames";
    foreach (catMaybeCompressed($file)) {
	chop;
	next if /^#/;	  
	my ($name_, $real) = split '=>';
	return $real if $name eq $name_;
    }
    $name;
}
sub updateCardAccordingName {
    my ($card, $name) = @_;
    my $cards = readCardsDB("$ENV{SHARE_PATH}/ldetect-lst/Cards+");

    add2hash($card->{flags}, $cards->{$name}{flags});
    add2hash($card, $cards->{$name});
    $card;
}

sub readMonitorsDB {
    my ($file) = @_;

    %monitors and return;

    my $F = common::openFileMaybeCompressed($file);
    local $_;
    my $lineno = 0; while (<$F>) {
	$lineno++;
	s/\s+$//;
	/^#/ and next;
	/^$/ and next;

	my @fields = qw(vendor type eisa hsyncrange vsyncrange);
	my @l = split /\s*;\s*/;
	@l == @fields or log::l("bad line $lineno ($_)"), next;

	my %l; @l{@fields} = @l;
	if ($monitors{$l{type}}) {
	    my $i; for ($i = 0; $monitors{"$l{type} ($i)"}; $i++) {}
	    $l{type} = "$l{type} ($i)";
	}
	$monitors{"$l{vendor}|$l{type}"} = \%l;
    }
    while (my ($k, $v) = each %standard_monitors) {
	$monitors{'Generic|' . translate($k)} = $standard_monitors_{$k} = 
	  { hsyncrange => $v->[1], vsyncrange => $v->[2] };
    }
}

sub keepOnlyLegalModes {
    my ($card, $monitor) = @_;
    my $mem = 1024 * ($card->{memory} || ($card->{server} eq 'FBDev' ? 2048 : 99999));
    my $hsync = max(split(/[,-]/, $monitor->{hsyncrange}));

    while (my ($depth, $res) = each %{$card->{depth}}) {
	@$res = grep {
	    $mem >= product(@$_, $depth / 8) &&
	    $hsync >= ($min_hsync4wres{$_->[0]} || 0) &&
	    ($card->{server} ne 'FBDev' || $vgamodes{"$_->[0]x$_->[1]x$depth"})
	} @$res;
	delete $card->{depth}{$depth} if @$res == 0;
    }
}

sub cardConfigurationAuto() {
    my @cards;
    if (my @c = grep { $_->{driver} =~ /(Card|Server):/ } detect_devices::probeall(1)) {
	foreach my $i (0..$#c) {
	    local $_ = $c[$i]->{driver};
	    my $card = { identifier => ($c[$i]{description} . (@c > 1 && " $i")) };
	    $card->{type} = $1 if /Card:(.*)/;
	    $card->{server} = $1 if /Server:(.*)/;
	    $card->{flags}{needVideoRam} &&= /86c368/;
	    $card->{busid} = "PCI:$c[$i]{pci_bus}:$c[$i]{pci_device}:$c[$i]{pci_function}";
	    push @{$card->{lines}}, @{$lines{$card->{identifier}} || []};
	    push @cards, $card;
	}
    }
    #- take a default on sparc if nothing has been found.
    if (arch() =~ /^sparc/ && !@cards) {
        log::l("Using probe with /proc/fb as nothing has been found!");
	local $_ = cat_("/proc/fb");
	if (/Mach64/) { push @cards, { server => "Mach64" } }
	elsif (/Permedia2/) { push @cards, { server => "3DLabs" } }
	else { push @cards, { server => "Sun24" } }
    }
    #- special case for dual head card using only one busid.
    @cards = map { my $dup = $_->{identifier} =~ /MGA G450/ ? 2 : 1;
		   if ($dup > 1) {
		       my @result;
		       my $orig = $_;
		       foreach (1..$dup) {
			   my $card = {};
			   add2hash($card, $orig);
			   push @result, $card;
		       }
		       @result;
		   } else {
		       ($_);
		   }
	       } @cards;
    #- make sure no type are already used, duplicate both screen
    #- and rename type (because used as id).
    if (@cards > 1) {
	my $card = 1;
	foreach (@cards) {
	    updateCardAccordingName($_, $_->{type}) if $_->{type};
	    $_->{type} = "$_->{type} $card";
	    $card++;
	}
    }
    #- in case of only one cards, remove all busid reference, this will avoid
    #- need of change of it if the card is moved.
    @cards == 1 and delete $cards[0]{busid};
    @cards;
}

sub cardConfiguration(;$$$) {
    my ($card, $noauto, $allowFB) = @_;
    $card ||= {};

    updateCardAccordingName($card, $card->{type}) if $card->{type}; #- try to get info from given type
    undef $card->{type} unless $card->{server}; #- bad type as we can't find the server
    my @cards = cardConfigurationAuto();
    if (@cards > 1 && ($noauto || !$card->{server})) {#} && !$::isEmbedded) {
	my (%single_heads, @choices, $tc);
	my $configure_multi_head = sub {
	    add2hash($card, $cards[0]); #- assume good default.
	    delete $card->{cards} if $noauto;
	    $card->{cards} or $card->{cards} = \@cards;
	    $card->{force_xf4} = 1; #- force XF4 in such case.
	    $card->{Xinerama} = $_[0];
	};
	foreach (@cards) {
	    unless ($_->{driver} && !$_->{flags}{unsupported}) {
		log::l("found card \"$_->{identifier}\" not supported by XF4, disabling mutli-head support");
		$configure_multi_head = undef;
	    }
	    #- if more than one card use the same BusID, we have to use screen.
	    if ($single_heads{$_->{busid}}) {
		$single_heads{$_->{busid}}{screen} ||= 0;
		$_->{screen} = $single_heads{$_->{busid}}{screen} + 1;
	    }
	    $single_heads{$_->{busid}} = $_;
	}
	if ($configure_multi_head) {
	    push @choices, { text => _("Configure all heads independantly"), code => sub { $configure_multi_head->('') } };
	    push @choices, { text => _("Use Xinerama extension"), code => sub { $configure_multi_head->(1) } };
	}
	foreach (values %single_heads) {
	    push @choices, { text => _("Configure only card \"%s\" (%s)", $_->{identifier}, $_->{busid}),
			     code => sub { add2hash($card, $_); delete $card->{cards}; delete $card->{Xinerama} } };
	}
	$tc = $in->ask_from_listf(_("Multi-head configuration"),
_("Your system support multiple head configuration.
What do you want to do?"), sub { translate($_[0]{text}) }, \@choices) or return; #- no more die, CHECK with auto that return ''!
	$tc->{code} and $tc->{code}();
    } else {
	#- only one head found, configure it as before.
	add2hash($card, $cards[0]) unless $card->{server} || $noauto;
	delete $card->{cards}; delete $card->{Xinerama};
    }
    $card->{server} = 'FBDev' unless !$allowFB || $card->{server} || $card->{type} || $noauto;
    $card->{type} = cardName2RealName($in->ask_from_treelist(_("Graphic card"), _("Select a graphic card"), '|', ['Other|Unlisted', readCardsNames()])) unless $card->{type} || $card->{server};
    undef $card->{type}, $card->{server} = $in->ask_from_list(_("X server"), _("Choose a X server"), $allowFB ? \@allservers : \@allbutfbservers ) or return if $card->{type} eq 'Other|Unlisted';

    updateCardAccordingName($card, $card->{type}) if $card->{type};
    add2hash($card, { vendor => "Unknown", board => "Unknown" });

    foreach ($card, @{$card->{cards} || []}) {
	$_->{memory} = 4096,  delete $_->{depth} if $_->{driver} eq 'i810';
	$_->{memory} = 16384, delete $_->{depth} if $_->{chipset} =~ /PERMEDIA/ && $_->{memory} <= 1024;
    }

    #- 3D acceleration configuration for XFree 3.3 using Utah-GLX.
    $card->{Utah_glx} = ($card->{identifier} =~ /Matrox.* G[24][05]0/ || #- 8bpp does not work.
			 $card->{identifier} =~ /Riva.*128/ ||
			 $card->{identifier} =~ /Rage X[CL]/ ||
			 $card->{identifier} =~ /Rage Mobility (?:P\/M|L) / ||
			 $card->{identifier} =~ /3D Rage (?:LT|Pro)/);
                         #- NOT WORKING $card->{type} =~ /Intel 810/);
    #- 3D acceleration configuration for XFree 3.3 using Utah-GLX but EXPERIMENTAL that may freeze the machine (FOR INFO NOT USED).
    $card->{Utah_glx_EXPERIMENTAL} = ($card->{type} =~ /RIVA TNT/ || #- all RIVA/GeForce comes from NVIDIA and may freeze (gltron).
				      #$card->{type} =~ /RIVA128/ ||
				      $card->{type} =~ /GeForce 256/ ||
				      $card->{type} =~ /S3 Savage3D/ || #- only this one is evoluting (expect a stable release ?)
				      #- $card->{type} =~ /S3 ViRGE/ || #- 15bits only
				      $card->{type} =~ /SiS/);
    #- 3D acceleration configuration for XFree 4.0 using DRI.
    $card->{DRI_glx} = ($card->{identifier} =~ /Voodoo [35]/ || $card->{identifier} =~ /Voodoo Banshee/ || #- 16bit only
			$card->{identifier} =~ /Matrox.* G[24][05]0/ || #- prefer 16bit (24bit not well tested according to DRI)
			$card->{identifier} =~ /8281[05].* CGC/ || #- 16bits (Intel 810 & 815).
			#$card->{identifier} =~ /Radeon / || #- 16bits preferable ?
			$card->{identifier} =~ /Rage 128/); #- 16 and 32 bits, prefer 16bit as no DMA.
    #- 3D acceleration configuration for XFree 4.0 using DRI but EXPERIMENTAL that may freeze the machine (FOR INFO NOT USED).
    $card->{DRI_glx_EXPERIMENTAL} = ($card->{identifier} =~ /SiS.*6C?326/ || #- prefer 16bit, other ?
				     $card->{identifier} =~ /SiS.*6C?236/ ||
				     $card->{identifier} =~ /SiS.*630/ ||
				     $card->{identifier} =~ /Radeon /); #- 16bits preferable ?

    #- check to use XFree 4.0 or XFree 3.3.
    $card->{use_xf4} = $card->{driver} && !$card->{flags}{unsupported};
    $card->{force_xf4} = arch() =~ /ppc/; #- try to figure out ugly hack for PPC (recommend XF4 always so...)
    $card->{prefer_xf3} = !$card->{force_xf4} && ($card->{type} =~ /RIVA TNT/ ||
						  $card->{type} =~ /RIVA128/ ||
						  $card->{type} =~ /GeForce/ ||
						  $card->{type} =~ /NeoMagic /);
    #- take into account current environment in standalone to keep
    #- the XFree86 version.
    if ($::isStandalone) {
	readlink("$prefix/etc/X11/X") =~ /XFree86/ and $card->{prefer_xf3} = 0;
	readlink("$prefix/etc/X11/X") =~ /XF86_/ and $card->{prefer_xf3} = !$card->{force_xf4};
    }

    #- basic installation, use of XFree 4.0 or XFree 3.3.
    my ($xf4_ver, $xf3_ver) = ("4.0.3", "3.3.6");
    my $xf3_tc = { text => _("XFree %s", $xf3_ver),
		   code => sub { $card->{Utah_glx} = $card->{DRI_glx} = ''; $card->{use_xf4} = '';
				 log::l("Using XFree $xf3_ver") } };
    my $msg = _("Which configuration of XFree do you want to have?");
    my @choices = $card->{use_xf4} ? (if_($card->{prefer_xf3}, $xf3_tc),
				      #- hack for Matrox driver where there are undefined reference if no DRI!
				      if_($card->{identifier} !~ /Matrox.* G[24][05]0/ && (!$card->{prefer_xf3} || $::expert), 
					  { text => _("XFree %s", $xf4_ver),
					    code => sub { $card->{Utah_glx} = $card->{DRI_glx} = '';
							  log::l("Using XFree $xf4_ver") } }),
				      if_(!$card->{prefer_xf3} && $::expert, $xf3_tc)) : $xf3_tc;

    #- try to figure if 3D acceleration is supported
    #- by XFree 3.3 but not XFree 4.0 then ask user to keep XFree 3.3 ?
    if ($card->{Utah_glx}) {
	$msg = ($card->{use_xf4} && !$card->{DRI_glx} && !$card->{prefer_xf3} ?
_("Your card can have 3D hardware acceleration support but only with XFree %s.
Your card is supported by XFree %s which may have a better support in 2D.", $xf3_ver, $xf4_ver) :
_("Your card can have 3D hardware acceleration support with XFree %s.", $xf3_ver)) . "\n\n\n" . $msg;
	$::expert or @choices = (); #- keep it by default here as it is the only choice available.
	unshift @choices, { text => _("XFree %s with 3D hardware acceleration", $xf3_ver),
			    code => sub { $card->{use_xf4} = '';
					  log::l("Using XFree $xf3_ver with 3D hardware acceleration") } };
    }

    #- an expert user may want to try to use an EXPERIMENTAL 3D acceleration.
    if ($::expert && $card->{use_xf4} && $card->{DRI_glx_EXPERIMENTAL}) {
	$msg =
_("Your card can have 3D hardware acceleration support with XFree %s,
NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER.", $xf4_ver) . "\n\n\n" . $msg;
	push @choices, { text => _("XFree %s with EXPERIMENTAL 3D hardware acceleration", $xf4_ver),
			 code => sub { $card->{DRI_glx} = 'EXPERIMENTAL';
				       log::l("Using XFree $xf4_ver with EXPERIMENTAL 3D hardware acceleration") } };
    }

    #- an expert user may want to try to use an EXPERIMENTAL 3D acceleration, currenlty
    #- this is with Utah GLX and so, it can provide a way of testing.
    if ($::expert && $card->{Utah_glx_EXPERIMENTAL}) {
	$msg = ($card->{use_xf4} && !$card->{DRI_glx} && !$card->{prefer_xf3} ?
_("Your card can have 3D hardware acceleration support but only with XFree %s,
NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER.
Your card is supported by XFree %s which may have a better support in 2D.", $xf3_ver, $xf4_ver) :
_("Your card can have 3D hardware acceleration support with XFree %s,
NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER.", $xf3_ver)) . "\n\n\n" . $msg;
	push @choices, { text => _("XFree %s with EXPERIMENTAL 3D hardware acceleration", $xf3_ver),
			 code => sub { $card->{use_xf4} = ''; $card->{Utah_glx} = 'EXPERIMENTAL';
				       log::l("Using XFree $xf3_ver with EXPERIMENTAL 3D hardware acceleration") } };
    }

    #- ask the expert user to enable or not hardware acceleration support.
    if ($card->{use_xf4} && $card->{DRI_glx}) {
	$msg = _("Your card can have 3D hardware acceleration support with XFree %s.", $xf4_ver) . "\n\n\n" . $msg;
	$::expert or @choices = (); #- keep all user by default with XFree 4.0 including 3D acceleration.
	unshift @choices, { text => _("XFree %s with 3D hardware acceleration", $xf4_ver),
			    code => sub { log::l("Using XFree $xf4_ver with 3D hardware acceleration") } };
    }

    #- examine choice of user, beware the list MUST NOT BE REORDERED AS the first item should be the
    #- proposed one by DrakX.
    my $tc = $in->ask_from_listf(_("XFree configuration"), formatAlaTeX($msg), sub { translate($_[0]{text}) }, \@choices) or return;
    #- in case of class discarding, this can help ...
    $tc or $tc = $choices[0];
    $tc->{code} and $tc->{code}();
    
	
    $card->{prog} = "/usr/X11R6/bin/" . ($card->{use_xf4} ? 'XFree86' : $card->{server} =~ /Sun (.*)/x ?
					 "Xsun$1" : "XF86_$card->{server}");

    #- additional packages to install according available card.
    #- add XFree86-libs-DRI here if using DRI (future split of XFree86 TODO)
    my @l = ();
    if ($card->{DRI_glx}) {
	push @l, 'Glide_V5' if $card->{identifier} =~ /Voodoo 5/;
	push @l, 'Glide_V3-DRI' if $card->{identifier} =~ /Voodoo (3|Banshee)/;
	push @l, 'XFree86-glide-module' if $card->{identifier} =~ /Voodoo/;
    }
    if ($card->{Utah_glx}) {
	push @l, 'Mesa' if !$card->{use_xf4};
    }

    -x "$prefix$card->{prog}" or $install && $install->($card->{use_xf4} ? 'XFree86-server' : "XFree86-$card->{server}", @l);
    -x "$prefix$card->{prog}" or die "server $card->{server} is not available (should be in $prefix$card->{prog})";

    delete $card->{depth}{32} if $card->{type} =~ /S3 Trio3D/;
    $card->{options}{sw_cursor} = 1 if $card->{type} =~ /S3 Trio3D|SiS 6326/;
    unless ($card->{type}) {
	$card->{flags}{noclockprobe} = member($card->{server}, qw(I128 S3 S3V Mach64));
    }
    $card->{options_xf3}{power_saver} = 1;
    $card->{options_xf4}{DPMS} = 1;

    $card->{flags}{needVideoRam} and
      $card->{memory} ||= $videomemory{$in->ask_from_list_('', _("Select the memory size of your graphic card"),
							   [ sort { $videomemory{$a} <=> $videomemory{$b} }
							     keys %videomemory]) || return};

    #- hack for ATI Mach64 cards where two options should be used if using Utah-GLX.
    if ($card->{identifier} =~ /Rage X[CL]/ ||
	$card->{identifier} =~ /Rage Mobility (?:P\/M|L) / ||
	$card->{identifier} =~ /3D Rage (?:LT|Pro)/) {
	$card->{options_xf3}{no_font_cache} = $card->{Utah_glx};
	$card->{options_xf3}{no_pixmap_cache} = $card->{Utah_glx};
    }
    #- hack for SiS cards where an option should be used if using Utah-GLX.
    if ($card->{type} =~ /SiS /) {
	$card->{options_xf3}{no_pixmap_cache} = $card->{Utah_glx};
    }

    #- 3D acceleration configuration for XFree 4.0 using DRI, this is enabled by default
    #- but for some there is a need to specify VideoRam (else it won't run).
    if ($card->{DRI_glx}) {
	$card->{identifier} =~ /Matrox.* G[24]00/ and $card->{flags}{needVideoRam} = 'fakeVideoRam';
	$card->{identifier} =~ /8281[05].* CGC/ and ($card->{flags}{needVideoRam}, $card->{memory}) = ('fakeVideoRam', 16384);
    }

    if (!$::isStandalone && $card->{driver} eq 'i810') {
	require modules;
	eval { modules::load("agpgart"); };
    }
    $card;
}

sub optionsConfiguration($) {
    my ($o) = @_;
    my @l;
    my %l;

    foreach (@options) {
	if ($o->{card}{server} eq $_->[1] && $o->{card}{identifier} =~ /$_->[2]/) {
	    my $options = 'options_' . ($o->{card}{server} eq 'XFree86' ? 'xf4' : 'xf3');
	    $o->{card}{$options}{$_->[0]} ||= 0;
	    unless ($l{$_->[0]}) {
		push @l, { label => $_->[0], val => \$o->{card}{$options}{$_->[0]}, type => 'bool' };
		$l{$_->[0]} = 1;
	    }
	}
    }
    @l = @l[0..9] if @l > 9; #- reduce list size to 10 for display

    $in->ask_from_entries_refH('', _("Choose options for server"), \@l);
}

sub monitorConfiguration(;$$) {
    my $monitor = shift || {};
    my $useFB = shift || 0;

    if ($monitor->{hsyncrange} && $monitor->{vsyncrange}) {
	add2hash($monitor, { type => "monitor1", vendor => "Unknown", model => "Unknown" });
	return $monitor;
    }

    readMonitorsDB("$ENV{SHARE_PATH}/ldetect-lst/MonitorsDB");

    my $good_default = 'Generic|' . translate($good_default_monitor);
    $monitor->{type} ||=
      ($::auto_install ? $low_default_monitor :
       $in->ask_from_treelist(_("Monitor"), _("Choose a monitor"), '|', ['Custom', keys %monitors], $good_default));
    if ($monitor->{type} eq 'Custom') {
	$in->ask_from_entries_refH('',
_("The two critical parameters are the vertical refresh rate, which is the rate
at which the whole screen is refreshed, and most importantly the horizontal
sync rate, which is the rate at which scanlines are displayed.

It is VERY IMPORTANT that you do not specify a monitor type with a sync range
that is beyond the capabilities of your monitor: you may damage your monitor.
 If in doubt, choose a conservative setting."),
				  [ { val => \$monitor->{hsyncrange}, list => \@hsyncranges, label => _("Horizontal refresh rate") },
				    { val => \$monitor->{vsyncrange}, list => \@vsyncranges, label => _("Vertical refresh rate") }]);
    } else {
	add2hash($monitor, $monitors{$monitor->{type}} || $standard_monitors_{$monitor->{type}});
    }
    add2hash($monitor, { type => "Unknown", vendor => "Unknown", model => "Unknown", manual => 1 });
}

sub testConfig($) {
    my ($o) = @_;
    my ($resolutions, $clocklines);

    write_XF86Config($o, $tmpconfig);

    unlink "/tmp/.X9-lock";
    #- restart_xfs;

    my $f = $tmpconfig . ($o->{card}{use_xf4} && "-4");
    local *F; open F, "$prefix$o->{card}{prog} :9 -probeonly -pn -xf86config $f 2>&1 |";
    local $_;
    while (<F>) {
	$o->{card}{memory} ||= $2 if /(videoram|Video RAM):\s*(\d*)/;

	# look for clocks
	push @$clocklines, $1 if /clocks: (.*)/ && !/(pixel |num)clocks:/;

	push @$resolutions, [ $1, $2 ] if /: Mode "(\d+)x(\d+)": mode clock/;
	print;
    }
    close F or die "X probeonly failed";

    ($resolutions, $clocklines);
}

sub testFinalConfig {
    my ($o, $auto, $skiptest, $skip_badcard) = @_;

    $o->{monitor}{hsyncrange} && $o->{monitor}{vsyncrange} or
      $in->ask_warn('', _("Monitor not configured")), return;

    $o->{card}{server} || $o->{card}{driver} or
      $in->ask_warn('', _("Graphic card not configured yet")), return;

    $o->{card}{depth} or
      $in->ask_warn('', _("Resolutions not chosen yet")), return;

    my $f = "/etc/X11/XF86Config.test";
    write_XF86Config($o, $::testing ? $tmpconfig : "$prefix/$f");

    $skiptest || $o->{card}{server} =~ 'FBDev|Sun' and return 1; #- avoid testing with these.

    #- needed for bad cards not restoring cleanly framebuffer
    my $bad_card = $o->{card}{identifier} =~ /i740|ViRGE/;
    $bad_card ||= $o->{card}{identifier} =~ /Rage Mobility (?:P\/M|L) / ||  $o->{card}{identifier} =~ /3D Rage LT/;
    $bad_card ||= $o->{card}{use_xf4}; #- TODO obsoleted to check, when using fbdev of XFree 4.0!
    log::l("the graphic card does not like X in framebuffer") if $bad_card;

    my $verybad_card = $o->{card}{driver} eq 'i810';
    $verybad_card and return 1;

    my $mesg = _("Do you want to test the configuration?");
    my $def = 1;
    if ($bad_card && !$::isStandalone) {
	$skip_badcard and return 1;
	$mesg = $mesg . "\n" . _("Warning: testing this graphic card may freeze your computer");
	$def = 0;
    }
    $auto && $def or $in->ask_yesorno(_("Test of the configuration"), $mesg, $def) or return 1;

    unlink "$prefix/tmp/.X9-lock";

    #- create a link from the non-prefixed /tmp/.X11-unix/X9 to the prefixed one
    #- that way, you can talk to :9 without doing a chroot
    #- but take care of non X11 install :-)
    if (-d "/tmp/.X11-unix") {
	symlinkf "$prefix/tmp/.X11-unix/X9", "/tmp/.X11-unix/X9" if $prefix;
    } else {
	symlinkf "$prefix/tmp/.X11-unix", "/tmp/.X11-unix" if $prefix;
    }
    #- restart_xfs;

    my $f_err = "$prefix/tmp/Xoutput";
    my $pid;
    unless ($pid = fork) {
	open STDERR, ">$f_err";
	chroot $prefix if $prefix;
	exec $o->{card}{prog}, 
	  if_($o->{card}{prog} !~ /Xsun/, "-xf86config", ($::testing ? $tmpconfig : $f) . ($o->{card}{use_xf4} && "-4")),
	  ":9" or c::_exit(0);
    }

    do { sleep 1 } until xtest(":9") || waitpid($pid, c::WNOHANG());

    my $b = before_leaving { unlink $f_err };

    unless (xtest(":9")) {
	local $_;
	local *F; open F, $f_err;
      i: while (<F>) {
	    if (/\b(error|not supported)\b/i) {
		my @msg = !/error/ && $_ ;
		while (<F>) {
		    /not fatal/ and last i;
		    /^$/ and last;
		    push @msg, $_;
		}
		$in->ask_warn('', [ _("An error has occurred:"), " ", @msg, _("\ntry to change some parameters") ]);
		return 0;
	    }
	}
    }

    local *F;
    open F, "|perl" or die '';
    print F "use lib qw(", join(' ', @INC), ");\n";
    print F q{
	use interactive_gtk;
        use my_gtk qw(:wrappers);

	$ENV{DISPLAY} = ":9";

        gtkset_background(200 * 257, 210 * 257, 210 * 257);
        my ($h, $w) = Gtk::Gdk::Window->new_foreign(Gtk::Gdk->ROOT_WINDOW)->get_size;
        $my_gtk::force_position = [ $w / 3, $h / 2.4 ];
	$my_gtk::force_focus = 1;
        my $text = Gtk::Label->new;
        my $time = 8;
        Gtk->timeout_add(1000, sub {
	    $text->set(_("Leaving in %d seconds", $time));
	    $time-- or Gtk->main_quit;
            1;
	});

        my $background = "/usr/share/pixmaps/backgrounds/linux-mandrake/XFdrake-image-test.jpg";
        my $qiv = "/usr/bin/qiv";
        -r "} . $prefix . q{/$background" && -x "} . $prefix . q{/$qiv" and
            system(($::testing ? "} . $prefix . q{" : "chroot } . $prefix . q{/ ") . "$qiv -y $background");

	exit (interactive_gtk->new->ask_yesorno('', [ _("Is this the correct setting?"), $text ], 0) ? 0 : 222);
    };
    my $rc = close F;
    my $err = $?;

    unlink "/tmp/.X11-unix/X9" if $prefix;
    kill 2, $pid;

    $rc || $err == 222 << 8 or $in->ask_warn('', _("An error has occurred, try to change some parameters"));
    $rc;
}

sub autoDefaultDepth($$) {
    my ($card, $wres_wanted) = @_;
    my ($best, $depth);

    return 24 if $card->{identifier} =~ /SiS/; #- assume 24 bit even for 3D acceleration (not enabled currently).
    return 16 if $card->{Utah_glx} || $card->{DRI_glx}; #- assume 16bit as most of them need 16.
    
    for ($card->{server}) {
	/FBDev/   and return 16; #- this should work by default, FBDev is allowed only if install currently uses it at 16bpp.
	/Sun24/   and return 24;
	/SunMono/ and return 2;
	/Sun/     and return 8;
    }

    while (my ($d, $r) = each %{$card->{depth}}) {
	$depth = max($depth || 0, $d);

	#- try to have resolution_wanted
	$best = max($best || 0, $d) if $r->[0][0] >= $wres_wanted;
	$best = $card->{suggest_depth}, last if $r->[0][0] >= $wres_wanted || $r->[0][0] >= $card->{suggest_wres};
    }
    $best || $depth or die "no valid modes";
}

sub autoDefaultResolution {
    return "1024x768" if detect_devices::hasPCMCIA;

	if (arch() =~ /ppc/) {
		my $mac_model = detect_devices::get_mac_model();
		return "1024x768" if $mac_model =~ /PowerBook1,1/; #- 800x600 not a pretty site on Powerbook
	}
	
    my ($size) = @_;
    $monitorSize2resolution[round($size || 14)] || #- assume a small monitor (size is in inch)
      $monitorSize2resolution[-1]; #- no corresponding resolution for this size. It means a big monitor, take biggest we have
}

sub chooseResolutionsGtk($$;$) {
    my ($card, $chosen_depth, $chosen_w) = @_;

    require my_gtk;
    my_gtk->import(qw(:wrappers));

    my $W = my_gtk->new(_("Resolution"));
    my %txt2depth = reverse %depths;
    my ($r, $depth_combo, %w2depth, %w2h, %w2widget, $pix_monitor, $pix_colors, $w2_combo);

    my $best_w;
    while (my ($depth, $res) = each %{$card->{depth}}) {
	foreach (@$res) {
	    $w2h{$_->[0]} = $_->[1];
	    push @{$w2depth{$_->[0]}}, $depth;

	    $best_w = max($_->[0], $best_w) if $_->[0] <= $chosen_w;
	}
    }
    $chosen_w = $best_w;

    my $set_depth = sub { $depth_combo->entry->set_text(translate($depths{$chosen_depth})) };

    #- the set function is usefull to toggle the CheckButton with the callback being ignored
    my $ignore;
    my $no_human; # is the w2_combo->entry changed by a human?
    my $set = sub { $ignore = 1; $_[0]->set_active(1); $ignore = 0; };

    while (my ($w, $h) = each %w2h) {
	my $V = $w . "x" . $h;
	$w2widget{$w} = $r = new Gtk::RadioButton($r ? ($V, $r) : $V);
	&$set($r) if $chosen_w == $w;
	$r->signal_connect("clicked" => sub {
			       $ignore and return;
			       $chosen_w = $w;
			       $no_human=1;
			       $w2_combo->entry->set_text($w . "x" . $w2h{$w});
			       unless (member($chosen_depth, @{$w2depth{$w}})) {
				   $chosen_depth = max(@{$w2depth{$w}});
				   &$set_depth();
			       }
			   });
    }
    gtkadd($W->{window},
	   gtkpack_($W->create_box_with_title(_("Choose the resolution and the color depth"),
					      "(" . ($card->{type} ? 
						     _("Graphic card: %s", $card->{type}) :
						     _("XFree86 server: %s", $card->{server})) . ")"
					     ),
		    1, gtkpack2(new Gtk::VBox(0,0),
				gtkpack2__(new Gtk::VBox(0, $::isEmbedded ? 15 : 0),
					   if_($::isEmbedded, $pix_monitor = gtkpng ("monitor")),
					   if_(!$::isEmbedded, map {$w2widget{$_} } ikeys(%w2widget)),
					   gtkpack2(new Gtk::HBox(0,0),
						    create_packtable({ col_spacings => 5, row_spacings => 5},
	     [ if_($::isEmbedded,$w2_combo = new Gtk::Combo) , new Gtk::Label("")],
	     [ $depth_combo = new Gtk::Combo, gtkadd(gtkset_shadow_type(new Gtk::Frame, 'etched_out'), $pix_colors = gtkpng ("colors")) ],
							     ),
						   ),
					  ),
			       ),
		    0, gtkadd($W->create_okcancel,
			      $::isEmbedded ?
			      gtksignal_connect(new Gtk::Button(_("Expert Mode")), clicked => sub { system ("XFdrake --expert"); }) :
			      gtksignal_connect(new Gtk::Button(_("Show all")), clicked => sub { $W->{retval} = 1; $chosen_w = 0; Gtk->main_quit })),
		    ));
    $depth_combo->disable_activate;
    $depth_combo->set_use_arrows_always(1);
    $depth_combo->entry->set_editable(0);
    $depth_combo->set_popdown_strings(map { translate($depths{$_}) } ikeys(%{$card->{depth}}));
    $depth_combo->entry->signal_connect(changed => sub {
        $chosen_depth = $txt2depth{untranslate($depth_combo->entry->get_text, keys %txt2depth)};
        my $w = $card->{depth}{$chosen_depth}[0][0];
        $chosen_w > $w and &$set($w2widget{$chosen_w = $w});
	$pix_colors->set(gtkcreate_png(
               $chosen_depth >= 24 ? "colors.png" :
	       $chosen_depth >= 15 ? "colors16.png" :
	                             "colors8.png"));
    });
    if ($::isEmbedded) {
	$w2_combo->disable_activate;
	$w2_combo->set_use_arrows_always(1);
	$w2_combo->entry->set_editable(0);
	$w2_combo->set_popdown_strings(map { $_ . "x" . $w2h{$_} } keys %w2h);
	$w2_combo->entry->signal_connect(changed => sub {
	    ($chosen_w) = $w2_combo->entry->get_text =~ /([^x]*)x.*/;
	    $no_human ? $no_human=0 : $w2widget{$chosen_w}->set_active(1);
	});
    }
    &$set_depth();
    $W->{ok}->grab_focus;

    $W->main or return;
    ($chosen_depth, $chosen_w);
}

sub chooseResolutions($$;$) {
    goto &chooseResolutionsGtk if ref($in) =~ /gtk/;

    my ($card, $chosen_depth, $chosen_w) = @_;

    my $best_w;
    local $_ = $in->ask_from_list(_("Resolutions"), "", 
				  [ map_each { map { "$_->[0]x$_->[1] ${main::a}bpp" } @$::b } %{$card->{depth}} ]) or return;
    reverse /(\d+)x\S+ (\d+)/;
}


sub resolutionsConfiguration {
    my ($o, $auto) = @_;
    my $card = $o->{card};

    #- For the mono and vga16 server, no further configuration is required.
    if (member($card->{server}, "Mono", "VGA16")) {
	$card->{depth}{8} = [[ 640, 480 ]];
	return;
    } elsif ($card->{server} =~ /Sun/) {
	$card->{depth}{2} = [[ 1152, 864 ]] if $card->{server} =~ /^(SunMono)$/;
	$card->{depth}{8} = [[ 1152, 864 ]] if $card->{server} =~ /^(SunMono|Sun)$/;
	$card->{depth}{24} = [[ 1152, 864 ]] if $card->{server} =~ /^(SunMono|Sun|Sun24)$/;
	$card->{default_wres} = 1152;
	$o->{default_depth} = max(keys %{$card->{depth}});
	return 1; #- aka we cannot test, assumed as good (should be).
    }
    if (is_empty_hash_ref($card->{depth})) {
	$card->{depth}{$_} = [ map { [ split "x" ] } @resolutions ]
	  foreach @depths;
    }
    #- sort resolutions in each depth
    foreach (values %{$card->{depth}}) {
	my $i = 0;
	@$_ = grep { first($i != $_->[0], $i = $_->[0]) }
	  sort { $b->[0] <=> $a->[0] } @$_;
    }

    #- remove unusable resolutions (based on the video memory size and the monitor hsync rate)
    keepOnlyLegalModes($card, $o->{monitor});

    my $res = $o->{resolution_wanted} || $card->{suggest_wres} || autoDefaultResolution($o->{monitor}{size});
    my $wres = first(split 'x', $res);

    #- take the first available resolution <= the wanted resolution
    $wres = max map { first(grep { $_->[0] <= $wres } @$_)->[0] } values %{$card->{depth}};
    my $depth = eval { $o->{default_depth} || autoDefaultDepth($card, $wres) };

    $auto or ($depth, $wres) = chooseResolutions($card, $depth, $wres) or return;

    unless ($wres) {
	delete $card->{depth};
	return resolutionsConfiguration($o);
    }

    #- needed in auto mode when all has been provided by the user
    $card->{depth}{$depth} or die "you selected an unusable depth";

    #- remove all biggest resolution (keep the small ones for ctl-alt-+)
    #- otherwise there'll be a virtual screen :(
    $_ = [ grep { $_->[0] <= $wres } @$_ ] foreach values %{$card->{depth}};
    $card->{default_wres} = $wres;
    $card->{vga_mode} = $vgamodes{"${wres}xx$depth"} || $vgamodes{"${res}x$depth"}; #- for use with frame buffer.
    $o->{default_depth} = $depth;
    1;
}


#- Create the XF86Config file.
sub write_XF86Config {
    my ($o, $file) = @_;
    my $O;

    local (*F, *G);
    open F, ">$file"   or die "can't write XF86Config in $file: $!";
    open G, ">$file-4" or die "can't write XF86Config in $file-4: $!";

    print F $XF86firstchunk_text;
    print G $XF86firstchunk_text;

    #- Write keyboard section.
    $O = $o->{keyboard};
    print F $keyboardsection_start;
    print G $keyboardsection_start_v4;
    print F qq(    XkbDisable\n) unless $O->{xkb_keymap};
    print G qq(    Option "XkbDisable"\n) unless $O->{xkb_keymap};
    print F $keyboardsection_part3;
    print G $keyboardsection_part3_v4;
    print F qq(    XkbLayout       "$O->{xkb_keymap}"\n);
    print G qq(    Option "XkbLayout" "$O->{xkb_keymap}"\n);
    print F join '', map { "    $_\n" } @{$xkb_options{$O->{xkb_keymap}} || []};
    print G join '', map { /(\S+)(.*)/; qq(    Option "$1" $2\n) } @{$xkb_options{$O->{xkb_keymap}} || []};
    print F $keyboardsection_end;
    print G $keyboardsection_end;

    #- Write pointer section.
    my $pointer = sub {
	my ($O, $id) = @_;
	$id > 1 or print F qq(Section "Pointer"\n);
	print G qq(Section "InputDevice"\n\n);
	print G qq(    Identifier  "Mouse$id"\n);
	print G qq(    Driver      "mouse"\n);
	$id > 1 or print F qq(    Protocol    "$O->{XMOUSETYPE}"\n);
	print G qq(    Option "Protocol"    "$O->{XMOUSETYPE}"\n);
	$id > 1 or print F qq(    Device      "/dev/$O->{device}"\n);
	print G qq(    Option "Device"      "/dev/$O->{device}"\n);
	#- this will enable the "wheel" or "knob" functionality if the mouse supports it
	$id > 1 or print F "    ZAxisMapping 4 5\n" if $O->{nbuttons} > 3;
	$id > 1 or print F "    ZAxisMapping 6 7\n" if $O->{nbuttons} > 5;
	print G qq(    Option "ZAxisMapping" "4 5"\n) if $O->{nbuttons} > 3;
	print G qq(    Option "ZAxisMapping" "6 7"\n) if $O->{nbuttons} > 5;

	$id > 1 or print F "#" unless $O->{nbuttons} < 3;
	print G "#" unless $O->{nbuttons} < 3;
	$id > 1 or print F qq(    Emulate3Buttons\n);
	print G qq(    Option "Emulate3Buttons"\n);
	$id > 1 or print F "#" unless $O->{nbuttons} < 3;
	print G "#" unless $O->{nbuttons} < 3;
	$id > 1 or print F qq(    Emulate3Timeout    50\n\n);
	print G qq(    Option "Emulate3Timeout"    "50"\n\n);
	$id > 1 or print F "# ChordMiddle is an option for some 3-button Logitech mice\n\n";
	print G "# ChordMiddle is an option for some 3-button Logitech mice\n\n";
	$id > 1 or print F "#" unless $O->{chordmiddle};
	print G "#" unless $O->{chordmiddle};
	$id > 1 or print F qq(    ChordMiddle\n\n);
	print G qq(    Option "ChordMiddle"\n\n);
	$id > 1 or print F "    ClearDTR\n" if $O->{cleardtrrts};
	$id > 1 or print F "    ClearRTS\n\n"  if $O->{cleardtrrts};
	$id > 1 or print F "EndSection\n\n\n";
	print G "EndSection\n\n\n";
    };
    print F $pointersection_text;
    print G $pointersection_text;
    $pointer->($o->{mouse}, 1);
    $o->{mouse}{auxmouse} and $pointer->($o->{mouse}{auxmouse}, 2);

    #- write module section for version 3.
    if (@{$o->{wacom}} || $o->{card}{Utah_glx}) {
	print F qq(Section "Module"
);
	print F qq(    Load "xf86Wacom.so"\n) if @{$o->{wacom}};
	print F qq(    Load "glx-3.so"\n) if $o->{card}{Utah_glx}; #- glx.so may clash with server version 4.
	print F qq(EndSection

);
    }

    #- write wacom device support.
    foreach (@{$o->{wacom}}) {
	my $dev = "/dev/" . $o->{wacom}[$_-1];
	print F $dev =~ /input\/event/ ? qq(
Section "XInput"
    SubSection "WacomStylus"
        DeviceName "Stylus$_"
        Port "$dev"
        USB
        AlwaysCore
        Mode Absolute
    EndSubSection
    SubSection "WacomCursor"
        DeviceName "Cursor$_"
        Port "$dev"
        USB
        AlwaysCore
        Mode Relative
    EndSubSection
    SubSection "WacomEraser"
        DeviceName "Eraser$_"
        Port "$dev"
        USB
        AlwaysCore
        Mode Absolute
    EndSubSection
EndSection

) : qq(
Section "XInput"
    SubSection "WacomStylus"
        DeviceName "Stylus$_"
        Port "$dev"
        AlwaysCore
        Mode Absolute
    EndSubSection
    SubSection "WacomCursor"
        DeviceName "Sursor$_"
        Port "$dev"
        AlwaysCore
        Mode Relative
    EndSubSection
    SubSection "WacomEraser"
        DeviceName "Eraser$_"
        Port "$dev"
        AlwaysCore
        Mode Absolute
    EndSubSection
EndSection

);
    }

    foreach (1..@{$o->{wacom}}) {
	my $dev = "/dev/" . $o->{wacom}[$_-1];
	print G $dev =~ /input\/event/ ? qq(
Section "InputDevice"
    Identifier	"Stylus$_"
    Driver	"wacom"
    Option	"Type" "stylus"
    Option	"Device" "$dev"
    Option	"Mode" "Absolute"
    Option	"USB" "on"
EndSection
Section "InputDevice"
    Identifier	"Eraser$_"
    Driver	"wacom"
    Option	"Type" "eraser"
    Option	"Device" "$dev"
    Option	"Mode" "Absolute"
    Option	"USB" "on"
EndSection
Section "InputDevice"
    Identifier	"Cursor$_"
    Driver	"wacom"
    Option	"Type" "cursor"
    Option	"Device" "$dev"
    Option	"Mode" "Relative"
    Option	"USB" "on"
EndSection
) : qq(
Section "InputDevice"
    Identifier	"Stylus$_"
    Driver	"wacom"
    Option	"Type" "stylus"
    Option	"Device" "$dev"
    Option	"Mode" "Absolute"
EndSection
Section "InputDevice"
    Identifier	"Eraser$_"
    Driver	"wacom"
    Option	"Type" "eraser"
    Option	"Device" "$dev"
    Option	"Mode" "Absolute"
EndSection
Section "InputDevice"
    Identifier	"Cursor$_"
    Driver	"wacom"
    Option	"Type" "cursor"
    Option	"Device" "$dev"
    Option	"Mode" "Relative"
EndSection
);
    }

    #- write modules section for version 4.
    print G qq(
Section "Module"

# This loads the DBE extension module.

    Load	"dbe"
);
    print G qq(
    Load	"glx"
    Load	"dri"
) if $o->{card}{DRI_glx};
    print G qq(

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

    SubSection	"extmod"
	#Option	"omit xfree86-dga"
    EndSubSection

# This loads the Type1 and FreeType font modules

    Load	"type1"
    Load	"freetype"
EndSection
);
    print G qq(

Section "DRI"
    Mode	0666
EndSection

) if $o->{card}{DRI_glx};

    #- Write monitor section.
    $O = $o->{monitor};
    print F $monitorsection_text1;
    print G $monitorsection_text1;
    print F qq(    Identifier "$O->{type}"\n);
    print G qq(    Identifier "$O->{type}"\n);
    print F qq(    VendorName "$O->{vendor}"\n);
    print G qq(    VendorName "$O->{vendor}"\n);
    print F qq(    ModelName  "$O->{model}"\n\n);
    print G qq(    ModelName  "$O->{model}"\n\n);
    print F $monitorsection_text2;
    print G $monitorsection_text2;
    print F qq(    HorizSync  $O->{hsyncrange}\n\n);
    print G qq(    HorizSync  $O->{hsyncrange}\n\n);
    print F $monitorsection_text3;
    print G $monitorsection_text3;
    print F qq(    VertRefresh $O->{vsyncrange}\n\n);
    print G qq(    VertRefresh $O->{vsyncrange}\n\n);
    print F $monitorsection_text4;
    print F ($O->{modelines} || '') . ($o->{card}{type} eq "TG 96" ? $modelines_text_Trident_TG_96xx : $modelines_text);
    print F "\nEndSection\n\n\n";
    print G "\nEndSection\n\n\n";
    foreach (2..@{$o->{card}{cards} || []}) {
	print G qq(Section "Monitor"\n);
	print G qq(    Identifier "monitor$_"\n);
	print G qq(    VendorName "$O->{vendor}"\n);
	print G qq(    ModelName  "$O->{model}"\n\n);
	print G qq(    HorizSync   $O->{hsyncrange}\n);
	print G qq(    VertRefresh $O->{vsyncrange}\n);
	print G qq(EndSection\n\n\n);
    }

    #- Write Device section.
    $O = $o->{card};
    print F $devicesection_text;
    print G $devicesection_text_v4;
    print F qq(Section "Device"\n);
    print F qq(    Identifier  "$O->{type}"\n);
    print F qq(    VendorName  "$O->{vendor}"\n);
    print F qq(    BoardName   "$O->{board}"\n);

    print F "#" if $O->{chipset} && !$O->{flags}{needChipset};
    print F qq(    Chipset     "$O->{chipset}"\n) if $O->{chipset};

    print F "#" if $O->{memory} && !$O->{flags}{needVideoRam};
    print F "    VideoRam    $O->{memory}\n" if $O->{memory};

    print F map { "    $_\n" } @{$O->{lines} || []};

    print F qq(    Ramdac      "$O->{ramdac}"\n) if $O->{ramdac};
    print F qq(    Dacspeed    "$O->{dacspeed}"\n) if $O->{dacspeed};

    if ($O->{clockchip}) {
	print F qq(    Clockchip   "$O->{clockchip}"\n);
    } else {
	print F "    # Clock lines\n";
	print F "    Clocks $_\n" foreach (@{$O->{clocklines}});
    }
    print F qq(

    # Uncomment following option if you see a big white block        
    # instead of the cursor!                                          
    #    Option      "sw_cursor"

);
    my $p = sub {
	my $l = $O->{$_[0]};
	map { (!$l->{$_} && '#') . qq(    Option      "$_"\n) } keys %{$l || {}};
    };
    print F $p->('options');
    print F $p->('options_xf3');
    print F "EndSection\n\n\n";

    #- configure all drivers here!
    foreach (@{$O->{cards} || [ $O ]}) {
	print G qq(Section "Device"\n);
	print G qq(    Identifier  "$_->{type}"\n);
	print G qq(    VendorName  "$_->{vendor}"\n);
	print G qq(    BoardName   "$_->{board}"\n);
	print G qq(    Driver      "$_->{driver}"\n);
	print G "#" if $_->{memory} && !$_->{flags}{needVideoRam};
	print G "    VideoRam    $_->{memory}\n" if $_->{memory};
	print G map { "    $_\n" } @{$_->{lines} || []};
	print G qq(    Ramdac      "$_->{ramdac}"\n) if $_->{ramdac};
	print G qq(    Dacspeed    "$_->{dacspeed}"\n) if $_->{dacspeed};
	if ($_->{clockchip}) {
	    print G qq(    Clockchip   "$_->{clockchip}"\n);
	} else {
	    print G "    # Clock lines\n";
	    print G "    Clocks $_\n" foreach (@{$_->{clocklines}});
	}
	print G qq(

    # Uncomment following option if you see a big white block        
    # instead of the cursor!                                          
    #    Option      "sw_cursor"

);
	print G $p->('options'); #- keep $O for these!
	print G $p->('options_xf4'); #- keep $O for these!
	print G qq(    Screen $_->{screen}\n) if defined $_->{screen};
	print G qq(    BusID       "$_->{busid}"\n) if $_->{busid};
	print G "EndSection\n\n\n";
    }

    #- Write Screen sections.
    print F $screensection_text1, "\n";
    print G $screensection_text1, "\n";

    my $subscreen = sub {
	my ($f, $server, $defdepth, $depths) = @_;
	print $f "    DefaultColorDepth $defdepth\n" if $defdepth;

        foreach (ikeys(%$depths)) {
	    my $m = $server ne "fbdev" ? join(" ", map { qq("$_->[0]x$_->[1]") } @{$depths->{$_}}) : qq("default"); #-"
	    print $f qq(    Subsection "Display"\n);
	    print $f qq(        Depth       $_\n) if $_;
	    print $f qq(        Modes       $m\n);
	    print $f qq(        ViewPort    0 0\n);
	    print $f qq(    EndSubsection\n);
	}
	print $f "EndSection\n";
    };

    my $screen = sub {
	my ($server, $defdepth, $device, $depths) = @_;
	print F qq(
Section "Screen"
    Driver "$server"
    Device      "$device"
    Monitor     "$o->{monitor}{type}"
); #-"
	$subscreen->(*F, $server, $defdepth, $depths);
    };

    #- SVGA screen section.
    print F qq(
# The Colour SVGA server
);

    if (member($O->{server}, @svgaservers)) {
	&$screen("svga", $o->{default_depth}, $O->{type}, $O->{depth});
    } else {
	&$screen("svga", '', "Generic VGA", { 8 => [[ 320, 200 ]] });
    }

    &$screen("vga16", '',
	     (member($O->{server}, "Mono", "VGA16") ? $O->{type} : "Generic VGA"),
	     { '' => [[ 640, 480 ], [ 800, 600 ]]});

    &$screen("vga2", '',
	     (member($O->{server}, "Mono", "VGA16") ? $O->{type} : "Generic VGA"),
	     { '' => [[ 640, 480 ], [ 800, 600 ]]});

    &$screen("accel", $o->{default_depth}, $O->{type}, $O->{depth});

    &$screen("fbdev", $o->{default_depth}, $O->{type}, $O->{depth});

    print G qq(
Section "Screen"
    Identifier "screen1"
    Device      "$O->{type}"
    Monitor     "$o->{monitor}{type}"
);
    #- bpp 32 not handled by XF4
    $subscreen->(*G, "svga", min($o->{default_depth}, 24), $O->{depth});
    foreach (2..@{$O->{cards} || []}) {
	my $device = $O->{cards}[$_ - 1]{type};
	print G qq(
Section "Screen"
    Identifier "screen$_"
    Device      "$device"
    Monitor     "monitor$_"
);
	#- bpp 32 not handled by XF4
	$subscreen->(*G, "svga", min($o->{default_depth}, 24), $O->{depth});
    }

    print G qq(

Section "ServerLayout"
    Identifier "layout1"
    Screen     "screen1"
);
    foreach (2..@{$O->{cards} || []}) {
	my ($curr, $prev) = ($_, $_ - 1);
	print G qq(    Screen     "screen$curr" RightOf "screen$prev"\n);
    }
    print G '#' if defined $O->{Xinerama} && !$O->{Xinerama};
    print G qq(    Option     "Xinerama" "on"\n) if defined $O->{Xinerama};

    print G '
    InputDevice "Mouse1" "CorePointer"
';
    $o->{mouse}{auxmouse} and print G '
    InputDevice "Mouse2" "SendCoreEvents"
';
    foreach (1..@{$o->{wacom}}) {
	print G '
    InputDevice "Stylus$_" "AlwaysCore"
    InputDevice "Eraser$_" "AlwaysCore"
    InputDevice "Cursor$_" "AlwaysCore"
';
    }
    print G '
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
'; #-"

    close F;
    close G;
}

sub XF86check_link {
    my ($ext) = @_;

    my $f = "$prefix/etc/X11/XF86Config$ext";
    touch($f);

    my $l = "$prefix/usr/X11R6/lib/X11/XF86Config$ext";

    if (-e $l && (stat($f))[1] != (stat($l))[1]) { #- compare the inode, must be the sames
	-e $l and unlink($l) || die "can't remove bad $l";
	symlinkf "../../../../etc/X11/XF86Config$ext", $l;
    }
}

sub info {
    my ($o) = @_;
    my $info;

    $info .= _("Keyboard layout: %s\n", $o->{keyboard}{xkb_keymap});
    $info .= _("Mouse type: %s\n", $o->{mouse}{XMOUSETYPE});
    $info .= _("Mouse device: %s\n", $o->{mouse}{device}) if $::expert;
    $info .= _("Monitor: %s\n", $o->{monitor}{type});
    $info .= _("Monitor HorizSync: %s\n", $o->{monitor}{hsyncrange}) if $::expert;
    $info .= _("Monitor VertRefresh: %s\n", $o->{monitor}{vsyncrange}) if $::expert;
    $info .= _("Graphic card: %s\n", $o->{card}{type});
    $info .= _("Graphic memory: %s kB\n", $o->{card}{memory}) if $o->{card}{memory};
    if ($o->{default_depth} and my $depth = $o->{card}{depth}{$o->{default_depth}}) {
	$info .= _("Color depth: %s\n", translate($depths{$o->{default_depth}}));
	$info .= _("Resolution: %s\n", join "x", @{$depth->[0]}) if $depth && !is_empty_array_ref($depth->[0]);
    }
    $info .= _("XFree86 server: %s\n", $o->{card}{server}) if $o->{card}{server};
    $info .= _("XFree86 driver: %s\n", $o->{card}{driver}) if $o->{card}{driver};
    $info;
}

sub show_info {
    my ($o) = @_;
    $in->ask_warn('', info($o));
}

#- Program entry point.
sub main {
    my ($o, $allowFB);
    ($prefix, $o, $in, $allowFB, $install) = @_;
    $o ||= {};

    XF86check_link('');
    XF86check_link('-4');

    {
	my $w = $in->wait_message('', _("Preparing X-Window configuration"), 1);

	$o->{card} = cardConfiguration($o->{card}, $::noauto, $allowFB);

	$o->{monitor} = monitorConfiguration($o->{monitor}, $o->{card}{server} eq 'FBDev');
    }
    my $ok = resolutionsConfiguration($o, $::auto);

    $ok &&= testFinalConfig($o, $::auto, $o->{skiptest}, $::auto);

    my $quit;
    until ($ok || $quit) {
	ref($in) =~ /discard/ and die "automatic X configuration failed, ensure you give hsyncrange and vsyncrange with non-DDC aware videocards/monitors";

	$in->set_help('configureXmain') unless $::isStandalone;

	my $f;
	$in->ask_from_entries_refH_powered(
		{ 
		 title => 'XFdrake',
		 messages => _("What do you want to do?"),
		 ok => '',
		}, [
		    { format => sub { $_[0][0] }, val => \$f,
		      list => [
	   [ __("Change Monitor") => sub { $o->{monitor} = monitorConfiguration() } ],
           [ __("Change Graphic card") => sub { $o->{card} = cardConfiguration('', 'noauto', $allowFB) } ],
                    if_($::expert, 
           [ __("Change Server options") => sub { optionsConfiguration($o) } ]),
	   [ __("Change Resolution") => sub { resolutionsConfiguration($o) } ],
	   [ __("Show information") => sub { show_info($o) } ],
	   [ __("Test again") => sub { $ok = testFinalConfig($o, 1) } ],
	   [ __("Quit") => sub { $quit = 1 } ],
			       ],
		    }
		   ]);
	$f->[1]->();
	$in->kill;
    }
    if (!$ok) {
	$ok = $in->ask_yesorno('', _("Keep the changes?
Current configuration is:

%s", info($o)));
    }
    if ($ok) {
	unless ($::testing) {
	    my $f = "$prefix/etc/X11/XF86Config";
	    if (-e "$f.test") {
		rename $f, "$f.old" or die "unable to make a backup of XF86Config";
		rename "$f-4", "$f-4.old";
		rename "$f.test", $f;
		rename "$f.test-4", "$f-4";
		symlinkf "../..$o->{card}{prog}", "$prefix/etc/X11/X";
	    }
	}

	if ($::isStandalone && $0 =~ /Xdrakres/) {
	    my $found;
	    foreach (@window_managers) {
		if (`pidof "$_"` > 0) {
		    if ($in->ask_okcancel('', _("Please relog into %s to activate the changes", ucfirst $_), 1)) {
			fork and $in->exit;
			system("kwmcom logout") if /kwm/;
			system("dcop kdesktop default logout") if /kwin/;
			system("save-session --kill") if /gnome-session/;
			system("killall -QUIT icewm") if /icewm/;

			open STDIN, "</dev/zero";
			open STDOUT, ">/dev/null";
			open STDERR, ">&STDERR";
			c::setsid();
		        exec qw(perl -e), q{
                          my $wm = shift;
  		          for (my $nb = 30; $nb && `pidof "$wm"` > 0; $nb--) { sleep 1 }
  		          system("killall X ; killall -15 xdm gdm kdm prefdm") unless `pidof "$wm"` > 0;
  		        }, $_;
		    }
		    $found = 1; last;
		}
	    }
	    $in->ask_warn('', _("Please log out and then use Ctrl-Alt-BackSpace")) unless $found;
	} else {
	    $in->set_help('configureXxdm') unless $::isStandalone;
	    my $run = exists $o->{xdm} ? $o->{xdm} : $::auto || $in->ask_yesorno(_("X at startup"),
_("I can set up your computer to automatically start X upon booting.
Would you like X to start when you reboot?"), 1);
	    any::runlevel($prefix, $run ? 5 : 3) unless $::testing;
	}
	run_program::rooted($prefix, "chkconfig", "--del", "gpm") if $o->{mouse}{device} =~ /ttyS/ && !$::isStandalone;
    }
}

1;
an class="hl esc">\n" "Продовжити?" #: ../Rpmdrake/pkg.pm:631 #, fuzzy, c-format msgid "The following packages have to be removed for others to be upgraded:" msgstr "" "Наступні пакунки будуть вилучені для того, щоб поновити інші:\n" "%s" #: ../Rpmdrake/pkg.pm:634 #, fuzzy, c-format msgid "%s of packages will be retrieved." msgstr "Деякі пакунки неможливо вилучити" #: ../Rpmdrake/pkg.pm:636 #, fuzzy, c-format msgid "Is it ok to continue?" msgstr "" "%s\n" "\n" "Все гаразд? Продовжувати?" #: ../Rpmdrake/pkg.pm:657 #, c-format msgid "Preparing packages installation..." msgstr "Підготовлюються пакунки до встановлення..." #: ../Rpmdrake/pkg.pm:657 #, fuzzy, c-format msgid "Preparing package installation transaction..." msgstr "Підготовлюються пакунки до встановлення..." #: ../Rpmdrake/pkg.pm:660 #, c-format msgid "Installing package `%s' (%s/%s)..." msgstr "Встановлюється пакунок '%s' (%s/%s)..." #: ../Rpmdrake/pkg.pm:661 #, c-format msgid "Total: %s/%s" msgstr "" #: ../Rpmdrake/pkg.pm:715 #, c-format msgid "Change medium" msgstr "Змініть носія" #: ../Rpmdrake/pkg.pm:716 #, fuzzy, c-format msgid "Please insert the medium named \"%s\"" msgstr "Будь ласка, вставте диск з назвою \"%s\" у пристрій [%s]" #: ../Rpmdrake/pkg.pm:720 #, c-format msgid "Verifying package signatures..." msgstr "Перевіряються підписи пакунків..." #: ../Rpmdrake/pkg.pm:738 #, c-format msgid "%d installation transactions failed" msgstr "%d запит на встановлення завершився неуспішно" #: ../Rpmdrake/pkg.pm:746 ../Rpmdrake/pkg.pm:769 ../rpmdrake.pm:746 #: ../rpmdrake.pm:833 ../rpmdrake.pm:857 #, c-format msgid "Error" msgstr "Помилка" #: ../Rpmdrake/pkg.pm:747 #, c-format msgid "Unrecoverable error: no package found for installation, sorry." msgstr "Невиправна помилка: на жаль, пакунку для встановлення не знайдено." #: ../Rpmdrake/pkg.pm:750 #, c-format msgid "Inspecting configuration files..." msgstr "" #: ../Rpmdrake/pkg.pm:758 #, c-format msgid "" "The installation is finished; everything was installed correctly.\n" "\n" "Some configuration files were created as `.rpmnew' or `.rpmsave',\n" "you may now inspect some in order to take actions:" msgstr "" "Встановлення завершено; все встановлено правильно.\n" "\n" "Деякі конфігураційні файли були створені як '.rpmnew' або '.rmpsave',\n" "Ви можете ретельно переглянути їх для подальших дій:" #: ../Rpmdrake/pkg.pm:764 #, c-format msgid "Looking for \"README\" files..." msgstr "" #: ../Rpmdrake/pkg.pm:785 #, c-format msgid "RPM transaction %d/%d" msgstr "" #: ../Rpmdrake/pkg.pm:786 #, fuzzy, c-format msgid "Unselect all" msgstr "Вибрати все" #: ../Rpmdrake/pkg.pm:787 #, c-format msgid "Details" msgstr "" #: ../Rpmdrake/pkg.pm:832 ../Rpmdrake/pkg.pm:848 #, c-format msgid "Please wait, removing packages..." msgstr "Зачекайте, будь ласка, поки rpm вилучає ці пакунки..." #: ../Rpmdrake/pkg.pm:831 #, c-format msgid "Problem during removal" msgstr "Проблема під час вилучення" #: ../Rpmdrake/pkg.pm:832 #, c-format msgid "" "There was a problem during the removal of packages:\n" "\n" "%s" msgstr "" "Під час вилучення пакунків виникла проблема:\n" "\n" "%s" #: ../Rpmdrake/rpmnew.pm:77 #, c-format msgid "Inspecting %s" msgstr "Вивчення %s" #: ../Rpmdrake/rpmnew.pm:102 #, c-format msgid "Changes:" msgstr "зміни:" #: ../Rpmdrake/rpmnew.pm:111 #, c-format msgid "" "You can either remove the .%s file, use it as main file or do nothing. If " "unsure, keep the current file (\"%s\")." msgstr "" #: ../Rpmdrake/rpmnew.pm:112 ../Rpmdrake/rpmnew.pm:117 #, c-format msgid "Remove .%s" msgstr "Вилучити .%s" #: ../Rpmdrake/rpmnew.pm:121 #, c-format msgid "Use .%s as main file" msgstr "Використовувати .%s як головний файл" #: ../Rpmdrake/rpmnew.pm:125 #, c-format msgid "Do nothing" msgstr "Нічого не робити" #: ../Rpmdrake/rpmnew.pm:157 #, c-format msgid "Installation finished" msgstr "Встановлення завершено" #: ../Rpmdrake/rpmnew.pm:172 #, c-format msgid "Inspect..." msgstr "Вивчаю..." #: ../Rpmdrake/rpmnew.pm:190 ../rpmdrake:93 #, c-format msgid "Please wait, searching..." msgstr "Зачекайте, будь ласка, шукаю..." #: ../gurpmi.addmedia:88 #, c-format msgid "bad <url> (for local directory, the path must be absolute)" msgstr "" #: ../gurpmi.addmedia:93 #, c-format msgid "Unable to add medium, wrong or missing arguments" msgstr "Неможливо додати носія, неправильні або відсутні аргументи" #: ../gurpmi.addmedia:107 #, fuzzy, c-format msgid "" "You are about to add new packages media, %s.\n" "That means you will be able to add new software packages\n" "to your system from these new media." msgstr "" "Зараз Ви додасте навий носій з пакунками, `%s'.\n" "Це означає, що Ви змажете додавати нові програми\n" "в систему з цього нового носія." #: ../gurpmi.addmedia:110 #, c-format msgid "" "You are about to add a new packages medium, `%s'.\n" "That means you will be able to add new software packages\n" "to your system from that new medium." msgstr "" "Зараз Ви додасте навий носій з пакунками, `%s'.\n" "Це означає, що Ви змажете додавати нові програми\n" "в систему з цього нового носія." #: ../gurpmi.addmedia:134 #, fuzzy, c-format msgid "Successfully added media %s." msgstr "Успішно додано носій `%s'." #: ../gurpmi.addmedia:135 #, c-format msgid "Successfully added medium `%s'." msgstr "Успішно додано носій `%s'." #: ../rpmdrake:65 ../rpmdrake:186 #, c-format msgid "Search results" msgstr "Результати пошуку" #: ../rpmdrake:98 #, c-format msgid "Stop" msgstr "Зупинити" #: ../rpmdrake:132 #, fuzzy, c-format msgid "no xml-info available for medium \"%s\"" msgstr "Копіюється файл з джерела `%s'..." #: ../rpmdrake:148 ../rpmdrake:176 #, fuzzy, c-format msgid "Search aborted" msgstr "Результати пошуку" #: ../rpmdrake:189 #, c-format msgid "Selected" msgstr "Вибрано" #: ../rpmdrake:189 #, c-format msgid "Not selected" msgstr "Не вибрано" #: ../rpmdrake:198 #, c-format msgid "Search results (none)" msgstr "Результат пошуку (немає)" #: ../rpmdrake:219 #, c-format msgid "Selected: %s / Free disk space: %s" msgstr "Вибрано: %s / Вільно на диску: %s" #: ../rpmdrake:259 #, fuzzy, c-format msgid "Package" msgstr "Створення пакунків" #. -PO: "Architecture" but to be kept *small* !!! #: ../rpmdrake:273 #, fuzzy, c-format msgid "Arch." msgstr "Архівування" #. -PO: "Status" should be kept *small* !!! #: ../rpmdrake:301 #, c-format msgid "Status" msgstr "" #: ../rpmdrake:343 #, fuzzy, c-format msgid "Installed" msgstr "Встановити" #: ../rpmdrake:344 #, fuzzy, c-format msgid "Not installed" msgstr "Встановити" #: ../rpmdrake:347 #, c-format msgid "All packages, alphabetical" msgstr "Всі пакунки за абеткою" #: ../rpmdrake:355 #, c-format msgid "All packages, by group" msgstr "Всі пакунки, за групою" #: ../rpmdrake:356 #, c-format msgid "Leaves only, sorted by install date" msgstr "Тільки ті, що залишилися, відсортовані за датою встановлення" #: ../rpmdrake:357 #, c-format msgid "All packages, by update availability" msgstr "Всі пакунки, за придатністю до поновлення" #: ../rpmdrake:358 #, c-format msgid "All packages, by selection state" msgstr "Всі пакунки, за станом вибору" #: ../rpmdrake:359 #, c-format msgid "All packages, by size" msgstr "Всі пакунки, за розміром" #: ../rpmdrake:367 #, c-format msgid "All packages, by medium repository" msgstr "Всі пакунки, за джерелом" #. -PO: Backports media are newer but less-tested versions of some packages in main #. -PO: See http://wiki.mandriva.com/en/Policies/SoftwareMedia#.2Fmain.2Fbackports #: ../rpmdrake:375 #, fuzzy, c-format msgid "Backports" msgstr "Резервування" #: ../rpmdrake:358 #, fuzzy, c-format msgid "Meta packages" msgstr "Створення пакунків" #: ../rpmdrake:359 #, c-format msgid "Packages with GUI" msgstr "" #: ../rpmdrake:360 #, fuzzy, c-format msgid "All updates" msgstr "Звичайні поновлення" #: ../rpmdrake:361 #, c-format msgid "Security updates" msgstr "Поновлення безпеки" #: ../rpmdrake:362 #, c-format msgid "Bugfixes updates" msgstr "Поновлення виявлених дефектів" #: ../rpmdrake:363 #, fuzzy, c-format msgid "General updates" msgstr "Звичайні поновлення" #: ../rpmdrake:404 #, c-format msgid "View" msgstr "Відео" #: ../rpmdrake:432 #, fuzzy, c-format msgid "Filter" msgstr "/Файл" #: ../rpmdrake:445 #, c-format msgid "Tree Mode" msgstr "" #: ../rpmdrake:468 #, c-format msgid "in names" msgstr "в назвах" #: ../rpmdrake:421 #, c-format msgid "in descriptions" msgstr "в описах" #: ../rpmdrake:421 #, fuzzy, c-format msgid "in summaries" msgstr "в назвах" #: ../rpmdrake:421 #, c-format msgid "in file names" msgstr "у назвах файлів" #: ../rpmdrake:459 #, c-format msgid "/_Select dependencies without asking" msgstr "" #: ../rpmdrake:465 #, c-format msgid "/_Update media" msgstr "/Оновити джерела" #: ../rpmdrake:470 #, c-format msgid "/_Reset the selection" msgstr "/Скасувати вибір" #: ../rpmdrake:485 #, c-format msgid "/Reload the _packages list" msgstr "/Перевантажити перелік пакунків" #: ../rpmdrake:486 #, c-format msgid "/_Quit" msgstr "/Вийти" #: ../rpmdrake:486 #, c-format msgid "<control>Q" msgstr "<control>Q" #: ../rpmdrake:493 #, fuzzy, c-format msgid "/_Media Manager" msgstr "Менеджер джерел програм" #: ../rpmdrake:497 ../rpmdrake:536 #, c-format msgid "/_Show automatically selected packages" msgstr "/Показувати автоматично вибрані пакунки" #: ../rpmdrake:547 ../rpmdrake:550 ../rpmdrake:555 ../rpmdrake:587 #, c-format msgid "/_View" msgstr "/Відео" #: ../rpmdrake:610 #, c-format msgid "Find:" msgstr "Знайти:" #: ../rpmdrake:606 #, c-format msgid "Find" msgstr "Знайти" #: ../rpmdrake:579 #, c-format msgid "Apply" msgstr "Застосувати" #: ../rpmdrake:598 #, c-format msgid "Quick Introduction" msgstr "" #: ../rpmdrake:599 #, c-format msgid "You can browse the packages through the categories tree on the left." msgstr "" #: ../rpmdrake:600 #, c-format msgid "" "You can view information about a package by clicking on it on the right list." msgstr "" #: ../rpmdrake:601 #, c-format msgid "To install, update or remove a package, just click on its \"checkbox\"." msgstr "" #: ../rpmdrake.pm:104 #, c-format msgid "Software Update" msgstr "Поновлення програмам" #: ../rpmdrake.pm:104 #, c-format msgid "Mandriva Linux Update" msgstr "Поновлення Мандріва Лінакс" #: ../rpmdrake.pm:131 #, c-format msgid "Please enter your credentials for accessing proxy\n" msgstr "Будь ласка, введіть дані для доступу до проксі\n" #: ../rpmdrake.pm:132 #, c-format msgid "User name:" msgstr "Ім'я користувача:" #: ../rpmdrake.pm:179 #, c-format msgid "Software Packages Removal" msgstr "Вилучення пакунків з програмами" #: ../rpmdrake.pm:180 ../rpmdrake.pm:184 #, c-format msgid "Software Packages Update" msgstr "Поновлення пакунків з програмами" #: ../rpmdrake.pm:181 #, c-format msgid "Software Packages Installation" msgstr "Встановлення пакунків з програмами" #: ../rpmdrake.pm:222 #, c-format msgid "No" msgstr "Ні" #: ../rpmdrake.pm:226 #, c-format msgid "Yes" msgstr "Так" #: ../rpmdrake.pm:277 #, c-format msgid "Info..." msgstr "Інформація..." #: ../rpmdrake.pm:403 #, c-format msgid "Austria" msgstr "Австрія" #: ../rpmdrake.pm:404 #, c-format msgid "Australia" msgstr "Австралія" #: ../rpmdrake.pm:405 #, c-format msgid "Belgium" msgstr "Бельгія" #: ../rpmdrake.pm:406 #, c-format msgid "Brazil" msgstr "Бразилія" #: ../rpmdrake.pm:407 #, c-format msgid "Canada" msgstr "Канада" #: ../rpmdrake.pm:408 #, c-format msgid "Switzerland" msgstr "Швейцарія" #: ../rpmdrake.pm:409 #, c-format msgid "Costa Rica" msgstr "Коста-Ріка" #: ../rpmdrake.pm:410 #, c-format msgid "Czech Republic" msgstr "Чехія" #: ../rpmdrake.pm:411 #, c-format msgid "Germany" msgstr "Німеччина" #: ../rpmdrake.pm:412 #, c-format msgid "Danmark" msgstr "Данія" #: ../rpmdrake.pm:413 ../rpmdrake.pm:417 #, c-format msgid "Greece" msgstr "Греція" #: ../rpmdrake.pm:414 #, c-format msgid "Spain" msgstr "Іспанія" #: ../rpmdrake.pm:415 #, c-format msgid "Finland" msgstr "Фінляндія" #: ../rpmdrake.pm:416 #, c-format msgid "France" msgstr "Франція" #: ../rpmdrake.pm:418 #, c-format msgid "Hungary" msgstr "Угорщина" #: ../rpmdrake.pm:419 #, c-format msgid "Israel" msgstr "Ізраїль" #: ../rpmdrake.pm:420 #, c-format msgid "Italy" msgstr "Італія" #: ../rpmdrake.pm:421 #, c-format msgid "Japan" msgstr "Японія" #: ../rpmdrake.pm:422 #, c-format msgid "Korea" msgstr "Корея" #: ../rpmdrake.pm:423 #, c-format msgid "Netherlands" msgstr "Голландія" #: ../rpmdrake.pm:424 #, c-format msgid "Norway" msgstr "Норвегія" #: ../rpmdrake.pm:425 #, c-format msgid "Poland" msgstr "Польща" #: ../rpmdrake.pm:426 #, c-format msgid "Portugal" msgstr "Португалія" #: ../rpmdrake.pm:427 #, c-format msgid "Russia" msgstr "Росія" #: ../rpmdrake.pm:428 #, c-format msgid "Sweden" msgstr "Швеція" #: ../rpmdrake.pm:429 #, c-format msgid "Singapore" msgstr "Сінгапур" #: ../rpmdrake.pm:430 #, c-format msgid "Slovakia" msgstr "Словаччина" #: ../rpmdrake.pm:431 #, c-format msgid "Taiwan" msgstr "Тайвань" #: ../rpmdrake.pm:432 #, c-format msgid "United Kingdom" msgstr "Об'єднане Королівство" #: ../rpmdrake.pm:433 #, c-format msgid "China" msgstr "Китай" #: ../rpmdrake.pm:434 ../rpmdrake.pm:435 ../rpmdrake.pm:436 ../rpmdrake.pm:437 #, c-format msgid "United States" msgstr "Сполучені Штати" #: ../rpmdrake.pm:517 #, c-format msgid "Please wait, downloading mirror addresses." msgstr "Зачекайте, будь ласка, йде завантаження адрес дзеркал." #: ../rpmdrake.pm:518 #, c-format msgid "Please wait, downloading mirror addresses from the Mandriva website." msgstr "" "Зачекайте, будь ласка, йде завантаження адрес дзеркал з веб-сайту Mandriva." #: ../rpmdrake.pm:560 #, c-format msgid "retrieval of [%s] failed" msgstr "" #: ../rpmdrake.pm:582 #, c-format msgid "" "I need to access internet to get the mirror list.\n" "Please check that your network is currently running.\n" "\n" "Is it ok to continue?" msgstr "" "Мені потрібно мати лоступ в Інтернет, щоб отримати перелік дзеркал.\n" "Будь ласка, перевірте, чи з'єднані Ви з Інтернетом.\n" "\n" "Продовжити?" #: ../rpmdrake.pm:571 ../rpmdrake.pm:602 #, fuzzy, c-format msgid "Mirror choice" msgstr "%s вибирає" #: ../rpmdrake.pm:575 #, c-format msgid "Error during download" msgstr "Помилка під час звантаження" #: ../rpmdrake.pm:577 #, c-format msgid "" "There was an error downloading the mirror list:\n" "\n" "%s\n" "The network, or the website, may be unavailable.\n" "Please try again later." msgstr "" "Сталася помилка під час завантаження списку дзеркал:\n" "\n" "%s\n" "Можливо, мережа або веб-сайт недоступні.\n" "Будь ласка, спробуйте ще раз пізніше." #: ../rpmdrake.pm:582 #, c-format msgid "" "There was an error downloading the mirror list:\n" "\n" "%s\n" "The network, or the Mandriva website, may be unavailable.\n" "Please try again later." msgstr "" "Сталася помилка під час завантаження списку дзеркал:\n" "\n" "%s\n" "Можливо, мережа або веб-сайт Mandriva недоступні.\n" "Будь ласка, спробуйте ще раз пізніше." #: ../rpmdrake.pm:592 #, c-format msgid "No mirror" msgstr "Дзеркало відсутнє" #: ../rpmdrake.pm:594 #, c-format msgid "I can't find any suitable mirror." msgstr "Не можу знайти придатного джерела." #: ../rpmdrake.pm:595 #, c-format msgid "" "I can't find any suitable mirror.\n" "\n" "There can be many reasons for this problem; the most frequent is\n" "the case when the architecture of your processor is not supported\n" "by Mandriva Linux Official Updates." msgstr "" "Я не можу знайти придатного дзеркала.\n" "\n" "Може були багато причин цієї проблеми; найчастіше це\n" "стається через те, що архітектура Вашого процесора не підтримується\n" "Mandriva Linux Official Updates." #: ../rpmdrake.pm:614 #, c-format msgid "Please choose the desired mirror." msgstr "Виберіть, будь ласка, бажане дзеркало." #: ../rpmdrake.pm:655 #, c-format msgid "Copying file for medium `%s'..." msgstr "Копіюється файл з джерела `%s'..." #: ../rpmdrake.pm:658 #, c-format msgid "Examining file of medium `%s'..." msgstr "Перевірка файла джерела `%s'..." #: ../rpmdrake.pm:661 #, c-format msgid "Examining remote file of medium `%s'..." msgstr "Перевірка файла джерела `%s'..." #: ../rpmdrake.pm:665 #, c-format msgid " done." msgstr " виконано." #: ../rpmdrake.pm:669 #, c-format msgid " failed!" msgstr " неуспішно!" #. -PO: We're downloading the said file from the said medium #: ../rpmdrake.pm:673 #, c-format msgid "%s from medium %s" msgstr "%s з джерела %s" #: ../rpmdrake.pm:677 #, c-format msgid "Starting download of `%s'..." msgstr "Починається завантаження `%s'..." #: ../rpmdrake.pm:681 #, c-format msgid "Download of `%s', time to go:%s, speed:%s" msgstr "Завантажено `%s', залишилось часу:%s, швидкість:%s" #: ../rpmdrake.pm:684 #, c-format msgid "Download of `%s', speed:%s" msgstr "Завантажено `%s', швидкість:%s" #: ../rpmdrake.pm:695 #, c-format msgid "Please wait, updating media..." msgstr "Зачекайте, будь ласка, поновлюються джерела..." #: ../rpmdrake.pm:722 #, c-format msgid "Error retrieving packages" msgstr "Помилка при пошуку пакунків" #: ../rpmdrake.pm:723 #, c-format msgid "" "It's impossible to retrieve the list of new packages from the media\n" "`%s'. Either this update media is misconfigured, and in this case\n" "you should use the Software Media Manager to remove it and re-add it in " "order\n" "to reconfigure it, either it is currently unreachable and you should retry\n" "later." msgstr "" "Неможливо отримати список нових пакунків з носія `%s'.\n" " Або цей носій неправильно сконфігуровано і в цьому випадку Вам\n" "потрібно перестворити його в Менеджері носіїв програм,\n" "або ж він зараз недоступний і Вам потрібно спробувати ще раз\n" "пізніше." #: ../rpmdrake.pm:754 #, c-format msgid "Update media" msgstr "Поновити джерела" #: ../rpmdrake.pm:759 #, c-format msgid "" "No active medium found. You must enable some media to be able to update them." msgstr "" "Не знайдено активного носія. Потрібно їх увімнути, щоб мати можливість " "поновлювати." #: ../rpmdrake.pm:766 #, c-format msgid "Select the media you wish to update:" msgstr "Виберіть джерело, яке Ви хочете поновити:" #: ../rpmdrake.pm:813 #, c-format msgid "" "Unable to update medium; it will be automatically disabled.\n" "\n" "Errors:\n" "%s" msgstr "" "Неможливо поновити джерело; його буде автоматично вимкнено.\n" "\n" "Помилки:\n" "%s" #: ../rpmdrake.pm:834 ../rpmdrake.pm:845 #, c-format msgid "" "Unable to add medium, errors reported:\n" "\n" "%s" msgstr "" "Неможливо додати носія, отримано звіт про помилку:\n" "\n" "%s" #: ../rpmdrake.pm:857 #, c-format msgid "Unable to create medium." msgstr "Неможливо створити джерело." #: ../rpmdrake.pm:862 #, c-format msgid "Failure when adding medium" msgstr "Помилка при додаванні носія" #: ../rpmdrake.pm:863 #, c-format msgid "" "There was a problem adding medium:\n" "\n" "%s" msgstr "" "Під час додавання носія сталася помилка:\n" "\n" "%s" #: ../rpmdrake.pm:876 #, c-format msgid "" "Your medium `%s', used for updates, does not match the version of %s you're " "running (%s).\n" "It will be disabled." msgstr "" "Носій `%s', що використовується для поновлень, не відповідає версії %s, яка " "використовується (%s).\n" "Його буде вимкнено." #: ../rpmdrake.pm:879 #, c-format msgid "" "Your medium `%s', used for updates, does not match the version of Mandriva " "Linux you're running (%s).\n" "It will be disabled." msgstr "" "Носій `%s', що використовується для поновлень, не відповідає версії Мандріва " "Лінакс (%s).\n" "Його буде вимкнено." #: ../rpmdrake.pm:908 #, c-format msgid "Help launched in background" msgstr "Довідку запущено у фоновому режимі" #: ../rpmdrake.pm:909 #, c-format msgid "" "The help window has been started, it should appear shortly on your desktop." msgstr "Вікно довідки вже стартувало, незабаром воно з'явиться на стільниці." #: ../data/rpmdrake-browse-only.desktop.in.h:1 #, fuzzy msgid "A graphical front end for browsing installed & available packages" msgstr "Графічний інтерфейс для встановлення пакунків" #: ../data/rpmdrake-browse-only.desktop.in.h:2 msgid "Browse Available Software" msgstr "Продивитись доступні пакунки" #: ../data/rpmdrake.desktop.in.h:1 #, fuzzy msgid "A graphical front end for installing, removing and updating packages" msgstr "Графічний інтерфейс для встановлення пакунків" #: ../data/rpmdrake.desktop.in.h:2 #, fuzzy msgid "Install & Remove Software" msgstr "Встановити пакунки" #: ../data/rpmdrake-sources.desktop.in.h:1 msgid "Software Media Manager" msgstr "Менеджер джерел програм" #: ../mime/gurpmi.addmedia.desktop.in.h:1 #, fuzzy msgid "Add urpmi media" msgstr "/Оновити джерела" #: ../mime/x-urpmi-media.desktop.in.h:1 msgid "Urpmi medium info" msgstr "" #~ msgid "%s choices" #~ msgstr "%s вибирає" #~ msgid "Mandriva Linux choices" #~ msgstr "Вибір Мандріва Лінакса" #~ msgid "None" #~ msgstr "Нічого" #~ msgid "" #~ "Installation failed, some files are missing:\n" #~ "%s\n" #~ "\n" #~ "You may want to update your media database." #~ msgstr "" #~ "Встановлення перервано, відсутні деякі файли:\n" #~ "%s\n" #~ "\n" #~ "Можливо, Вам потрібно поновити базу даних джерел." #~ msgid "Relative path to synthesis/hdlist:" #~ msgstr "Відносний шлях до synthesis/hdlist:" #~ msgid "If left blank, synthesis/hdlist will be automatically probed" #~ msgstr "Якщо залишити порожнім, synthesis/hdlist буде автоматично вивчено" #~ msgid "Search" #~ msgstr "Пошук" #~ msgid "Clear" #~ msgstr "Очистити" #~ msgid "Download directory does not exist" #~ msgstr "Теки, в яку має виконуватись звантаження, не існує" #~ msgid "Out of memory\n" #~ msgstr "Не вистачає місця\n" #~ msgid "Could not open output file in append mode" #~ msgstr "Не можу відкрити файл виведення у режимі дозапису" #~ msgid "Unsupported protocol\n" #~ msgstr "Даний протокол не підтримується\n" #~ msgid "Failed init\n" #~ msgstr "Невдала ініціалізація\n" #~ msgid "Bad URL format\n" #~ msgstr "Невірний формат URL\n" #~ msgid "Bad user format in URL\n" #~ msgstr "Невірний користувацький формат в URL\n" #~ msgid "Couldn't resolve proxy\n" #~ msgstr "Не можу визначити проксі\n" #~ msgid "Couldn't resolve host\n" #~ msgstr "Не можу визначити сервер\n" #~ msgid "Couldn't connect\n" #~ msgstr "Не можу з'єднатися\n" #~ msgid "FTP unexpected server reply\n" #~ msgstr "FTP: неочікувана відповідь сервера\n" #~ msgid "FTP access denied\n" #~ msgstr "FTP: доступ заборонено\n" #~ msgid "FTP user password incorrect\n" #~ msgstr "FTP: невірний пароль\n" #~ msgid "FTP unexpected PASS reply\n" #~ msgstr "FTP: неочікувана відповідь PASS\n" #~ msgid "FTP unexpected USER reply\n" #~ msgstr "FTP: неочікувана відповідь USER\n" #~ msgid "FTP unexpected PASV reply\n" #~ msgstr "FTP: неочікувана відповідь PASV\n" #~ msgid "FTP unexpected 227 format\n" #~ msgstr "FTP: неочікуваний формат 227\n" #~ msgid "FTP can't get host\n" #~ msgstr "FTP: не можу знайти машини\n" #~ msgid "FTP can't reconnect\n" #~ msgstr "FTP: не можу з'єднатися\n" #~ msgid "FTP couldn't set binary\n" #~ msgstr "FTP: не можу встановити двійковий формат\n" #~ msgid "Partial file\n" #~ msgstr "Частковий файл\n" #~ msgid "FTP couldn't RETR file\n" #~ msgstr "FTP: не можу зробити RETR на файл\n" #~ msgid "FTP write error\n" #~ msgstr "FTP: помилка запису\n" #~ msgid "FTP quote error\n" #~ msgstr "Помилка запиту FTP\n" #~ msgid "HTTP not found\n" #~ msgstr "HTTP: не знайдено\n" #~ msgid "Write error\n" #~ msgstr "Помилка запису\n" #~ msgid "User name illegally specified\n" #~ msgstr "Ім'я користувача вказано неправильно\n" #~ msgid "FTP couldn't STOR file\n" #~ msgstr "FTP не може STOR файл\n" #~ msgid "Read error\n" #~ msgstr "Помилка під час читання\n" #~ msgid "Time out\n" #~ msgstr "Тайм-аут\n" #~ msgid "FTP couldn't set ASCII\n" #~ msgstr "FTP не можу встановити формат ASCII\n" #~ msgid "FTP PORT failed\n" #~ msgstr "FTP: невдала спроба PORT\n" #~ msgid "FTP couldn't use REST\n" #~ msgstr "FTP не можу використовувати REST\n" #~ msgid "FTP couldn't get size\n" #~ msgstr "FTP не може визначити розмір\n" #~ msgid "HTTP range error\n" #~ msgstr "HTTP помилка діапазону\n" #~ msgid "HTTP POST error\n" #~ msgstr "HTTP: помилка POST\n" #~ msgid "SSL connect error\n" #~ msgstr "Помилка зі зв'язком Ssl\n" #~ msgid "FTP bad download resume\n" #~ msgstr "Невірне відновлення завантаження\n" #~ msgid "File couldn't read file\n" #~ msgstr "File не може прочитати файл\n" #~ msgid "LDAP cannot bind\n" #~ msgstr "Не можу прив'язати LDAP\n" #~ msgid "LDAP search failed\n" #~ msgstr "Пошук LDAP провалився\n" #~ msgid "Library not found\n" #~ msgstr "Бібліотеку не знайдено\n" #~ msgid "Function not found\n" #~ msgstr "Функцію не знайдено\n" #~ msgid "Aborted by callback\n" #~ msgstr "Припинено callback'ом\n" #~ msgid "Bad function argument\n" #~ msgstr "Невірний аргумент функції\n" #~ msgid "Bad calling order\n" #~ msgstr "Невірна послідовність викликів\n" #~ msgid "HTTP Interface operation failed\n" #~ msgstr "Операція HTTP Interface невдала\n" #~ msgid "my_getpass() returns fail\n" #~ msgstr "my_getpass() повернула помилку\n" #~ msgid "catch endless re-direct loops\n" #~ msgstr "перехоплювати нескінченний цикл переадресацій\n" #~ msgid "User specified an unknown option\n" #~ msgstr "Користувач вказав невідомий параметр\n" #~ msgid "Malformed telnet option\n" #~ msgstr "Невірний параметр telnet\n" #~ msgid "removed after 7.7.3\n" #~ msgstr "видалено після 7.7.3\n" #~ msgid "peer's certificate wasn't ok\n" #~ msgstr "сертифікат іншої сторони був невірний\n" #~ msgid "when this is a specific error\n" #~ msgstr "якщо це характерна помилка\n" #~ msgid "SSL crypto engine not found\n" #~ msgstr "Двигун криптографії SSL не знайдено\n" #~ msgid "can not set SSL crypto engine as default\n" #~ msgstr "не можу встановити двигун криптографії SSL як типовий\n" #~ msgid "failed sending network data\n" #~ msgstr "не вдалось відіслати мережні дані\n" #~ msgid "failure in receiving network data\n" #~ msgstr "невдала спроба прийняти мережні дані\n" #~ msgid "share is in use\n" #~ msgstr "спільний ресурс в поточний момент використовується\n" #~ msgid "problem with the local certificate\n" #~ msgstr "проблема із місцевим сертифікатом\n" #~ msgid "couldn't use specified cipher\n" #~ msgstr "не можу скористатися шифрувальником\n" #~ msgid "problem with the CA cert (path?)\n" #~ msgstr "проблема із CA cert (шлях?)\n" #~ msgid "Unrecognized transfer encoding\n" #~ msgstr "Нерозпізнане кодування передачі\n" #~ msgid "Unknown error code %d\n" #~ msgstr "Невідома помилка, код %d\n" #~ msgid "" #~ "This step enables you to add sources from a Mandriva Linux web or FTP " #~ "mirror.\n" #~ "\n" #~ "There are two kinds of official mirrors. You can choose to add sources " #~ "that\n" #~ "contain the complete set of packages of your distribution (usually a " #~ "superset\n" #~ "of what comes on the standard installation CDs), or sources that provide " #~ "the\n" #~ "official updates for your distribution. (You can add both, but you'll " #~ "have\n" #~ "to do this in two steps.)" #~ msgstr "" #~ "Зараз Ви можете додати джерела з веб-вузла Mandriva Linux або дзеркала " #~ "FTP.\n" #~ "\n" #~ "Існує два види офіційних джерел. Ви можете вибрати додавання джерел, які\n" #~ "містять повний набір пакунків дистрибутиву (зазвичай це ті, що входять " #~ "в \n" #~ "стандартні диски встановлення), або джерела, які надають офіційні " #~ "поновлення\n" #~ "дистрибутиву. (Ви можете додати обидвох, але за два кроки.)" #~ msgid "Distribution sources" #~ msgstr "Джерела дистрибутиву" #~ msgid "Official updates" #~ msgstr "Офіційні поновлення" #~ msgid " --pkg-nosel=pkg1,.. show only these packages" #~ msgstr " --pkg-nosel=pkg1,.. показувати тільки ці пакунки" #~ msgid " --pkg-sel=pkg1,.. preselect these packages" #~ msgstr " --pkg-sel=pkg1,.. попередньо вибрати ці пакунки" #~ msgid "Selected size: %d MB" #~ msgstr "Розмір вибраного: %d Мб" #, fuzzy #~ msgid "/_Automatically resolve queries" #~ msgstr "/Показувати автоматично вибрані пакунки" #~ msgid "Path:" #~ msgstr "Шлях:" #~ msgid "Add custom..." #~ msgstr "Додати вказаний..." #~ msgid "Update..." #~ msgstr "Поновити..." #~ msgid "" #~ "The following packages have bad signatures:\n" #~ "\n" #~ "%s\n" #~ "\n" #~ "Do you want to continue installation?" #~ msgstr "" #~ "Наступні пакунки мають неправильні підписи:\n" #~ "\n" #~ "%s\n" #~ "\n" #~ "Ви хочете продовжити встановлення?" #~ msgid "installing %s from %s" #~ msgstr "встановлюється %s з %s" #~ msgid "installing %s" #~ msgstr "встановлюється %s" #~ msgid "removing %s" #~ msgstr "вилучається %s" #, fuzzy #~ msgid "Installation failed:" #~ msgstr "Встановлення неуспішне" #~ msgid "Try installation without checking dependencies? (y/N) " #~ msgstr "Спробувати встановлення без перевірки залежностей? (y/N) (т/Н) " #, fuzzy #~ msgid "Try harder to install (--force)? (y/N) " #~ msgstr "Спробувати примусове встановлення (--force)? (y/N) (т/Н) " #~ msgid "Preparing..." #~ msgstr "Підготовка..." #~ msgid "Message Passing" #~ msgstr "Проходження повідомлення" #~ msgid "Queueing Services" #~ msgstr "Послуги низок" #~ msgid "Deploiement" #~ msgstr "Розгортання" #~ msgid "Deployment" #~ msgstr "Розгортання" #~ msgid "Add a key..." #~ msgstr "Додати ключ..." #~ msgid "Remove key" #~ msgstr "Вилучити ключ" #, fuzzy #~ msgid " --version output version information and exit" #~ msgstr " --root виконати як root" #~ msgid "unable to access rpm file [%s]" #~ msgstr "неможливо отримати доступ до файла [%s]" #, fuzzy #~ msgid "" #~ "To satisfy dependencies, the following package is going to be installed:\n" #~ "%2$s\n" #~ msgid_plural "" #~ "To satisfy dependencies, the following %d packages are going to be " #~ "installed:\n" #~ "%s\n" #~ msgstr[0] "" #~ "Наступні %d пакунків буде встановлено для того, щоб задовольнити " #~ "залежності:\n" #~ " %s\n" #~ msgid "Please wait, reading packages database..." #~ msgstr "Зачекайте, будь ласка, зчитую базу даних пакунків..." #~ msgid "XFree86" #~ msgstr "XFree86" #~ msgid "No package found for installation." #~ msgstr "Не знайдено пакунку для встановлення." #~ msgid "Maximum information" #~ msgstr "Найбільше інформації"