summaryrefslogtreecommitdiffstats
path: root/perl-install/install/share/po/sl.po
blob: 7adf7320d8545f5f5dc91df56db0988f14c1e653 (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
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436package install::any; # $Id$

use strict;

our @ISA = qw(Exporter);
our @EXPORT_OK = qw(addToBeDone);

#-######################################################################################
#- misc imports
#-######################################################################################
use common;
use run_program;
use fs::type;
use fs::format;
use fs::any;
use partition_table;
use devices;
use modules;
use detect_devices;
use install::media 'getFile_';
use lang;
use any;
use log;

our @advertising_images;

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

	my $version = cat__(getFile_($o->{stage2_phys_medium}, "install/stage2/VERSION"));
	sprintf "DrakX v%s", chomp_($version);
}

#-######################################################################################
#- Functions
#-######################################################################################
sub dont_run_directly_stage2() {
    readlink("/usr/bin/runinstall2") eq "runinstall2.sh";
}

sub is_network_install {
    my ($o) = @_;
    member($o->{method}, qw(ftp http nfs));
}


sub start_i810fb() {
    my ($vga) = cat_('/proc/cmdline') =~ /vga=(\S+)/;
    return if !$vga || listlength(cat_('/proc/fb'));

    my %vga_to_xres = (0x311 => '640', 0x314 => '800', 0x317 => '1024');
    my $xres = $vga_to_xres{$vga} || '800';

    log::l("trying to load i810fb module with xres <$xres> (vga was <$vga>)");
    eval { modules::load('intel_agp') };
    eval {
	my $opt = "xres=$xres hsync1=32 hsync2=48 vsync1=50 vsync2=70 vram=2 bpp=16 accel=1 mtrr=1"; #- this sucking i810fb does not accept floating point numbers in hsync!
	modules::load_with_options([ 'i810fb' ], { i810fb => $opt }); 
    };
}

sub spawnShell() {
    return if $::local_install || $::testing || dont_run_directly_stage2();

    my $shellpid_file = '/var/run/drakx_shell.pid';
    return if -e $shellpid_file && -d '/proc/' . chomp_(cat_($shellpid_file));

    if (my $shellpid = fork()) {
        output($shellpid_file, $shellpid);
        return;
    }

    $ENV{DISPLAY} ||= ":0"; #- why not :pp

    local *F;
    sysopen F, 
# Jure Repinc <jlp@holodeck1.com>, 2005, 2007, 2008, 2009.
# Matjaž Kaše <matjaz.kase@telemach.net>, 2006.
msgid ""
msgstr ""
"Project-Id-Version: sl\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-02-13 16:29+0100\n"
"PO-Revision-Date: 2009-02-15 08:14+0100\n"
"Last-Translator: Jure Repinc <jlp@holodeck1.com>\n"
"Language-Team: Slovenian <lugos-slo@lugos.si>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Lokalize 0.3\n"
"Plural-Forms:  nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3);\n"

#: any.pm:109
#, c-format
msgid "Do you have further supplementary media?"
msgstr "Ali imate še kak dodaten vir za nameščanje?"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: any.pm:112
#, c-format
msgid ""
"The following media have been found and will be used during install: %s.\n"
"\n"
"\n"
"Do you have a supplementary installation medium to configure?"
msgstr ""
"Zaznani so bili sledeči viri, ki bodo uporabljeni med namestitvijo: %s.<
    log::l("cannot open any shell");
cant_spawn:
    c::_exit(1);
}

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

    #- make sure of this place to be available for installation, this could help a lot.
    #- currently doing a very small install use 36Mb of postinstall-rpm, but installing
    #- these packages may eat up to 90Mb (of course not all the server may be installed!).
    #- 65mb may be a good choice to avoid almost all problem of insuficient space left...
    my $minAvailableSize = 65 * sqr(1024);

    my $n = !$::testing && getAvailableSpace_mounted($::prefix) || 
            getAvailableSpace_raw($o->{fstab}) * 512 / 1.07;
    $n - max(0.1 * $n, $minAvailableSize);
}

sub getAvailableSpace_mounted {
    my ($prefix) = @_;
    my $dir = -d "$prefix/usr" ? "$prefix/usr" : $prefix;
    my (undef, $free) = MDK::Common::System::df($dir) or return;
    log::l("getAvailableSpace_mounted $free KB");
    $free * 1024 || 1;
}
sub getAvailableSpace_raw {
    my ($fstab) = @_;

    do { $_->{mntpoint} eq '/usr' and return $_->{size} } foreach @$fstab;
    do { $_->{mntpoint} eq '/'    and return $_->{size} } foreach @$fstab;

    if ($::testing) {
	my $nb = 450;
	log::l("taking ${nb}MB for testing");
	return MB($nb);
    }
    die "missing root partition";
}

sub preConfigureTimezone {
    my ($o) = @_;
    require timezone;
   
    #- can not be done in install cuz' timeconfig %post creates funny things
    add2hash($o->{timezone}, timezone::read()) if $o->{isUpgrade};

    $o->{timezone}{timezone} ||= timezone::bestTimezone($o->{locale}{country});

    my $utc = every { !isFat_or_NTFS($_) } @{$o->{fstab}};
    my $ntp = timezone::ntp_server();
    add2hash_($o->{timezone}, { UTC => $utc, ntp => $ntp });
}

sub ask_suppl_media_method {
    my ($o) = @_;
    our $suppl_already_asked;

    my $msg = $suppl_already_asked
      ? N("Do you have further supplementary media?")
      : formatAlaTeX(
#-PO: keep the double empty lines between sections, this is formatted a la LaTeX
	    N("The following media have been found and will be used during install: %s.


Do you have a supplementary installation medium to configure?",
	    join(", ", map { $_->{name} } install::media::allMediums($o->{packages}))));

    my %l = my @l = (
	''      => N("None"),
	'cdrom' => N("CD-ROM"),
	'http'  => N("Network (HTTP)"),
	'ftp'   => N("Network (FTP)"),
	'nfs'   => N("Network (NFS)"),
    );

    $o->ask_from(
	'', $msg,
	[ {
	    val => \my $suppl,
	    list => [ map { $_->[0] } group_by2(@l) ],
	    type => 'list',
	    format => sub { $l{$_[0]} },
	} ],
    );

    $suppl_already_asked = 1;
    $suppl;
}

#- if the supplementary media is networked, but not the main one, network
#- support must be installed and network started.
sub prep_net_suppl_media {
    my ($o) = @_;

    require network::tools;
    my (undef, $is_up, undef) = network::tools::get_internet_connection($o->{net});

    return if our $net_suppl_media_configured && $is_up;
    $net_suppl_media_configured = 1;

    #- install basesystem now
    $o->do_pkgs->ensure_is_installed('basesystem', undef, 1);

    require network::netconnect;
    network::netconnect::real_main($o->{net}, $o, $o->{modules_conf});
    require install::interactive;
    install::interactive::upNetwork($o);
    sleep(3);
}

sub ask_url {
    my ($in, $o_url) = @_;

    my $url = $o_url;
    $in->ask_from_({ messages => N("URL of the mirror?"), focus_first => 1 }, [ 
	{ val => \$url,
	  validate => sub { 
	      if ($url =~ m!^(http|ftp)://!) {
		  1;
	      } else {
		  $in->ask_warn('', N("URL must start with ftp:// or http://"));
		  0;
	      }
	  } } ]) && $url;
}
sub ask_mirror {
    my ($o, $type, $o_url) = @_;
    
    require mirror;

    my $mirrors = eval {
	my $_w = $o->wait_message('', N("Contacting Mandriva Linux web site to get the list of available mirrors..."));
	mirror::list($o->{product_id}, $type);
    };
    my $err = $@;
    if (!$mirrors) {
	$o->ask_warn('', N("Failed contacting Mandriva Linux web site to get the list of available mirrors") . "\n$err");
	return ask_url($o, $o_url);
    }

    my $give_url = { country => '-', host => 'URL' };

    my $mirror = $o_url ? (find { $_->{url} eq $o_url } @$mirrors) || $give_url 
        #- use current time zone to select best mirror
      : mirror::nearest($o->{timezone}{timezone}, $mirrors);

    $o->ask_from_({ messages => N("Choose a mirror from which to get the packages"),
		    cancel => N("Cancel"),
		}, [ { separator => '|',
		       format => \&mirror::mirror2text,
		       list => [ @$mirrors, $give_url ],
		       val => \$mirror,
		   },
		 ]) or return;

    my $url;
    if ($mirror eq $give_url) {
	$url = ask_url($o, $o_url) or goto &ask_mirror;
    } else {
	$url = $mirror->{url};
    }
    $url =~ s!/main/?$!!;
    log::l("chosen mirror: $url");
    $url;
}

sub ask_suppl_media_url {
    my ($o, $method, $o_url) = @_;

    if ($method eq 'ftp' || $method eq 'http') {
	install::any::ask_mirror($o, 'distrib', $o_url);
    } elsif ($method eq 'cdrom') {
	'cdrom://';
    } elsif ($method eq 'nfs') {
	my ($host, $dir) = $o_url ? $o_url =~ m!nfs://(.*?)(/.*)! : ();
	$o->ask_from_(
	    { title => N("NFS setup"), 
	      messages => N("Please enter the hostname and directory of your NFS media"),
	      focus_first => 1,
	      callbacks => {
		  complete => sub {
		      $host or $o->ask_warn('', N("Hostname missing")), return 1, 0;
		      $dir eq '' || begins_with($dir, '/') or $o->ask_warn('', N("Directory must begin with \"/\"")), return 1, 1;
		      0;
		  },
	      } },
	    [ { label => N("Hostname of the NFS mount ?"), val => \$host }, 
	      { label => N("Directory"), val => \$dir } ],
	) or return;
	$dir =~ s!/+$!!; 
	$dir ||= '/';
	"nfs://$host$dir";
    } else { internal_error("bad method $method") }
}
sub selectSupplMedia {
    my ($o) = @_;
    my $url;

  ask_method:
    my $method = ask_suppl_media_method($o) or return;

    #- configure network if needed
    if (!scalar keys %{$o->{net}{ifcfg}} && $method !~ /^(?:cdrom|disk)/ && !$::local_install) {
	prep_net_suppl_media($o);
    }

  ask_url:
    $url = ask_suppl_media_url($o, $method, $url) or goto ask_method;

    my $phys_medium = install::media::url2mounted_phys_medium($o, $url, undef, N("Supplementary")) or $o->ask_warn('', formatError($@)), goto ask_url;
    $phys_medium->{is_suppl} = 1;
    $phys_medium->{unknown_CD} = 1;

    my $arch = $o->{product_id}{arch};
    my $field = $phys_medium->{device} ? 'rel_path' : 'url';
    my $val = $phys_medium->{$field};
    my $val0 = $val =~ m!^(.*?)(/media)?/?$! && "$1/media";
    my $val2 = $val =~ m!^(.*?)(/\Q$arch\E)?(/media)?/?$! && "$1/$arch/media";

    foreach (uniq($val0, $val, $val2)) {
	log::l("trying with $field set to $_");
	$phys_medium->{$field} = $_;

	#- first, try to find a media.cfg file
	eval { install::media::get_media_cfg($o, $phys_medium, $o->{packages}, undef, 'force_rpmsrate') };
	if (!$@) {
	    delete $phys_medium->{unknown_CD}; #- we have a known CD now
	    return 1;
	}
    }
    #- restore it
    $phys_medium->{$field} = $val;

    #- try using media_info/hdlist.cz
    my $medium_id = int(@{$o->{packages}{media}});
    eval { install::media::get_standalone_medium($o, $phys_medium, $o->{packages}, { name => "Supplementary media $medium_id" }) };
    if (!$@) {
	log::l("read suppl hdlist (via $method)");
	delete $phys_medium->{unknown_CD}; #- we have a known CD now
	return 1;
    }

    install::media::umount_phys_medium($phys_medium);
    install::media::remove_from_fstab($o->{all_hds}, $phys_medium);
    $o->ask_warn('', N("Can't find a package list file on this mirror. Make sure the location is correct."));
    goto ask_url;
}

sub load_rate_files {
    my ($o) = @_;
    #- must be done after getProvides

    install::pkgs::read_rpmsrate($o->{packages}, $o->{rpmsrate_flags_chosen}, '/tmp/rpmsrate', $o->{match_all_hardware});

    ($o->{compssUsers}, $o->{gtk_display_compssUsers}) = install::pkgs::readCompssUsers('/tmp/compssUsers.pl');

    defined $o->{compssUsers} or die "Can't read compssUsers.pl file, aborting installation\n";
}

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

    require install::pkgs;
    {
	$o->{packages} = install::pkgs::empty_packages($o->{keep_unrequested_dependencies});
	
	my $media = $o->{media} || [ { type => 'media_cfg', url => 'drakx://media' } ];

	my ($suppl_method, $copy_rpms_on_disk) = install::media::get_media($o, $media, $o->{packages});

	if ($suppl_method) {
	    1 while $o->selectSupplMedia;
	}

	#- open rpm db according to right mode needed (ie rebuilding database if upgrading)
	$o->{packages}{rpmdb} ||= install::pkgs::rpmDbOpen($o->{isUpgrade}, $o->{rpm_dbapi});

	{
	    my $_wait = $o->wait_message('', N("Looking at packages already installed..."));
	    install::pkgs::selectPackagesAlreadyInstalled($o->{packages});
	}

	if (my $extension = $o->{upgrade_by_removing_pkgs_matching}) {
	    my $time = time();
	    my ($_w, $wait_message) = $o->wait_message_with_progress_bar;
	    $wait_message->(N("Removing packages prior to upgrade..."));
	    my ($current, $total);
	    my $callback = sub {
		my (undef, $type, $_id, $subtype, $amount) = @_;
		if ($type eq 'user') {
		    ($current, $total) = (0, $amount);
		} elsif ($type eq 'uninst' && $subtype eq 'stop') {
		    $wait_message->('', $current++, $total);
		}
	    };
	    push @{$o->{default_packages}}, install::pkgs::upgrade_by_removing_pkgs($o->{packages}, $callback, $extension, $o->{isUpgrade});
	    log::l("Removing packages took: ", formatTimeRaw(time() - $time));
	}

	mark_skipped_packages($o);

	#- always try to select basic kernel (else on upgrade, kernel will never be updated provided a kernel is already
	#- installed and provides what is necessary).
	my $kernel_pkg = install::pkgs::bestKernelPackage($o->{packages}, $o->{match_all_hardware});
	install::pkgs::selectPackage($o->{packages}, $kernel_pkg, 1);
	if ($o->{isUpgrade} && $o->{packages}{sizes}{dkms}) {
	    log::l("selecting kernel-desktop-devel-latest (since dkms was installed)");
	    install::pkgs::select_by_package_names($o->{packages}, ['kernel-desktop-devel-latest'], 1);
	}

	install::pkgs::select_by_package_names_or_die($o->{packages}, ['basesystem'], 1);

	my $rpmsrate_flags_was_chosen = $o->{rpmsrate_flags_chosen};

	put_in_hash($o->{rpmsrate_flags_chosen} ||= {}, rpmsrate_always_flags($o)); #- must be done before install::pkgs::read_rpmsrate()
	load_rate_files($o);

	install::media::copy_rpms_on_disk($o) if $copy_rpms_on_disk;

	set_rpmsrate_default_category_flags($o, $rpmsrate_flags_was_chosen);

	push @{$o->{default_packages}}, default_packages($o);
	select_default_packages($o);
    }

    if ($o->{isUpgrade}) {
	{
	    my $_w = $o->wait_message('', N("Finding packages to upgrade..."));
	    install::pkgs::selectPackagesToUpgrade($o->{packages});
	}
	if ($o->{packages}{sizes}{'kdebase-progs'}) {
	    log::l("selecting task-kde (since kdebase-progs was installed)");
	    install::pkgs::select_by_package_names($o->{packages}, ['task-kde']);
	}
    }
}

sub create_minimal_files() {
    mkdir "$::prefix/$_", 0755 foreach 
      qw(dev etc etc/profile.d etc/rpm etc/sysconfig etc/sysconfig/console 
	etc/sysconfig/network-scripts etc/sysconfig/console/consolefonts 
	etc/sysconfig/console/consoletrans
	home mnt tmp var var/tmp var/lib var/lib/rpm var/lib/urpmi);
    mkdir "$::prefix/$_", 0700 foreach qw(root root/tmp root/drakx);

    devices::make("$::prefix/dev/null");
    chmod 0666, "$::prefix/dev/null";
}

sub count_files {
    my ($dir) = @_;
    -d $dir or return 0;
    opendir my $dh, $dir or return 0;
    my @list = grep { !/^\.\.?$/ } readdir $dh;
    closedir $dh;
    my $c = 0;
    foreach my $n (@list) {
	my $p = "$dir/$n";
	if (-d $p) { $c += count_files($p) } else { ++$c }
    }
    $c;
}

sub cp_with_progress {
    my $wait_message = shift;
    my $current = shift;
    my $total = shift;
    my $dest = pop @_;
    cp_with_progress_({ keep_special => 1 }, $wait_message, $total, \@_, $dest);
}
sub cp_with_progress_ {
    my ($options, $wait_message, $total, $list, $dest) = @_;
    @$list or return;
    @$list == 1 || -d $dest or die "cp: copying multiple files, but last argument ($dest) is not a directory\n";

    -d $dest or $dest = dirname($dest);
    _cp_with_progress($options, $wait_message, 0, $total, $list, $dest);
}
sub _cp_with_progress {
    my ($options, $wait_message, $current, $total, $list, $dest) = @_;

    foreach my $src (@$list) {
	my $dest = $dest;
	-d $dest and $dest .= '/' . basename($src);

	unlink $dest;

	if (-l $src && $options->{keep_special}) {
	    unless (symlink(readlink($src) || die("readlink failed: $!"), $dest)) {
		warn "symlink: can't create symlink $dest: $!\n";
	    }
	} elsif (-d $src) {
	    -d $dest or mkdir $dest, (stat($src))[2] or die "mkdir: can't create directory $dest: $!\n";
	    _cp_with_progress($options, $wait_message, $current, $total, [ glob_($src) ], $dest);
	} else {
	    open(my $F, $src) or die "can't open $src for reading: $!\n";
	    open(my $G, ">", $dest) or die "can't cp to file $dest: $!\n";
	    local $/ = \4096;
	    local $_; while (<$F>) { print $G $_ }
	    chmod((stat($src))[2], $dest);
	    $wait_message->('', ++$current, $total);
	}
    }
    1;
}

sub set_rpmsrate_default_category_flags {
    my ($o, $rpmsrate_flags_was_chosen) = @_;

    #- if no cleaning needed, populate by default, clean is used for second or more call to this function.> "Please choose your keyboard layout"
msgstr "Izberite razpored tipkovnice"

#: steps_interactive.pm:108
#, c-format
msgid "Here is the full list of available keyboards:"
msgstr "Tu je celoten seznam razpoložljivih tipkovnic:"

#: steps_interactive.pm:139
#, c-format
msgid "Install/Upgrade"
msgstr "Namestitev/posodobitev"

#: steps_interactive.pm:143
#, c-format
msgid "Is this an install or an upgrade?"
msgstr "Želite izvesti novo namestitev ali posodobiti nameščeni sistem?"

#: steps_interactive.pm:145
#, c-format
msgid ""
"_: This is a noun:\n"
"Install"
msgstr "Namestitev"

#: steps_interactive.pm:147
#, c-format
msgid "Upgrade %s"
msgstr "Posodobitev %s"

#: steps_interactive.pm:151
#, c-format
msgid "Upgrade from a 32bit to a 64bit distribution is not supported"
msgstr "Posodobitev z 32-bitnega na 64-bitni sistem ni podprta"

#: steps_interactive.pm:155
#, c-format
msgid "Upgrade from a 64bit to a 32bit distribution is not supported"
msgstr "Posodobitev s 64-bitnega na 32-bitni sistem ni podprta"

#: steps_interactive.pm:174
#, c-format
msgid "Encryption key for %s"
msgstr "Šifrirni ključ za %s"

#: steps_interactive.pm:207
#, c-format
msgid "Cancel installation, reboot system"
msgstr "Prekliči namestitev, znova zaženi računalnik"

#: steps_interactive.pm:208
#, c-format
msgid "New Installation"
msgstr "Nova namestitev"

#: steps_interactive.pm:209
#, c-format
msgid "Upgrade previous installation (not recommended)"
msgstr "Nadgradite obstoječo namestitev (ni priporočeno)"

#: steps_interactive.pm:213
#, c-format
msgid ""
"Installer has detected that your installed Mandriva Linux system could not\n"
"safely be upgraded to %s.\n"
"\n"
"New installation replacing your previous one is recommended.\n"
"\n"
"Warning : you should backup all your personal data before choosing \"New\n"
"Installation\"."
msgstr ""
"Namestitveni program je zaznal, da obstoječe namestitve Mandriva\n"
"Linuxa ni moč varno nadgraditi na različico %s.\n"
"\n"
"Priporočena je nova namestitev, ki nadomesti obstoječo.\n"
"\n"
"Opozorilo: Pred nadaljevanjem z novo namestitvijo napravite\n"
"varnostno kopijo vseh osebnih podatkov."

#: steps_interactive.pm:255
#, c-format
msgid "IDE"
msgstr "IDE"

#: steps_interactive.pm:255
#, c-format
msgid "Configuring IDE"
msgstr "Nastavljanje IDE"

#: steps_interactive.pm:292
#, c-format
msgid ""
"No free space for 1MB bootstrap! Install will continue, but to boot your "
"system, you'll need to create the bootstrap partition in DiskDrake"
msgstr ""
"Ni prostora za zapis začetnega nalagalnika (1MB). Namestitev se bo "
"nadaljevala, vendar morate, da bi sistem po namestitvi lahko zagnali, s "
"pomočjo orodja DiskDrake ustvariti razdelek za začetno nalaganje."

#: steps_interactive.pm:297
#, c-format
msgid ""
"You'll need to create a PPC PReP Boot bootstrap! Install will continue, but "
"to boot your system, you'll need to create the bootstrap partition in "
"DiskDrake"
msgstr ""
"Ustvariti morate začetni nalagalnik PPC PReP Boot! Namestitev se bo "
"nadaljevala, vendar boste morali za zagon sistema s pomočjo DiskDrake "
"ustvariti razdelek za začetno nalaganje."

#: steps_interactive.pm:378
#, c-format
msgid ""
"Change your Cd-Rom!\n"
"Please insert the Cd-Rom labelled \"%s\" in your drive and press Ok when "
"done.\n"
"If you do not have it, press Cancel to avoid installation from this Cd-Rom."
msgstr ""
"Zamenjajte nosilec!\n"
"\n"
"Vstavite namestitveni nosilec z oznako »%s« v pogon in kliknite V redu\n"
"Če zahtevanega nosilca nimate, kliknite Prekliči, da ga bo namestitev "
"preskočila."

#: steps_interactive.pm:408
#, c-format
msgid "Looking for available packages..."
msgstr "Iskanje razpoložljivih paketov ..."

#: steps_interactive.pm:416
#, c-format
msgid ""
"Your system does not have enough space left for installation or upgrade (%"
"dMB > %dMB)"
msgstr ""
"Sistem nima dovolj prostora za namestitev ali nadgradnjo (%d MiB > %d MiB)"

#: steps_interactive.pm:463
#, c-format
msgid ""
"Please choose load or save package selection.\n"
"The format is the same as auto_install generated files."
msgstr ""
"Prosim, izberite nalaganje ali shranjevanje izbora paketov.\n"
"Format je enak datotekam za samodejno namestitev."

#: steps_interactive.pm:465
#, c-format
msgid "Load"
msgstr "Naloži"

#: steps_interactive.pm:465
#, c-format
msgid "Save"
msgstr "Shrani"

#: steps_interactive.pm:473
#, c-format
msgid "Bad file"
msgstr "Neustrezna datoteka"

#: steps_interactive.pm:489
#, c-format
msgid "KDE"
msgstr "KDE"

#: steps_interactive.pm:490
#, c-format
msgid "GNOME"
msgstr "GNOME"

#: steps_interactive.pm:493
#, c-format
msgid "Desktop Selection"
msgstr "Izbira namizja"

#: steps_interactive.pm:494
#, c-format
msgid "You can choose your workstation desktop profile."
msgstr "Tu lahko izberete namizno okolje, ki bo nameščeno."

#: steps_interactive.pm:580
#, c-format
msgid "Selected size is larger than available space"
msgstr "Velikost izbora presega prostor, ki je na razpolago."

#: steps_interactive.pm:595
#, c-format
msgid "Type of install"
msgstr "Vrsta namestitve"

#: steps_interactive.pm:596
#, c-format
msgid ""
"You have not selected any group of packages.\n"
"Please choose the minimal installation you want:"
msgstr ""
"Izbrali niste nobene skupine paketov.\n"
"Izbrati morate vsaj minimalno namestitev:"

#: steps_interactive.pm:601
#, c-format
msgid "With X"
msgstr "Z grafičnim okoljem"

#: steps_interactive.pm:602
#, c-format
msgid "With basic documentation (recommended!)"
msgstr "Z osnovno dokumentacijo (priporočeno!)"

#: steps_interactive.pm:603
#, c-format
msgid "Truly minimal install (especially no urpmi)"
msgstr "Zares najmanjša možna namestitev (še posebej brez urpmi)"

#: steps_interactive.pm:657
#, c-format
msgid "Preparing installation"
msgstr "Pripravljanje namestitve"

#: steps_interactive.pm:665
#, c-format
msgid "Installing package %s"
msgstr "Nameščanje paketa %s"

#: steps_interactive.pm:689
#, c-format
msgid "There was an error ordering packages:"
msgstr "Med razvrščanjem paketov je prišlo do napake:"

#: steps_interactive.pm:689
#, c-format
msgid "Go on anyway?"
msgstr "Ali naj kljub temu nadaljujem?"

#: steps_interactive.pm:693
#, c-format
msgid "Retry"
msgstr "Poskusi znova"

#: steps_interactive.pm:694
#, c-format
msgid "Skip this package"
msgstr "Spusti ta paket"

#: steps_interactive.pm:695
#, c-format
msgid "Skip all packages from medium \"%s\""
msgstr "Spusti vse pakete z nosilca »%s«"

#: steps_interactive.pm:696
#, c-format
msgid "Go back to media and packages selection"
msgstr "Nazaj na izbiro nosilcev in paketov"

#: steps_interactive.pm:699
#, c-format
msgid "There was an error installing package %s."
msgstr "Prišlo je do napake med nameščanjem paketa %s."

#: steps_interactive.pm:718
#, c-format
msgid "Post-install configuration"
msgstr "Nastavitev po namestitvi"

#: steps_interactive.pm:725
#, c-format
msgid "Please ensure the Update Modules media is in drive %s"
msgstr "Prepričajte se, da je nosilec »Posodobitev modulov« v pogonu %s"

#: steps_interactive.pm:753 steps_list.pm:47
#, c-format
msgid "Updates"
msgstr "Posodobitve"

#: steps_interactive.pm:754
#, c-format
msgid ""
"You now have the opportunity to download updated packages. These packages\n"
"have been updated after the distribution was released. They may\n"
"contain security or bug fixes.\n"
"\n"
"To download these packages, you will need to have a working Internet \n"
"connection.\n"
"\n"
"Do you want to install the updates?"
msgstr ""
"Imate možnost, da s strežnika prenesete posodobljene pakete. Ti paketi\n"
"so bili posodobljeni po izdaji distribucije. Vsebujejo varnostne popravke in "
"popravke napak.\n"
"\n"
"Za namestitev teh paketov morate imeti vzpostavljeno internetno povezavo.\n"
"\n"
"Ali želite namestiti posodobitve?"

#: steps_interactive.pm:861
#, c-format
msgid "%s on %s"
msgstr "%s na %s"

#: steps_interactive.pm:894 steps_interactive.pm:901 steps_interactive.pm:914
#: steps_interactive.pm:931 steps_interactive.pm:946
#, c-format
msgid "Hardware"
msgstr "Strojna oprema"

#: steps_interactive.pm:915 steps_interactive.pm:932
#, c-format
msgid "Sound card"
msgstr "Zvočna kartica"

#: steps_interactive.pm:935
#, c-format
msgid "Do you have an ISA sound card?"
msgstr "Ali imate zvočno kartico na ISA vodilu?"

#: steps_interactive.pm:937
#, c-format
msgid ""
"Run \"alsaconf\" or \"sndconfig\" after installation to configure your sound "
"card"
msgstr ""
"Za nastavitev zvočne kartice po namestitvi zaženite »alsaconf« ali »sndconfig«."

#: steps_interactive.pm:939
#, c-format
msgid "No sound card detected. Try \"harddrake\" after installation"
msgstr ""
"Ne zaznam zvočne kartice. Po namestitvi jo poskusite nastaviti s pomočjo "
"»harddrake«."

#: steps_interactive.pm:947
#, c-format
msgid "Graphical interface"
msgstr "Grafična kartica"

#: steps_interactive.pm:953 steps_interactive.pm:964
#, c-format
msgid "Network & Internet"
msgstr "Omrežje in internet"

#: steps_interactive.pm:965
#, c-format
msgid "Proxies"
msgstr "Posredniški strežniki"

#: steps_interactive.pm:966
#, c-format
msgid "configured"
msgstr "nastavljeno"

#: steps_interactive.pm:976
#, c-format
msgid "Security Level"
msgstr "Raven varnosti"

#: steps_interactive.pm:995
#, c-format
msgid "Firewall"
msgstr "Požarni zid"

#: steps_interactive.pm:999
#, c-format
msgid "activated"
msgstr "aktivirano"

#: steps_interactive.pm:999
#, c-format
msgid "disabled"
msgstr "onemogočeno"

#: steps_interactive.pm:1013
#, c-format
msgid "You have not configured X. Are you sure you really want this?"
msgstr "Niste nastavili grafičnega strežnika. Ali to zares želite?"

#: steps_interactive.pm:1041
#, c-format
msgid "Preparing bootloader..."
msgstr "Pripravljanje zagonskega nalagalnika ..."

#: steps_interactive.pm:1042
#, c-format
msgid "Be patient, this may take a while..."
msgstr "Prosimo potrpite, to lahko traja dlje časa ..."

#: steps_interactive.pm:1053
#, c-format
msgid ""
"You appear to have an OldWorld or Unknown machine, the yaboot bootloader "
"will not work for you. The install will continue, but you'll need to use "
"BootX or some other means to boot your machine. The kernel argument for the "
"root fs is: root=%s"
msgstr ""
"Na vašem računalniku zagonski nalagalnik yaboot ne bo deloval.\n"
"Namestitev se bo nadaljevala, vendar boste morali\n"
"računalnik zagnati s pomočjo BootX ali na drug način. Nastavitev jedra za "
"korenski datotečni sistem je: root=%s"

#: steps_interactive.pm:1067
#, c-format
msgid ""
"In this security level, access to the files in the Windows partition is "
"restricted to the administrator."
msgstr ""
"Na tej varnostni stopnji je dostop do datotek na razdelku za Windows "
"dovoljen samo skrbniku sistema (root)."

#: steps_interactive.pm:1099
#, c-format
msgid "Insert a blank floppy in drive %s"
msgstr "Vstavite prazno disketo v pogon %s"

#: steps_interactive.pm:1101
#, c-format
msgid "Creating auto install floppy..."
msgstr "Ustvarjanje diskete za samodejno namestitev ..."

#: steps_interactive.pm:1112
#, c-format
msgid ""
"Some steps are not completed.\n"
"\n"
"Do you really want to quit now?"
msgstr ""
"Nekateri koraki še niso dokončani.\n"
"\n"
"Ali res želite končati?"

#: steps_interactive.pm:1122
#, c-format
msgid "Congratulations"
msgstr "Čestitke"

#. -PO: please keep the following messages very short: they must fit in the left list of the installer!!!
#: steps_list.pm:16
#, c-format
msgid ""
"_: Keep these entry short\n"
"Language"
msgstr "Jezik"

#: steps_list.pm:16 steps_list.pm:23
#, c-format
msgid "Localization"
msgstr "Področne nastavitve"

#: steps_list.pm:17
#, c-format
msgid ""
"_: Keep these entry short\n"
"License"
msgstr "Licenca"

#: steps_list.pm:18
#, c-format
msgid ""
"_: Keep these entry short\n"
"Mouse"
msgstr "Miška"

#: steps_list.pm:19 steps_list.pm:20
#, c-format
msgid ""
"_: Keep these entry short\n"
"Hard drive detection"
msgstr "Zaznava trdega diska"

#: steps_list.pm:21 steps_list.pm:22
#, c-format
msgid ""
"_: Keep these entry short\n"
"Installation class"
msgstr "Razred namestitve "

#: steps_list.pm:23
#, c-format
msgid ""
"_: Keep these entry short\n"
"Keyboard"
msgstr "Tipkovnica"

#: steps_list.pm:24
#, c-format
msgid ""
"_: Keep these entry short\n"
"Security"
msgstr "Varnost"

#: steps_list.pm:25
#, c-format
msgid ""
"_: Keep these entry short\n"
"Partitioning"
msgstr "Razdelitev diska"

#: steps_list.pm:27 steps_list.pm:28
#, c-format
msgid ""
"_: Keep these entry short\n"
"Formatting"
msgstr "Formatiranje"

#: steps_list.pm:29
#, c-format
msgid ""
"_: Keep these entry short\n"
"Choosing packages"
msgstr "Izbiranje paketov "

#: steps_list.pm:31
#, c-format
msgid ""
"_: Keep these entry short\n"
"Installing"
msgstr "Nameščanje"

#: steps_list.pm:34
#, c-format
msgid ""
"_: Keep these entry short\n"
"Users"
msgstr "Uporabniki"

#: steps_list.pm:36 steps_list.pm:37
#, c-format
msgid ""
"_: Keep these entry short\n"
"Networking"
msgstr "Omrežje"

#: steps_list.pm:38 steps_list.pm:39
#, c-format
msgid ""
"_: Keep these entry short\n"
"Bootloader"
msgstr "Zagonski nalagalnik"

#: steps_list.pm:40 steps_list.pm:41
#, c-format
msgid ""
"_: Keep these entry short\n"
"Configure X"
msgstr "Grafični strežnik"

#: steps_list.pm:42
#, c-format
msgid ""
"_: Keep these entry short\n"
"Summary"
msgstr "Povzetek"

#: steps_list.pm:44 steps_list.pm:45
#, c-format
msgid ""
"_: Keep these entry short\n"
"Services"
msgstr "Storitve"

#: steps_list.pm:46
#, c-format
msgid ""
"_: Keep these entry short\n"
"Updates"
msgstr "Posodobitve"

#: steps_list.pm:48
#, c-format
msgid ""
"_: Keep these entry short\n"
"Exit"
msgstr "Izhod"

#: ../../advertising/IM_flash.pl:1
#, c-format
msgid "Your desktop on a USB key"
msgstr "Vaše namizje na USB ključku"

#: ../../advertising/IM_free09.pl:1
#, c-format
msgid "The 100%% open source Mandriva Linux distribution"
msgstr "100%% odprto-kodna distribucija Mandriva Linux"

#: ../../advertising/IM_one09.pl:1
#, c-format
msgid "Explore Linux easily with Mandriva One"
msgstr "Z Mandriva One je odkrivanje Linuxa preprosto"

#: ../../advertising/IM_pwp09.pl:1
#, c-format
msgid "A full Mandriva Linux desktop, with support"
msgstr "Popolno namizje Mandriva Linux, s podporo"

#: ../../advertising/IM_range09.pl:1
#, c-format
msgid "Mandriva: distributions for everybody's needs"
msgstr "Mandriva: distribucije za potrebe vsakogar"

#~ msgid ""
#~ "You have selected the following server(s): %s\n"
#~ "\n"
#~ "\n"
#~ "These servers are activated by default. They do not have any known "
#~ "security\n"
#~ "issues, but some new ones could be found. In that case, you must make "
#~ "sure\n"
#~ "to upgrade as soon as possible.\n"
#~ "\n"
#~ "\n"
#~ "Do you really want to install these servers?\n"
#~ msgstr ""
#~ "Izbrali ste naslednje strežnike: %s\n"
#~ "\n"
#~ "\n"
#~ "Navedeni strežniki se zaženejo samodejno. Trenutno nimajo nobenih znanih\n"
#~ "varnostnih težav, a lahko odkrijejo nove. V tem primeru je strežnike "
#~ "potrebno\n"
#~ "čim prej posodobiti.\n"
#~ "\n"
#~ "\n"
#~ "Ali ste prepričani, da želite namestiti navedene strežnike?\n"

#~ msgid "IceWm Desktop"
#~ msgstr "Namizje IceWM"

#~ msgid "Contacting the mirror to get the list of available packages..."
#~ msgstr ""
#~ "Vzpostavljanje povezave z zrcalnim strežnikom in pridobivanje seznama "
#~ "dosegljivih paketov...."

#~ msgid "Unable to contact mirror %s"
#~ msgstr "Povezave z zrcalnim strežnikom %s ni mogoče vzpostaviti."

#~ msgid "Generate auto install floppy"
#~ msgstr "Ustvari disketo za samodejno namestitev"

#~ msgid ""
#~ "The auto install can be fully automated if wanted,\n"
#~ "in that case it will take over the hard drive!!\n"
#~ "(this is meant for installing on another box).\n"
#~ "\n"
#~ "You may prefer to replay the installation.\n"
#~ msgstr ""
#~ "Namestitev je lahko povsem samodejna, V tem\n"
#~ "primeru se uporabi ves trdi disk!!\n"
#~ "(Takšen način je uporaben, če želite namestitev\n"
#~ "zagnati na drugem računalniku.)\n"
#~ "\n"
#~ "Morda vam bolj ustreza ponovitev namestitve.\n"

#~ msgid "Replay"
#~ msgstr "Ponovi"

#~ msgid "Automated"
#~ msgstr "Samodejno"

#~ msgid "Save packages selection"
#~ msgstr "Shrani izbiro paketov"

#~ msgid "Do you want to use aboot?"
#~ msgstr "Ali želite uporabiti aboot?"

#~ msgid ""
#~ "Error installing aboot, \n"
#~ "try to force installation even if that destroys the first partition?"
#~ msgstr ""
#~ "Napaka pri namestitvi aboot\n"
#~ "Ali želite nadaljevati z namestitvijo, čeprav bo s tem prvi razdelek "
#~ "uničen?"