aboutsummaryrefslogtreecommitdiffstats
path: root/po/pt_BR.po
blob: 8aa18ad3b3824938abbff267974430c0f1e141f4 (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
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
	     { val => N("Rescue partition table"),  clicked_may_quit => sub { Rescuept($in, $hd);     1 } },
	         if_($::isInstall, 
	     { val => N("Reload partition table"), clicked => sub { 
		   $::o->{all_hds} = fsedit::empty_all_hds();
		   die "setstep doPartitionDisks\n" if $::setstep;
	       } }),
	         if_($::isInstall, 
	     { text => N("Removable media automounting"), val => \$::o->{useSupermount}, type => 'bool' },
		 ),
	    ],
    );
}

sub ReadFromFile {
    my ($in, $hd) = @_;

    my $file = $::isStandalone ? $in->ask_file(N("Select file")) : devices::make("fd0") or return;

    eval {
    catch_cdie { partition_table::load($hd, $file) }
      sub {
	  $@ =~ /bad totalsectors/ or return;
	  $in->ask_yesorno('',
N("The backup partition table has not the same size
Still continue?"), 0);
      };
    };
    if (my $err = $@) {
    	$in->ask_warn(N("Error"), formatError($err));
    }
}

sub SaveInFile {
    my ($in, $hd) = @_;

    my $file = $::isStandalone ?
		 $in->ask_file(N("Select file")) :
                 $in->ask_okcancel(N("Warning"),
N("Insert a floppy in drive
All data on this floppy will be lost"), 1) && devices::make(detect_devices::floppy()) or return;

    eval { partition_table::save($hd, $file) };
    if (my $err = $@) {
    	$in->ask_warn(N("Error"), formatError($err));
    }
}

sub Rescuept {
    my ($in, $hd) = @_;
    my $w = $in->wait_message('', N("Trying to rescue partition table"));
    fsedit::rescuept($hd);
}

sub Hd_info {
    my ($in, $hd) = @_;
    $in->ask_warn('', [ N("Detailed information"), format_hd_info($hd) ]);
}

################################################################################
# per-part actions
################################################################################

sub part_possible_actions {
    my ($in, $hd, $part, $all_hds) = @_;
    $part or return;

    my %actions = my @l = (
        N_("Mount point")      => '($part->{real_mntpoint} && common::usingRamdisk()) || (!isBusy && !isSwap && !isNonMountable)',
        N_("Type")             => '!isBusy && $::expert && (!readonly || ($part->{type} & 0xff) == 0x83)',
        N_("Options")          => '$::expert',
        N_("Resize")	       => '!isBusy && !readonly && !isSpecial || isLVM($hd) && isMounted && isThisFs("xfs", $part)',
        N_("Move")             => '!isBusy && !readonly && !isSpecial && $::expert && 0', # disable for the moment
        N_("Format")           => '!isBusy && !readonly && ($::expert || $::isStandalone)',
        N_("Mount")            => '!isBusy && (hasMntpoint || isSwap) && maybeFormatted && ($::expert || $::isStandalone)',
        N_("Add to RAID")      => '!isBusy && isRawRAID && !isSpecial',
        N_("Add to LVM")       => '!isBusy && isRawLVM',
        N_("Unmount")          => '!$part->{real_mntpoint} && isMounted',
        N_("Delete")	       => '!isBusy && !readonly',
        N_("Remove from RAID") => 'isPartOfRAID',
        N_("Remove from LVM")  => 'isPartOfLVM',
        N_("Modify RAID")      => 'isPartOfRAID && !isMounted($all_hds->{raids}[$part->{raid}])',
        N_("Use for loopback") => '!$part->{real_mntpoint} && isMountableRW && !isSpecial && hasMntpoint && $::expert',
    );
    my ($actions_names) = list2kv(@l);
    my %macros = (
	readonly => '$hd->{readonly}',
        hasMntpoint => '$part->{mntpoint}',
        isPrimary => 'isPrimary($part, $hd)',
    );
    if ($part->{type} == 0) {
	if_(!$hd->{readonly}, N_("Create"));
    } else {
        grep { 
    	    my $cond = $actions{$_};
    	    while (my ($k, $v) = each %macros) {
    	        $cond =~ s/$k/qq(($v))/e;
    	    }
    	    $cond =~ s/(^|[^:\$]) \b ([a-z]\w{3,}) \b ($|[\s&\)])/$1 . $2 . '($part)' . $3/exg;
    	    eval $cond;
        } @$actions_names;
    }
}

sub Create {
    my ($in, $hd, $part, $all_hds) = @_;
    my ($def_start, $def_size, $max) = ($part->{start}, $part->{size}, $part->{start} + $part->{size});

    $part->{maxsize} = $part->{size}; $part->{size} = 0;
    if (!fsedit::suggest_part($part, $all_hds)) {
	$part->{size} = $part->{maxsize};
	$part->{type} ||= 0x483;
    }

    #- update adjustment for start and size, take into account the minimum partition size
    #- including one less sector for start due to a capacity to increase the adjustement by
    #- one.
    my ($primaryOrExtended, $migrate_files);
    my $type = type2name($part->{type});
    my $mb_size = $part->{size} >> 11;
    my $has_startsector = ($::expert || arch() !~ /i.86/) && !isLVM($hd);

    my $w = $in->ask_from(N("Create a new partition"), '',
        [
           if_($has_startsector,
         { label => N("Start sector: "), val => \$part->{start}, min => $def_start, max => ($max - min_partition_size($hd)), type => 'range' },
           ),
         { label => N("Size in MB: "), val => \$mb_size, min => min_partition_size($hd) >> 11, max => $def_size >> 11, type => 'range' },
         { label => N("Filesystem type: "), val => \$type, list => [ partition_table::important_types() ], sort => 0 },
         { label => N("Mount point: "), val => \$part->{mntpoint}, list => [ fsedit::suggestions_mntpoint($all_hds), '' ],
           disabled => sub { my $p = { type => name2type($type) }; isSwap($p) || isNonMountable($p) }, type => 'combo', not_edit => 0,
         },
           if_($::expert && $hd->hasExtended,
         { label => N("Preference: "), val => \$primaryOrExtended, list => [ '', "Extended", "Primary", if_($::expert, "Extended_0x85") ] },
           ),
        ], changed => sub {
	    if ($part->{start} + ($mb_size << 11) > $max) {
		if ($_[0] == 0) {
		    # Start sector changed => restricting Size
		    $mb_size = ($max - $part->{start}) >> 11; 
		} else {
		    # Size changed => restricting Start sector
		    $part->{start} = $max - ($mb_size << 11); 
		}
	    }
        }, complete => sub {
	    $part->{size} = from_Mb($mb_size, min_partition_size($hd), $max - $part->{start}); #- need this to be able to get back the approximation of using MB
	    $part->{type} = name2type($type);
	    $part->{mntpoint} = '' if isNonMountable($part);
	    $part->{mntpoint} = 'swap' if isSwap($part);
	    fs::set_default_options($part);

	    check($in, $hd, $part, $all_hds) or return 1;
	    $migrate_files = need_migration($in, $part->{mntpoint}) or return 1;

	    eval { fsedit::add($hd, $part, $all_hds, { force => 1, primaryOrExtended => $primaryOrExtended }) };
	    if (my $err = $@) {
		if ($err =~ /raw_add/ && $hd->hasExtended && !$hd->{primary}{extended}) {
		    $in->ask_warn(N("Error"), N("You can't create a new partition
(since you reached the maximal number of primary partitions).
First remove a primary partition and create an extended partition."));
		    return 0;
		} else {
		    $in->ask_warn(N("Error"), $@);
		    return 1;
		}
	    }
	    0;
	},
    ) or return;

    warn_if_renumbered($in, $hd);

    if ($migrate_files eq 'migrate') {
	format_($in, $hd, $part, $all_hds) or return;
	migrate_files($in, $hd, $part);
	fs::mount_part($part);
    }
}

sub Delete {
    my ($in, $hd, $part, $all_hds) = @_;
    if (isRAID($part)) {
	raid::delete($all_hds->{raids}, $part);
    } elsif (isLVM($hd)) {
	lvm::lv_delete($hd, $part);
    } elsif (isLoopback($part)) {
	my $f = "$part->{loopback_device}{mntpoint}$part->{loopback_file}";
	if (-e $f && $in->ask_yesorno('', N("Remove the loopback file?"))) {
	    unlink $f;
	}
	my $l = $part->{loopback_device}{loopback};
	@$l = grep { $_ != $part } @$l;
	delete $part->{loopback_device}{loopback} if @$l == 0;
	fsedit::recompute_loopbacks($all_hds);
    } else {
	if (arch() =~ /ppc/) {
	    undef $partition_table::mac::bootstrap_part if isAppleBootstrap($part) && ($part->{device} = $partition_table::mac::bootstrap_part);
	}
	partition_table::remove($hd, $part);
	warn_if_renumbered($in, $hd);
    }
}

sub Type {
    my ($in, $hd, $part) = @_;

    my $warn = sub { ask_alldatawillbelost($in, $part, N_("After changing type of partition %s, all data on this partition will be lost")) };

    #- for ext2, warn after choosing as ext2->ext3 can be achieved without loosing any data :)
    isExt2($part) or $warn->() or return;

    my @types = partition_table::important_types();

    #- when readonly, Type() is allowed only when changing between various { 0x83, 0x183, ... }
    @types = grep { (name2type($_) & 0xff) == 0x83 } @types if $hd->{readonly};

    my $type_name = type2name($part->{type});
    $in->ask_from(N("Change partition type"),
		  N("Which filesystem do you want?"),
		  [ { label => N("Type"), val => \$type_name, list => \@types, sort => 0, not_edit => !$::expert } ]) or return;

    my $type = $type_name && name2type($type_name);

    if (isExt2($part) && isThisFs('ext3', { type => $type })) {
	my $w = $in->wait_message('', N("Switching from ext2 to ext3"));
	if (run_program::run("tune2fs", "-j", devices::make($part->{device}))) {
	    $part->{type} = $type;
	    $part->{isFormatted} = 1; #- assume that if tune2fs works, partition is formatted

	    #- disable the fsck (don't do it together with -j in case -j fails?)
	    fs::disable_forced_fsck($part->{device});	    
	    return;
	}
    }
    #- either we switch to non-ext3 or switching losslessly to ext3 failed
    !isExt2($part) or $warn->() or return;

    if (defined $type) {
	check_type($in, $type, $hd, $part) and fsedit::change_type($type, $hd, $part);
    }
}

sub Mount_point {
    my ($in, $hd, $part, $all_hds) = @_;

    my $migrate_files;
    my $mntpoint = $part->{mntpoint} || do {
	my $part_ = { %$part };
	if (fsedit::suggest_part($part_, $all_hds)) {
	    fsedit::has_mntpoint('/', $all_hds) || $part_->{mntpoint} eq '/boot' ? $part_->{mntpoint} : '/';
	} else { '' }
    };
    $in->ask_from(
        '',
        isLoopback($part) ? N("Where do you want to mount loopback file %s?", $part->{loopback_file}) :
			    N("Where do you want to mount device %s?", $part->{device}),
	[ { label => N("Mount point"), val => \$mntpoint, 
	    list => [ if_($mntpoint, $mntpoint), fsedit::suggestions_mntpoint($all_hds), '' ], 
	    not_edit => 0 } ],
	complete => sub {
	    !isPartOfLoopback($part) || $mntpoint or $in->ask_warn('', 
N("Can't unset mount point as this partition is used for loop back.
Remove the loopback first")), return 1;
	    $part->{mntpoint} eq $mntpoint || check_mntpoint($in, $mntpoint, $hd, $part, $all_hds) or return 1;
    	    $migrate_files = need_migration($in, $mntpoint) or return 1;
	    0;
	}
    ) or return;
    $part->{mntpoint} = $mntpoint;

    if ($migrate_files eq 'migrate') {
	format_($in, $hd, $part, $all_hds) or return;
	migrate_files($in, $hd, $part);
	fs::mount_part($part);
    }
}
sub Mount_point_raw_hd {
    my ($in, $part, $all_hds, @propositions) = @_;

    my $mntpoint = $part->{mntpoint} || shift @propositions;
    $in->ask_from(
        '',
        N("Where do you want to mount %s?", $part->{device}),
	[ { label => N("Mount point"), val => \$mntpoint, 
	    list => [ if_($mntpoint, $mntpoint), '', @propositions ], 
	    not_edit => 0 } ],
	complete => sub {
	    $part->{mntpoint} eq $mntpoint || check_mntpoint($in, $mntpoint, {}, $part, $all_hds) or return 1;
	    0;
	}
    ) or return;
    $part->{mntpoint} = $mntpoint;
}

sub Resize {
    my ($in, $hd, $part) = @_;
    my (%nice_resize, $block_count, $free_block, $block_size);
    my ($min, $max) = (min_partition_size($hd), partition_table::next_start($hd, $part) - $part->{start});

    if (maybeFormatted($part)) {
	# here we may have a non-formatted or a formatted partition
	# -> doing as if it was formatted

	if (isFat($part)) {
	    write_partitions($in, $hd) or return;
	    #- try to resize without losing data
	    my $w = $in->wait_message(N("Resizing"), N("Computing FAT filesystem bounds"));

	    $nice_resize{fat} = resize_fat::main->new($part->{device}, devices::make($part->{device}));
	    $min = max($min, $nice_resize{fat}->min_size);
	    $max = min($max, $nice_resize{fat}->max_size);	    
	} elsif (isExt2($part) || isThisFs('ext3', $part)) {
	    write_partitions($in, $hd) or return;
	    $nice_resize{ext2} = devices::make($part->{device});
	    my $r = `dumpe2fs $nice_resize{ext2} 2>/dev/null`;
	    $r =~ /Block count:\s*(\d+)/ and $block_count = $1;
	    $r =~ /Free blocks:\s*(\d+)/ and $free_block = $1;
	    $r =~ /Block size:\s*(\d+)/ and $block_size = $1;
	    log::l("dumpe2fs $nice_resize{ext2} gives: Block_count=$block_count, Free_blocks=$free_block, Block_size=$block_size");
	    if ($block_count && $free_block && $block_size) {
		$min = max($min, ($block_count - $free_block) * $block_size / 512);
		$max = min($max, $block_count * $block_size / 512);
	    } else {
		delete $nice_resize{ext2};
	    }
	} elsif (isThisFs("reiserfs", $part)) {
	    write_partitions($in, $hd) or return;
	    if (defined(my $free = fs::df($part))) {
		$nice_resize{reiserfs} = 1;		  
		$min = max($min, $part->{size} - $free);
	    }
	} elsif (isThisFs('xfs', $part) && isLVM($hd) && $::isStandalone && isMounted($part)) {
	    $min = $part->{size}; #- ensure the user can only increase
	    $nice_resize{xfs} = 1;
	}
	#- make sure that even after normalizing the size to cylinder boundaries, the minimun will be saved,
	#- this save at least a cylinder (less than 8Mb).
	$min += partition_table::raw::cylinder_size($hd);
	$min >= $max and return $in->ask_warn('', N("This partition is not resizeable"));

	#- for these, we have tools to resize partition table
	#- without losing data (or at least we hope so :-)
	if (%nice_resize) {
	    ask_alldatamaybelost($in, $part, N_("All data on this partition should be backed-up")) or return;
	} else {
	    ask_alldatawillbelost($in, $part, N_("After resizing partition %s, all data on this partition will be lost")) or return;
	}
    }

    my $mb_size = $part->{size} >> 11;
    $in->ask_from(N("Resize"), N("Choose the new size"), [ 
		   { label => N("New size in MB: "), val => \$mb_size, min => $min >> 11, max => $max >> 11, type => 'range' },
		]) or return;


    my $size = from_Mb($mb_size, $min, $max);
    $part->{size} == $size and return;

    my $oldsize = $part->{size};
    $hd->{isDirty} = $hd->{needKernelReread} = 1;
    $part->{size} = $size;
    $hd->adjustEnd($part);

    undef $@;
    my $b = before_leaving { $@ and $part->{size} = $oldsize };
    my $w = $in->wait_message(N("Resizing"), '');

    if (isLVM($hd)) {
	lvm::lv_resize($part, $oldsize) if $size > $oldsize;	
    }

    if ($nice_resize{fat}) {
	local *log::l = sub { $w->set(join(' ', @_)) };
	$nice_resize{fat}->resize($part->{size});
    } elsif ($nice_resize{ext2}) {
	my $s = int(($part->{size} << 9) / $block_size);
	log::l("resize2fs $nice_resize{ext2} to size $s in block of $block_size bytes");
	run_program::run("resize2fs", "-pf", $nice_resize{ext2}, $s);
    } elsif ($nice_resize{reiserfs}) {
	log::l("reiser resize to $part->{size} sectors");
	run_program::run("resize_reiserfs", "-f", "-q", "-s" . $part->{size}/2 . "K", devices::make($part->{device}));
    } elsif ($nice_resize{xfs}) {
	#- happens only with mounted LVM, see above
	run_program::run("xfs_growfs", $part->{mntpoint});
    }

    if (%nice_resize) {
	$part->{isFormatted} = 1;
    } else {
	$part->{notFormatted} = 1;
	$part->{isFormatted} = 0;
	partition_table::verifyParts($hd);
    }

    if (isLVM($hd)) {
	lvm::lv_resize($part, $oldsize) if $size < $oldsize;
    } else {
	partition_table::adjust_local_extended($hd, $part);
	partition_table::adjust_main_extended($hd);
    }
}
sub Move {
    my ($in, $hd, $part, $all_hds) = @_;
    my $hd2 = $in->ask_from_listf(N("Move"),
				  N("Which disk do you want to move it to?"), \&partition_table::description, @{$all_hds->{hds}}) or return;
    my $start2 = $in->ask_from_entry(N("Sector"),
				     N("Which sector do you want to move it to?"));
    defined $start2 or return;

    my $w = $in->wait_message(N("Moving"), N("Moving partition..."));
    fsedit::move($hd, $part, $hd2, $start2);
}
sub Format {
    my ($in, $hd, $part, $all_hds) = @_;
    format_($in, $hd, $part, $all_hds);
}
sub Mount {
    my ($in, $hd, $part) = @_;
    write_partitions($in, $hd) or return;
    fs::mount_part($part);
}
sub Add2RAID {
    my ($in, $hd, $part, $all_hds) = @_;
    my $raids = $all_hds->{raids};

    local $_ = @$raids == () ? "new" :
      $in->ask_from_list_('', N("Choose an existing RAID to add to"),
			  [ (grep { $_ } map_index { $_ && "md$::i" } @$raids), N_("new") ]) or return;

    if (/new/) {
	my $nb1 = raid::new($raids, $part);
	defined modifyRAID($in, $raids, $nb1) or return raid::delete($raids, $nb1);
    } else {
	raid::add($raids, $part, $_);
    }
    raid::update(@$raids);
}
sub Add2LVM {
    my ($in, $hd, $part, $all_hds) = @_;
    my $lvms = $all_hds->{lvms};
    write_partitions($in, $_) or return foreach isRAID($part) ? @{$all_hds->{hds}} : $hd;

    my $lvm = $in->ask_from_listf_('', N("Choose an existing LVM to add to"),
				  sub { ref $_[0] ? $_[0]{VG_name} : $_[0] },
				  [ @$lvms, N_("new") ]) or return;
    if (!ref $lvm) {
	# create new lvm
	my $name = $in->ask_from_entry('', N("LVM name?")) or return;
	$name =~ s/\W/_/g;
	$name = substr($name, 0, 63); # max length must be < NAME_LEN / 2  where NAME_LEN is 128
	$lvm = bless { disks => [], VG_name => $name }, 'lvm';
	push @$lvms, $lvm;
    }
    raid::make($all_hds->{raids}, $part) if isRAID($part);
    $part->{lvm} = $lvm->{VG_name};
    push @{$lvm->{disks}}, $part;
    delete $part->{mntpoint};

    require lvm;
    lvm::check($in) if $::isStandalone;
    lvm::vg_add($part);
    lvm::update_size($lvm);
}
sub Unmount {
    my ($in, $hd, $part) = @_;
    fs::umount_part($part);
}
sub RemoveFromRAID { 
    my ($in, $hd, $part, $all_hds) = @_;
    raid::removeDisk($all_hds->{raids}, $part);
}
sub RemoveFromLVM {
    my ($in, $hd, $part, $all_hds) = @_;
    my $lvms = $all_hds->{lvms};
    isPartOfLVM($part) or die;
    my ($lvm) = grep { $_->{VG_name} eq $part->{lvm} } @$lvms;
    lvm::vg_destroy($lvm);
    @$lvms = grep { $_ != $lvm } @$lvms;
}
sub ModifyRAID { 
    my ($in, $hd, $part, $all_hds) = @_;
    modifyRAID($in, $all_hds->{raids}, $part->{raid});
}
sub Loopback {
    my ($in, $hd, $real_part, $all_hds) = @_;

    write_partitions($in, $hd) or return;

    my $handle = any::inspect($real_part) or $in->ask_warn('', N("This partition can't be used for loopback")), return;

    my ($min, $max) = (1, loopback::getFree($handle->{dir}, $real_part));
    $max = max($max, 1 << (31 - 9)) if isFat($real_part); #- FAT doesn't handle file size bigger than 2GB
    my $part = { maxsize => $max, size => 0, loopback_device => $real_part, notFormatted => 1 };
    if (!fsedit::suggest_part($part, $all_hds)) {
	$part->{size} = $part->{maxsize};
	$part->{type} ||= 0x483;
    }
    delete $part->{mntpoint}; # we don't want the suggested mntpoint

    my $type = type2name($part->{type});
    my $mb_size = $part->{size} >> 11;
    $in->ask_from(N("Loopback"), '', [
		  { label => N("Loopback file name: "), val => \$part->{loopback_file} },
		  { label => N("Size in MB: "), val => \$mb_size, min => $min >> 11, max => $max >> 11, type => 'range' },
		  { label => N("Filesystem type: "), val => \$type, list => [ partition_table::important_types() ], not_edit => !$::expert, sort => 0 },
             ],
	     complete => sub {
		 $part->{loopback_file} or $in->ask_warn('', N("Give a file name")), return 1, 0;
		 $part->{loopback_file} =~ s|^([^/])|/$1|;
		 if (my $size = loopback::verifFile($handle->{dir}, $part->{loopback_file}, $real_part)) {
		     $size == -1 and $in->ask_warn('', N("File already used by another loopback, choose another one")), return 1, 0;
		     $in->ask_yesorno('', N("File already exists. Use it?")) or return 1, 0;
		     delete $part->{notFormatted};
		     $part->{size} = divide($size, 512);
		 } else {
		     $part->{size} = from_Mb($mb_size, $min, $max);
		 }
		 0;
	     }) or return;
    $part->{type} = name2type($type);
    push @{$real_part->{loopback}}, $part;
    fsedit::recompute_loopbacks($all_hds);
}

sub Options {
    my ($in, $hd, $part, $all_hds) = @_;

    my @simple_options = qw(user noauto supermount);

    my (undef, $user_implies) = fs::mount_options();
    my ($options, $unknown) = fs::mount_options_unpack($part);
    my %help = fs::mount_options_help(keys %$options);

    my $prev_user = $options->{user};
    $in->ask_from(N("Mount options"),
		  '',
		  [ 
		   (map { 
			 { label => $_, text => scalar warp_text(formatAlaTeX($help{$_})), val => \$options->{$_}, 
			   advanced => !$part->{rootDevice} && !member($_, @simple_options), if_(!/=$/, type => 'bool'), }
		     } keys %$options),
		    { label => N("Various"), val => \$unknown, advanced => 1 },
		  ],
		  changed => sub {
		      if ($prev_user != $options->{user}) {
			  $prev_user = $options->{user};
			  $options->{$_} = $options->{user} foreach @$user_implies;
		      }
		      if ($options->{encrypted}) {
			  # modify $part->{options} for the check
			  local $part->{options};
			  fs::mount_options_pack($part, $options, $unknown);
			  if (!check($in, $hd, $part, $all_hds)) {
			      $options->{encrypted} = 0;
			  } elsif (!$part->{encrypt_key} && !isSwap($part)) {
			      if (my $encrypt_key = choose_encrypt_key($in)) {
				  $options->{'encryption='} = 'AES128';
				  $part->{encrypt_key} = $encrypt_key;
			      } else {
				  $options->{encrypted} = 0;
			      }
			  }
		      } else {
			  delete $options->{'encryption='};
			  delete $part->{encrypt_key};
		      }
		  },
		 ) or return;

    fs::mount_options_pack($part, $options, $unknown);
    1;
}


{ 
    no strict; 
    *{'Toggle to normal mode'} = sub { $::expert = 0 };
    *{'Toggle to expert mode'} = sub { $::expert = 1 };
    *{'Clear all'} = \&Clear_all;
    *{'Auto allocate'} = \&Auto_allocate;
    *{'Mount point'} = \&Mount_point;
    *{'Modify RAID'} = \&ModifyRAID;
    *{'Add to RAID'} = \&Add2RAID;
    *{'Remove from RAID'} = \&RemoveFromRAID; 
    *{'Add to LVM'} = \&Add2LVM;
    *{'Remove from LVM'} = \&RemoveFromLVM; 
    *{'Use for loopback'} = \&Loopback;
    *{'Hard drive information'} = \&Hd_info;
}


################################################################################
# helpers
################################################################################

sub is_part_existing {
    my ($part, $all_hds) = @_;
    $part && grep { fsedit::is_same_part($part, $_) } fsedit::get_all_fstab_and_holes($all_hds);
}

sub modifyRAID {
    my ($in, $raids, $nb) = @_;
    my $md = "md$nb";
    $in->ask_from('', '',
		  [
{ label => N("device"), val => \$md, list => [ map { "md$_" } grep { $nb == $_ || !$raids->[$_] } 0..8 ] },
{ label => N("level"), val => \$raids->[$nb]{level}, list => [ qw(0 1 4 5 linear) ] },
{ label => N("chunk size"), val => \$raids->[$nb]{'chunk-size'} },
		  ],
		 ) or return;
    raid::updateSize($raids->[$nb]); # changing the raid level changes the size available
    raid::changeNb($raids, $nb, first($md =~ /(\d+)/));
}


sub ask_alldatamaybelost {
    my ($in, $part, $msg) = @_;

    maybeFormatted($part) or return 1;

    #- here we may have a non-formatted or a formatted partition
    #- -> doing as if it was formatted
    $in->ask_okcancel(N("Read carefully!"), 
		      [ N("Be careful: this operation is dangerous."), sprintf(translate($msg), $part->{device}) ], 1);
}
sub ask_alldatawillbelost {
    my ($in, $part, $msg) = @_;

    maybeFormatted($part) or return 1;

    #- here we may have a non-formatted or a formatted partition
    #- -> doing as if it was formatted
    $in->ask_okcancel(N("Read carefully!"), sprintf(translate($msg), $part->{device}), 1);
}

sub partitions_suggestions {
    my ($in) = @_;
    my $t = $::expert ? 
      $in->ask_from_list_('', N("What type of partitioning?"), [ keys %fsedit::suggestions ]) :
      'simple';
    $fsedit::suggestions{$t};
}

sub check_type {
    my ($in, $type, $hd, $part) = @_;
    eval { fsedit::check_type($type, $hd, $part) };
    if (my $err = $@) {
	$in->ask_warn('', $err);
	return;
    }
    if ($::isStandalone) {
	if (my $pkg = fsedit::package_needed_for_partition_type({ type => $type })) {
	    my $fs = type2fs({ type => $type });
	    if (!-x "/sbin/mkfs.$fs") {
		$in->ask_yesorno('', N("The package %s is needed. Install it?", $pkg), 1) or return;
		$in->do_pkgs->install($pkg);
	    }
	    -x "/sbin/mkfs.$fs" or $in->ask_warn('', "Mandatory package $pkg is missing"), return;
	}
    }
    1;
}
sub check_mntpoint {
    my ($in, $mntpoint, $hd, $part, $all_hds) = @_;
    eval { fsedit::check_mntpoint($mntpoint, $hd, $part, $all_hds) };
    local $_ = $@;
    if (m|/boot ending on cylinder > 1024|) {
	$in->ask_warn('',
N("Sorry I won't accept to create /boot so far onto the drive (on a cylinder > 1024).
Either you use LILO and it won't work, or you don't use LILO and you don't need /boot"));
    } elsif (m|/ ending on cylinder > 1024|) {
	$in->ask_warn('',
N("The partition you've selected to add as root (/) is physically located beyond
the 1024th cylinder of the hard drive, and you have no /boot partition.
If you plan to use the LILO boot manager, be careful to add a /boot partition"));
	undef $_;
    } elsif (m|raid / with no /boot|) {
	$in->ask_warn('',
N("You've selected a software RAID partition as root (/).
No bootloader is able to handle this without a /boot partition.
So be careful to add a /boot partition"));
	undef $_;
    } elsif ($_) {
	$in->ask_warn('', formatError($_));
    }
    !$_;
}
sub check {
    my ($in, $hd, $part, $all_hds) = @_;
    check_type($in, $part->{type}, $hd, $part) &&
      check_mntpoint($in, $part->{mntpoint}, $hd, $part, $all_hds);
}

sub write_partitions {
    my ($in, $hd) = @_;
    $hd->{isDirty} or return 1;
    isLVM($hd) and return 1;

    $in->ask_okcancel(N("Read carefully!"), N("Partition table of drive %s is going to be written to disk!", $hd->{device}), 1) or return;
    if (!$::testing) {
	partition_table::write($hd);
    }
    $hd->{rebootNeeded} and die N("You'll need to reboot before the modification can take place");
    1;
}

sub unmount {
    my ($hd, $part) = @_;
    fs::umount_part($part);
}
sub format_ {
    my ($in, $hd, $part, $all_hds) = @_;
    write_partitions($in, $_) or return foreach isRAID($part) ? @{$all_hds->{hds}} : $hd;
    ask_alldatawillbelost($in, $part, N_("After formatting partition %s, all data on this partition will be lost")) or return;
    $part->{isFormatted} = 0; #- force format;
    my $w = $in->wait_message(N("Formatting"), 
			      isLoopback($part) ? N("Formatting loopback file %s", $part->{loopback_file}) :
			                          N("Formatting partition %s", $part->{device}));
    fs::format_part($all_hds->{raids}, $part);
    1;
}

sub need_migration {
    my ($in, $mntpoint) = @_;

    my @l = grep { $_ ne "lost+found" } all($mntpoint);
    if (@l && $::isStandalone) {
	my $choice;
	my @choices = (N_("Move files to the new partition"), N_("Hide files"));
	$in->ask_from('', N("Directory %s already contains data\n(%s)", $mntpoint, formatList(5, @l)), 
		      [ { val => \$choice, list => \@choices, type => 'list' } ]) or return;
	$choice eq $choices[0] ? 'migrate' : 'hide';
    } else {
	'hide';
    }    
}

sub migrate_files {
    my ($in, $hd, $part, $all_hds) = @_;

    my $wait = $in->wait_message('', N("Moving files to the new partition"));
    my $handle = any::inspect($part, '', 'rw');
    my @l = glob_("$part->{mntpoint}/*");
    foreach (@l) {
	$wait->set(N("Copying %s", $_)); 
	system("cp", "-a", $_, $handle->{dir});
    }
    foreach (@l) {
	$wait->set(N("Removing %s", $_)); 
	system("rm", "-rf", $_);
    }
}

sub warn_if_renumbered {
    my ($in, $hd) = @_;
    my $l = delete $hd->{partitionsRenumbered};
    return if is_empty_array_ref($l);

    my @l = map { N("partition %s is now known as %s", @$_) } @$l;
    $in->ask_warn('', join("\n", 'Partitions have been renumbered: ', @l));
}

#- unit of $mb is mega bytes, min and max are in sectors, this
#- function is used to convert back to sectors count the size of
#- a partition ($mb) given from the interface (on Resize or Create).
#- modified to take into account a true bounding with min and max.
sub from_Mb {
    my ($mb, $min, $max) = @_;
    $mb <= $min >> 11 and return $min;
    $mb >= $max >> 11 and return $max;
    $mb * 2048;
}

sub format_part_info {
    my ($hd, $part) = @_;

    my $info = '';

    $info .= N("Mount point: ") . "$part->{mntpoint}\n" if $part->{mntpoint};
    $info .= N("Device: ") . "$part->{device}\n" if $part->{device} && !isLoopback($part);
    $info .= N("DOS drive letter: %s (just a guess)\n", $part->{device_windobe}) if $part->{device_windobe};
    if (arch() eq "ppc") {
      my $new_value = $part->{pType};
      $new_value =~ s/[^A-Za-z0-9_]//g;
      $info .= N("Type: ") . $new_value . ($::expert ? sprintf " (0x%x)", $part->{type} : '') . "\n";
      if (defined $part->{pName}) {
      	$new_value = $part->{pName};
      	$new_value =~ s/[^A-Za-z0-9_]//g;
      	$info .= N("Name: ") . $new_value . "\n";
      }
    } elsif ($part->{type}) {
	my $type = substr(type2name($part->{type}), 0, 40); # limit the length
	$info .= N("Type: ") . $type . ($::expert ? sprintf " (0x%x)", $part->{type} : '') . "\n";
    } else {
	$info .= N("Empty") . "\n";
    }
    $info .= N("Start: sector %s\n", $part->{start}) if $::expert && !isSpecial($part);
    $info .= N("Size: %s", formatXiB($part->{size}, 512));
    $info .= sprintf " (%s%%)", int 100 * $part->{size} / $hd->{totalsectors} if $hd->{totalsectors};
    $info .= N(", %s sectors", $part->{size}) if $::expert;
    $info .= "\n";
    $info .= N("Cylinder %d to %d\n", $part->{start} / $hd->cylinder_size(), ($part->{start} + $part->{size} - 1) / $hd->cylinder_size()) if ($::expert || !$part->{type}) && !isSpecial($part);
    $info .= N("Formatted\n") if $part->{isFormatted};
    $info .= N("Not formatted\n") if !$part->{isFormatted} && $part->{notFormatted};
    $info .= N("Mounted\n") if $part->{isMounted};
    $info .= N("RAID md%s\n", $part->{raid}) if isPartOfRAID($part);
    $info .= sprintf "LVM %s\n", $part->{lvm} if isPartOfLVM($part);
    $info .= N("Loopback file(s):\n   %s\n", join(", ", map { $_->{loopback_file} } @{$part->{loopback}})) if isPartOfLoopback($part);
    $info .= N("Partition booted by default\n    (for MS-DOS boot, not for lilo)\n") if $part->{active} && $::expert;
    if (isRAID($part)) {
	$info .= N("Level %s\n", $part->{level});
	$info .= N("Chunk size %s\n", $part->{'chunk-size'});
	$info .= N("RAID-disks %s\n", join ", ", map { $_->{device} } @{$part->{disks}});
    } elsif (isLoopback($part)) {
	$info .= N("Loopback file name: %s", $part->{loopback_file});
    }
    if (isApple($part)) {
	$info .= N("\nChances are, this partition is\na Driver partition, you should\nprobably leave it alone.\n");
    }
    if (isAppleBootstrap($part)) {
	$info .= N("\nThis special Bootstrap\npartition is for\ndual-booting your system.\n");
    }
    # restrict the length of the lines
    $info =~ s/(.{60}).*/$1.../mg;
    $info;
}

sub format_part_info_short { 
    my ($hd, $part) = @_;
    $part->{type} ? 
      partition_table::description($part) :
      format_part_info($hd, $part);
}

sub format_hd_info {
    my ($hd) = @_;

    my $info = '';
    $info .= N("Device: ") . "$hd->{device}\n";
    $info .= N("Read-only") . "\n" if $hd->{readonly};
    $info .= N("Size: %s\n", formatXiB($hd->{totalsectors}, 512)) if $hd->{totalsectors};
    $info .= N("Geometry: %s cylinders, %s heads, %s sectors\n", @{$hd->{geom}}{qw(cylinders heads sectors)}) if $::expert && $hd->{geom};
    $info .= N("Info: ") . ($hd->{info} || $hd->{media_type}) . "\n" if $::expert && ($hd->{info} || $hd->{media_type});
    $info .= N("LVM-disks %s\n", join ", ", map { $_->{device} } @{$hd->{disks}}) if isLVM($hd) && $hd->{disks};
    $info .= N("Partition table type: %s\n", $1) if $::expert && ref($hd) =~ /_([^_]+)$/;
    $info .= N("on channel %d id %d\n", $hd->{channel}, $hd->{id}) if $::expert && exists $hd->{channel};
    $info;
}

sub format_raw_hd_info {
    my ($raw_hd) = @_;

    my $info = '';
    $info .= N("Mount point: ") . "$raw_hd->{mntpoint}\n" if $raw_hd->{mntpoint};
    $info .= format_hd_info($raw_hd);
    if ($raw_hd->{type}) {
	my $type = substr(type2name($raw_hd->{type}), 0, 40); # limit the length
	$info .= N("Type: ") . $type . "\n";
    }
    $info .= N("Options: %s", $raw_hd->{options}) if $raw_hd->{options};
    $info;
}

#- get the minimal size of partition in sectors to help diskdrake on
#- limit cases, include a cylinder + start of a eventually following
#- logical partition.
sub min_partition_size { $_[0]->cylinder_size() + 2*$_[0]{geom}{sectors} }


sub choose_encrypt_key {
    my ($in) = @_;

    my ($encrypt_key, $encrypt_key2);
    $in->ask_from_(
		       {
         title => N("Filesystem encryption key"), 
	 messages => N("Choose your filesystem encryption key"),
	 callbacks => { 
	     complete => sub {
		 length $encrypt_key < 20 and $in->ask_warn('', N("This encryption key is too simple (must be at least %d characters long)", 20)), return (1,0);
		 $encrypt_key eq $encrypt_key2 or $in->ask_warn('', [ N("The encryption keys do not match"), N("Please try again") ]), return (1,1);
		 return 0
        } } }, [
{ label => N("Encryption key"), val => \$encrypt_key,  hidden => 1 },
{ label => N("Encryption key (again)"), val => \$encrypt_key2, hidden => 1 },
    ]) && $encrypt_key;
}
The following package has to be removed for others to be upgraded:" msgstr "O seguinte pacote precisa ser removido para outros serem atualizados:" #: ../Rpmdrake/pkg.pm:566 #, c-format msgid "The following packages have to be removed for others to be upgraded:" msgstr "" "Os seguintes pacotes precisam ser removidos para outros serem atualizados:" #: ../Rpmdrake/pkg.pm:566 #, c-format msgid "Is it ok to continue?" msgstr "Deseja continuar?" #: ../Rpmdrake/pkg.pm:589 #, c-format msgid "Preparing packages installation..." msgstr "Preparando pacotes para instalação..." #: ../Rpmdrake/pkg.pm:589 #, fuzzy, c-format msgid "Preparing package installation transaction..." msgstr "Preparando pacotes para instalação..." #: ../Rpmdrake/pkg.pm:592 #, c-format msgid "Installing package `%s' (%s/%s)..." msgstr "Instalando pacote `%s' (%s/%s)..." #: ../Rpmdrake/pkg.pm:593 #, c-format msgid "Total: %s/%s" msgstr "Total: %s/%s" #: ../Rpmdrake/pkg.pm:621 ../Rpmdrake/pkg.pm:708 ../rpmdrake.pm:741 #: ../rpmdrake.pm:822 ../rpmdrake.pm:846 #, c-format msgid "Error" msgstr "Erro" #: ../Rpmdrake/pkg.pm:626 ../Rpmdrake/pkg.pm:631 #, c-format msgid "Downloading package `%s'..." msgstr "Baixando o pacote `%s'..." #: ../Rpmdrake/pkg.pm:633 #, c-format msgid " %s%% of %s completed, ETA = %s, speed = %s" msgstr " %s%% de %s completados, ETA = %s, velocidade = %s" #: ../Rpmdrake/pkg.pm:634 #, c-format msgid " %s%% completed, speed = %s" msgstr " %s%% completados, velocidade = %s" #: ../Rpmdrake/pkg.pm:667 #, c-format msgid "Change medium" msgstr "Alterando mídia" #: ../Rpmdrake/pkg.pm:668 #, c-format msgid "Please insert the medium named \"%s\" on device [%s]" msgstr "Por favor insira a mídia com nome \"%s\" no drive [%s]" #: ../Rpmdrake/pkg.pm:672 #, c-format msgid "Verifying package signatures..." msgstr "Verificando assinatura dos pacotes..." #: ../Rpmdrake/pkg.pm:678 ../rpmdrake.pm:754 ../rpmdrake.pm:863 #, c-format msgid "Warning" msgstr "Aviso" #: ../Rpmdrake/pkg.pm:690 #, c-format msgid "" "Installation failed, some files are missing:\n" "%s\n" "\n" "You may want to update your media database." msgstr "" "Instalação falhou, alguns arquivos estão faltando.\n" "%s\n" "\n" "Você precisa atualizar a sua lista de mídias." #: ../Rpmdrake/pkg.pm:700 #, c-format msgid "%d installation transactions failed" msgstr "%d instalação falhou" #: ../Rpmdrake/pkg.pm:709 #, c-format msgid "Unrecoverable error: no package found for installation, sorry." msgstr "Erro: Nenhum pacote encontrado para instalação, desculpe." #: ../Rpmdrake/pkg.pm:718 #, 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 "" "A instalação foi concluída; Tudo foi instalado corretamente.\n" "\n" "Alguns arquivos de configuração foram criados como `.rpmnew' ou `.rpmsave',\n" "você poderá verificá-los agora para tomar eventuais ações:" #: ../Rpmdrake/pkg.pm:742 ../Rpmdrake/pkg.pm:758 #, c-format msgid "Please wait, removing packages..." msgstr "Aguarde, removendo pacotes..." #: ../Rpmdrake/pkg.pm:769 #, c-format msgid "Problem during removal" msgstr "Problema durante a remoção" # c-format #: ../Rpmdrake/pkg.pm:770 #, c-format msgid "" "There was a problem during the removal of packages:\n" "\n" "%s" msgstr "" "Houve um problema durante a remoção dos pacotes:\n" "\n" "%s" #: ../Rpmdrake/rpmnew.pm:78 #, c-format msgid "Inspecting %s" msgstr "Verificando %s" #: ../Rpmdrake/rpmnew.pm:102 #, c-format msgid "Changes:" msgstr "Mudanças:" #: ../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 "Remover .%s" #: ../Rpmdrake/rpmnew.pm:121 #, c-format msgid "Use .%s as main file" msgstr "Utilize .%s como arquivo principal" #: ../Rpmdrake/rpmnew.pm:125 #, c-format msgid "Do nothing" msgstr "Não fazer nada" #: ../Rpmdrake/rpmnew.pm:156 #, c-format msgid "Installation finished" msgstr "Instalação concluída" #: ../Rpmdrake/rpmnew.pm:171 #, c-format msgid "Inspect..." msgstr "Verificando..." #: ../Rpmdrake/rpmnew.pm:189 ../rpmdrake:68 ../rpmdrake:95 #, c-format msgid "Please wait, searching..." msgstr "Aguarde, procurando..." #: ../gurpmi.addmedia:84 #, c-format msgid "bad <url> (for local directory, the path must be absolute)" msgstr "" #: ../gurpmi.addmedia:89 #, c-format msgid "Unable to add medium, wrong or missing arguments" msgstr "Não é possível adicionar mídia, argumentos errados ou esquecidos" #: ../gurpmi.addmedia:103 #, 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 "" "Você está pronto para adicionar pacotes novos da mídia, '%s'.\n" "Isso significa que você poderá adicionar novos pacotes de software\n" "no seu sistema a partir dessa nova mídia." #: ../gurpmi.addmedia:106 #, 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 "" "Você está pronto para adicionar pacotes novos da mídia, '%s'.\n" "Isso significa que você poderá adicionar novos pacotes de software's\n" "no seu sistema a partir dessa nova mídia." #: ../gurpmi.addmedia:131 #, c-format msgid "Successfully added media %s." msgstr "Mídia '%s' adicionada com sucesso." #: ../gurpmi.addmedia:132 #, c-format msgid "Successfully added medium `%s'." msgstr "Mídia '%s' adicionada com sucesso." #: ../rpmdrake:57 ../rpmdrake:143 #, c-format msgid "Search results" msgstr "Resultados da busca" #: ../rpmdrake:57 #, c-format msgid "Search results (none)" msgstr "Resultados da busca (nenhum)" #: ../rpmdrake:100 #, c-format msgid "Stop" msgstr "Parar" #: ../rpmdrake:146 #, c-format msgid "Selected" msgstr "Selecionado" #: ../rpmdrake:146 #, c-format msgid "Not selected" msgstr "Não selecionado" #: ../rpmdrake:175 #, c-format msgid "Selected: %s / Free disk space: %s" msgstr "Selecionado: %s / Espaço disponível: %s" #: ../rpmdrake:176 #, c-format msgid "Selected size: %d MB" msgstr "Tamanho selecionado: %d MB" #: ../rpmdrake:239 #, c-format msgid "Installed" msgstr "Instalado" #: ../rpmdrake:239 #, c-format msgid "Non installed" msgstr "Não Instalado" #: ../rpmdrake:240 #, c-format msgid "%s choices" msgstr "%s escolhas" #: ../rpmdrake:240 #, c-format msgid "Mandriva Linux choices" msgstr "Recomendação do Mandriva Linux" #: ../rpmdrake:242 #, c-format msgid "All packages, alphabetical" msgstr "Todos os pacotes, alfabeticamente" #: ../rpmdrake:243 #, c-format msgid "All packages, by update availability" msgstr "Todos pacotes, por disponibilidade de atualização" #: ../rpmdrake:244 #, c-format msgid "All packages, by size" msgstr "Todos os pacotes, por tamanho" #: ../rpmdrake:245 #, c-format msgid "All packages, by selection state" msgstr "Todos os pacotes, por estado de seleção" #: ../rpmdrake:246 #, c-format msgid "Leaves only, sorted by install date" msgstr "Somente os existentes, classificado pela data de instalação" #: ../rpmdrake:247 #, c-format msgid "All packages, by group" msgstr "Todos os pacotes, por grupo" #: ../rpmdrake:249 #, c-format msgid "All updates" msgstr "Todas as atualizações." #: ../rpmdrake:249 #, c-format msgid "Security updates" msgstr "Atualizações de segurança" #: ../rpmdrake:249 #, c-format msgid "Bugfixes updates" msgstr "Atualizações para correção de erros" #: ../rpmdrake:249 #, c-format msgid "Normal updates" msgstr "Atualizações normais" #: ../rpmdrake:310 #, c-format msgid "in names" msgstr "nos nomes" #: ../rpmdrake:312 #, c-format msgid "in descriptions" msgstr "nas descrições" #: ../rpmdrake:314 #, c-format msgid "in file names" msgstr "nos arquivos" #: ../rpmdrake:344 ../rpmdrake:386 ../rpmdrake:390 ../rpmdrake:394 #: ../rpmdrake:433 #, c-format msgid "/_Options" msgstr "/_Opções" #: ../rpmdrake:344 #, c-format msgid "/_Auto solve dependancies" msgstr "" #: ../rpmdrake:347 ../rpmdrake:350 ../rpmdrake:361 ../rpmdrake:374 #: ../rpmdrake:383 #, c-format msgid "/_File" msgstr "/_Arquivo" #: ../rpmdrake:350 #, c-format msgid "/_Update media" msgstr "/_Atualizar mídia" #: ../rpmdrake:361 #, c-format msgid "/_Reset the selection" msgstr "/_Reiniciando a seleção" #: ../rpmdrake:374 #, c-format msgid "/Reload the _packages list" msgstr "/Recarregar a lista de _pacotes" #: ../rpmdrake:383 #, c-format msgid "/_Quit" msgstr "/_Encerrar" #: ../rpmdrake:383 #, c-format msgid "<control>Q" msgstr "<control>Q" #: ../rpmdrake:390 #, c-format msgid "/_Media Manager" msgstr "/_Gerenciador de Mídia" #: ../rpmdrake:394 ../rpmdrake:433 #, c-format msgid "/_Show automatically selected packages" msgstr "/Mostra automaticamente os pacotes _selecionados" #: ../rpmdrake:398 ../rpmdrake:399 ../rpmdrake:400 ../rpmdrake:401 #, c-format msgid "/_Help" msgstr "/_Ajuda" #: ../rpmdrake:399 #, c-format msgid "/_Report Bug" msgstr "/_Reportar Bug" #: ../rpmdrake:401 #, c-format msgid "/_About..." msgstr "/_Sobre..." #: ../rpmdrake:404 #, c-format msgid "Rpmdrake" msgstr "Rpmdrake" #: ../rpmdrake:406 #, c-format msgid "Copyright (C) %s by Mandriva" msgstr "Copyright (C) %s por Mandriva" #: ../rpmdrake:408 #, c-format msgid "Rpmdrake is Mandriva Linux package management tool." msgstr "Rpmdrake é a ferramente de gerenciamento de pacotes Mandriva Linux." #: ../rpmdrake:410 #, c-format msgid "Mandriva Linux" msgstr "Mandriva Linux" #. -PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>") #: ../rpmdrake:415 #, c-format msgid "_: Translator(s) name(s) & email(s)\n" msgstr "_: Nome(s) de tradutores & email(s)\n" #: ../rpmdrake:448 #, c-format msgid "Find:" msgstr "Localizar:" #: ../rpmdrake:457 #, c-format msgid "Search" msgstr "Procurar" #: ../rpmdrake:459 #, c-format msgid "Clear" msgstr "Limpar" #: ../rpmdrake:479 #, c-format msgid "Apply" msgstr "Aplicar" #: ../rpmdrake:499 #, c-format msgid "Quick Introduction" msgstr "Introdução Rápida" #: ../rpmdrake:500 #, c-format msgid "You can browse the packages through the categories tree on the left." msgstr "Você pode navegar pelos pacotes à esquerda, separados por categorias." #: ../rpmdrake:501 #, c-format msgid "" "You can view information about a package by clicking on it on the right list." msgstr "" "Você pode visualizar as informações sobre um pacote clicando nele na lista à " "direita." #: ../rpmdrake:502 #, c-format msgid "To install, update or remove a package, just click on its \"checkbox\"." msgstr "" "Para instalar, atualizar ou remover um pacote, apenas clique na respectiva " "caixa de seleção." #: ../rpmdrake.pm:106 #, c-format msgid "Software Update" msgstr "Gerenciador de Atualizações." #: ../rpmdrake.pm:106 #, c-format msgid "Mandriva Linux Update" msgstr "Mandriva Linux Update" #: ../rpmdrake.pm:133 #, c-format msgid "Please enter your credentials for accessing proxy\n" msgstr "Favor entrar com suas credenciais para acesso ao proxy\n" #: ../rpmdrake.pm:134 #, c-format msgid "User name:" msgstr "Nome do usuário:" #: ../rpmdrake.pm:182 #, c-format msgid "Software Packages Removal" msgstr "Remoção de Pacotes de Softwares" #: ../rpmdrake.pm:183 ../rpmdrake.pm:187 #, c-format msgid "Software Packages Update" msgstr "Atualização de Pacotes de Softwares" #: ../rpmdrake.pm:184 #, c-format msgid "Software Packages Installation" msgstr "Instalação de Pacotes de Software" #: ../rpmdrake.pm:228 #, c-format msgid "No" msgstr "Não" #: ../rpmdrake.pm:232 #, c-format msgid "Yes" msgstr "Sim" #: ../rpmdrake.pm:282 #, c-format msgid "Info..." msgstr "Informação..." #: ../rpmdrake.pm:405 #, c-format msgid "Austria" msgstr "Áustria" #: ../rpmdrake.pm:406 #, c-format msgid "Australia" msgstr "Austrália" #: ../rpmdrake.pm:407 #, c-format msgid "Belgium" msgstr "Bélgica" #: ../rpmdrake.pm:408 #, c-format msgid "Brazil" msgstr "Brasil" #: ../rpmdrake.pm:409 #, c-format msgid "Canada" msgstr "Canadá" #: ../rpmdrake.pm:410 #, c-format msgid "Switzerland" msgstr "Suíça" #: ../rpmdrake.pm:411 #, c-format msgid "Costa Rica" msgstr "Costa Rica" #: ../rpmdrake.pm:412 #, c-format msgid "Czech Republic" msgstr "República Checa" #: ../rpmdrake.pm:413 #, c-format msgid "Germany" msgstr "Alemanha" #: ../rpmdrake.pm:414 #, c-format msgid "Danmark" msgstr "Dinamarca" #: ../rpmdrake.pm:415 ../rpmdrake.pm:419 #, c-format msgid "Greece" msgstr "Grécia" #: ../rpmdrake.pm:416 #, c-format msgid "Spain" msgstr "Espanha" #: ../rpmdrake.pm:417 #, c-format msgid "Finland" msgstr "Finlândia" #: ../rpmdrake.pm:418 #, c-format msgid "France" msgstr "França" #: ../rpmdrake.pm:420 #, c-format msgid "Hungary" msgstr "Hungria" #: ../rpmdrake.pm:421 #, c-format msgid "Israel" msgstr "Israel" #: ../rpmdrake.pm:422 #, c-format msgid "Italy" msgstr "Itália" #: ../rpmdrake.pm:423 #, c-format msgid "Japan" msgstr "Japão" #: ../rpmdrake.pm:424 #, c-format msgid "Korea" msgstr "Coréia" #: ../rpmdrake.pm:425 #, c-format msgid "Netherlands" msgstr "Países baixos" #: ../rpmdrake.pm:426 #, c-format msgid "Norway" msgstr "Noruega" #: ../rpmdrake.pm:427 #, c-format msgid "Poland" msgstr "Polônia" #: ../rpmdrake.pm:428 #, c-format msgid "Portugal" msgstr "Portugal" #: ../rpmdrake.pm:429 #, c-format msgid "Russia" msgstr "Rússia" #: ../rpmdrake.pm:430 #, c-format msgid "Sweden" msgstr "Suécia" #: ../rpmdrake.pm:431 #, c-format msgid "Singapore" msgstr "Singapura" #: ../rpmdrake.pm:432 #, c-format msgid "Slovakia" msgstr "Eslováquia" #: ../rpmdrake.pm:433 #, c-format msgid "Taiwan" msgstr "Taiwan" #: ../rpmdrake.pm:434 #, c-format msgid "United Kingdom" msgstr "Reino Unido" #: ../rpmdrake.pm:435 #, c-format msgid "China" msgstr "China" #: ../rpmdrake.pm:436 ../rpmdrake.pm:437 ../rpmdrake.pm:438 ../rpmdrake.pm:439 #, c-format msgid "United States" msgstr "Estados Unidos" #: ../rpmdrake.pm:537 #, 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 "" "Será necessário contatar o site da Mandriva para pegar a lista de " "servidores.\n" "Certifique-se de que está conectado à Internet.\n" "\n" "Deseja continuar?" #: ../rpmdrake.pm:541 #, c-format msgid "" "I need to contact the Mandriva website to get the mirror list.\n" "Please check that your network is currently running.\n" "\n" "Is it ok to continue?" msgstr "" "Eu preciso contatar o site da Mandriva para pegar a lista de servidores.\n" "Certifique-se de que está conectado à Internet.\n" "\n" "Deseja continuar?" #: ../rpmdrake.pm:547 ../rpmdrake.pm:585 #, c-format msgid "Mirror choice" msgstr "Escolha de mirror" #: ../rpmdrake.pm:550 #, c-format msgid "Please wait, downloading mirror addresses." msgstr "Aguarde, fazendo download da lista de servidores." #: ../rpmdrake.pm:551 #, c-format msgid "Please wait, downloading mirror addresses from the Mandriva website." msgstr "Aguarde, fazendo download da lista de servidores do site da Mandriva." #: ../rpmdrake.pm:558 #, c-format msgid "Error during download" msgstr "Erro durante o download" #: ../rpmdrake.pm:560 #, 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 "" "Ocorreu um erro durante o download da lista de servidores:\n" "\n" "%s\n" "A sua conexão com a internet ou o site da Mandriva, podem estar " "indisponíveis.\n" "Por favor tente mais tarde." #: ../rpmdrake.pm:565 #, 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 "" "Ocorreu um erro durante o download da lista de servidores:\n" "\n" "%s\n" "A sua conexão com a internet ou o site da Mandriva, podem estar " "indisponíveis no momento.\n" "Por favor tente mais tarde." #: ../rpmdrake.pm:575 #, c-format msgid "No mirror" msgstr "Nenhum servidor" #: ../rpmdrake.pm:577 #, c-format msgid "I can't find any suitable mirror." msgstr "Não foi possível encontrar o espelho" #: ../rpmdrake.pm:578 #, 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ão encontrei um servidor apropriado.\n" "\n" "Existem várias razões para este problema, a mais freqüente é\n" "que a arquitetura do processador do seu computador não é suportada\n" "pelas Atualizaçães Oficiais do Mandriva Linux." #: ../rpmdrake.pm:597 #, c-format msgid "Please choose the desired mirror." msgstr "Escolha o servidor desejado." #: ../rpmdrake.pm:650 #, c-format msgid "Copying file for medium `%s'..." msgstr "Copiando arquivo da mídia '%s' ... " #: ../rpmdrake.pm:653 #, c-format msgid "Examining file of medium `%s'..." msgstr "Examinando arquivo da mídia '%s'..." #: ../rpmdrake.pm:656 #, c-format msgid "Examining remote file of medium `%s'..." msgstr "Examinando arquivo remoto da mídia '%s'..." #: ../rpmdrake.pm:660 #, c-format msgid " done." msgstr " pronto." #: ../rpmdrake.pm:664 #, c-format msgid " failed!" msgstr " falhou!" #. -PO: We're downloading the said file from the said medium #: ../rpmdrake.pm:668 #, c-format msgid "%s from medium %s" msgstr "%s da mídia %s" #: ../rpmdrake.pm:672 #, c-format msgid "Starting download of `%s'..." msgstr "Iniciando download de `%s'..." #: ../rpmdrake.pm:676 #, c-format msgid "Download of `%s', time to go:%s, speed:%s" msgstr "Download de '%s', tempo para terminar: '%s', velocidade: '%s'" #: ../rpmdrake.pm:679 #, c-format msgid "Download of `%s', speed:%s" msgstr "Download de '%s', velocidade: %s" #: ../rpmdrake.pm:690 #, c-format msgid "Please wait, updating media..." msgstr "Aguarde, atualizando fonte..." #: ../rpmdrake.pm:717 #, c-format msgid "Error retrieving packages" msgstr "Erro ao recuperar pacotes" #: ../rpmdrake.pm:718 #, 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 "" "É impossível recuperar a lista de novos pacotes da mídia\n" "`%s'. Uma mídia deste update está má configurada, neste caso\n" "você deve usar o gerenciador de mídias de software e removê-lo aí então re-" "adicioná-lo em ordem\n" "para reconfigurá-la, ou você deve tentar novamente\n" "depois." #: ../rpmdrake.pm:749 #, c-format msgid "Update media" msgstr "Atualizar mídia" #: ../rpmdrake.pm:754 #, c-format msgid "" "No active medium found. You must enable some media to be able to update them." msgstr "" "Nenhuma mídia ativa encontrada. Você deve habilitar alguma mídia para poder " "atualizá-la." #: ../rpmdrake.pm:761 #, c-format msgid "Select the media you wish to update:" msgstr "Escolha a(s) mídia(s) que deseja atualizar:" #: ../rpmdrake.pm:800 #, c-format msgid "" "Unable to update medium; it will be automatically disabled.\n" "\n" "Errors:\n" "%s" msgstr "" "Incapaz de atualizar a mídia; será automaticamente desabilitada.\n" "\n" "Erros: \n" "%s" #: ../rpmdrake.pm:823 ../rpmdrake.pm:834 #, c-format msgid "" "Unable to add medium, errors reported:\n" "\n" "%s" msgstr "" "Não é possível adicionar mídia, erros reportados:\n" "\n" "%s" #: ../rpmdrake.pm:846 #, c-format msgid "Unable to create medium." msgstr "Incapaz de criar a mídia." #: ../rpmdrake.pm:851 #, c-format msgid "Failure when adding medium" msgstr "Falhou enquanto adicionava mídia" # c-format #: ../rpmdrake.pm:852 #, c-format msgid "" "There was a problem adding medium:\n" "\n" "%s" msgstr "" "Houve um problema ao adicionar a mídia:\n" "\n" "%s" #: ../rpmdrake.pm:865 #, 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 "" "A mídia `%s ', usada para atualizações, não é igual a versão do %s que você " "está usando no momento (%s).\n" " Ela será desativada." #: ../rpmdrake.pm:868 #, 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 "" "A mídia `%s ', usada para atualizações, não é igual a versão do Mandriva " "Linux que você está usando no momento (%s).\n" " ela será desativada." #: ../rpmdrake.pm:885 #, c-format msgid "Help launched in background" msgstr "Ajuda iniciada em segundo plano" #: ../rpmdrake.pm:886 #, c-format msgid "" "The help window has been started, it should appear shortly on your desktop." msgstr "A janela de ajuda foi iniciada, deve aparecer logo em seu desktop." #: ../grpmi/curl_download/curl_download.xs:86 msgid "Download directory does not exist" msgstr "Diretório de download não existe" #: ../grpmi/curl_download/curl_download.xs:89 #: ../grpmi/curl_download/curl_download.xs:213 msgid "Out of memory\n" msgstr "Sem memória\n" #: ../grpmi/curl_download/curl_download.xs:102 msgid "Could not open output file in append mode" msgstr "Não foi possível abrir o arquivo de saída em modo de escrita" #: ../grpmi/curl_download/curl_download.xs:133 msgid "Unsupported protocol\n" msgstr "Protocolo não suportado\n" #: ../grpmi/curl_download/curl_download.xs:136 msgid "Failed init\n" msgstr "Falha na inicialização\n" #: ../grpmi/curl_download/curl_download.xs:139 msgid "Bad URL format\n" msgstr "Formato errado na URL\n" # User format? #: ../grpmi/curl_download/curl_download.xs:142 msgid "Bad user format in URL\n" msgstr "Formato errado do usuário na URL\n" #: ../grpmi/curl_download/curl_download.xs:145 msgid "Couldn't resolve proxy\n" msgstr "Não foi possível resolver o proxy\n" #: ../grpmi/curl_download/curl_download.xs:148 msgid "Couldn't resolve host\n" msgstr "Não foi possível resolver o host\n" #: ../grpmi/curl_download/curl_download.xs:151 msgid "Couldn't connect\n" msgstr "Não foi possível conectar\n" #: ../grpmi/curl_download/curl_download.xs:154 msgid "FTP unexpected server reply\n" msgstr "FTP resposta estranha do servidor\n" #: ../grpmi/curl_download/curl_download.xs:157 msgid "FTP access denied\n" msgstr "FTP - acesso negado\n" #: ../grpmi/curl_download/curl_download.xs:160 msgid "FTP user password incorrect\n" msgstr "FTP - senha do usuário incorreta\n" #: ../grpmi/curl_download/curl_download.xs:163 msgid "FTP unexpected PASS reply\n" msgstr "FTP - resposta inesperada ao comando PASS\n" #: ../grpmi/curl_download/curl_download.xs:166 msgid "FTP unexpected USER reply\n" msgstr "FTP - resposta inesperada ao comando USER\n" #: ../grpmi/curl_download/curl_download.xs:169 msgid "FTP unexpected PASV reply\n" msgstr "FTP - resposta inesperada ao comando PASV\n" #: ../grpmi/curl_download/curl_download.xs:172 msgid "FTP unexpected 227 format\n" msgstr "FTP - formato 227 inesperado\n" #: ../grpmi/curl_download/curl_download.xs:175 msgid "FTP can't get host\n" msgstr "FTP - não foi possível achar o host\n" #: ../grpmi/curl_download/curl_download.xs:178 msgid "FTP can't reconnect\n" msgstr "FTP - não foi possível reconectar\n" #: ../grpmi/curl_download/curl_download.xs:181 msgid "FTP couldn't set binary\n" msgstr "FTP - não foi possível usar modo binário\n" #: ../grpmi/curl_download/curl_download.xs:184 msgid "Partial file\n" msgstr "Arquivo parcial\n" #: ../grpmi/curl_download/curl_download.xs:187 msgid "FTP couldn't RETR file\n" msgstr "FTP não foi possível RETR no arquivo\n" #: ../grpmi/curl_download/curl_download.xs:190 msgid "FTP write error\n" msgstr "FTP - erro de gravação\n" #: ../grpmi/curl_download/curl_download.xs:195 msgid "FTP quote error\n" msgstr "FTP - erro de quota\n" #: ../grpmi/curl_download/curl_download.xs:198 msgid "HTTP not found\n" msgstr "HTTP não achado\n" #: ../grpmi/curl_download/curl_download.xs:201 msgid "Write error\n" msgstr "Erro de escrita\n" #: ../grpmi/curl_download/curl_download.xs:204 msgid "User name illegally specified\n" msgstr "Nome do usuário ilegalmente especificado\n" #: ../grpmi/curl_download/curl_download.xs:207 msgid "FTP couldn't STOR file\n" msgstr "FTP - não foi possível STOR no arquivo\n" #: ../grpmi/curl_download/curl_download.xs:210 msgid "Read error\n" msgstr "Erro de leitura\n" # translation need reworking #: ../grpmi/curl_download/curl_download.xs:216 msgid "Time out\n" msgstr "Time-out\n" #: ../grpmi/curl_download/curl_download.xs:219 msgid "FTP couldn't set ASCII\n" msgstr "FTP - não foi possível usar modo ASCII\n" #: ../grpmi/curl_download/curl_download.xs:222 msgid "FTP PORT failed\n" msgstr "FTP - comando PORT falhou\n" #: ../grpmi/curl_download/curl_download.xs:225 msgid "FTP couldn't use REST\n" msgstr "FTP - não foi possível usar REST\n" #: ../grpmi/curl_download/curl_download.xs:228 msgid "FTP couldn't get size\n" msgstr "FTP - não foi possível achar o tamanho\n" #: ../grpmi/curl_download/curl_download.xs:231 msgid "HTTP range error\n" msgstr "HTTP - erro no comando RANGE\n" #: ../grpmi/curl_download/curl_download.xs:234 msgid "HTTP POST error\n" msgstr "HTTP - erro no comando POST\n" #: ../grpmi/curl_download/curl_download.xs:237 msgid "SSL connect error\n" msgstr "SSL - erro de conexão\n" #: ../grpmi/curl_download/curl_download.xs:240 msgid "FTP bad download resume\n" msgstr "FTP não foi possível continuar o download\n" #: ../grpmi/curl_download/curl_download.xs:243 msgid "File couldn't read file\n" msgstr "Não foi possível ler o arquivo\n" # translation not 100% accurate #: ../grpmi/curl_download/curl_download.xs:246 msgid "LDAP cannot bind\n" msgstr "Erro ao conectar no LDAP\n" #: ../grpmi/curl_download/curl_download.xs:249 msgid "LDAP search failed\n" msgstr "LDAP falha na procura\n" #: ../grpmi/curl_download/curl_download.xs:252 msgid "Library not found\n" msgstr "Biblioteca não encontrada\n" #: ../grpmi/curl_download/curl_download.xs:255 msgid "Function not found\n" msgstr "Função não encontrada\n" # not completely translated #: ../grpmi/curl_download/curl_download.xs:258 msgid "Aborted by callback\n" msgstr "Abortada por callback\n" #: ../grpmi/curl_download/curl_download.xs:261 msgid "Bad function argument\n" msgstr "Argumento errado da função\n" #: ../grpmi/curl_download/curl_download.xs:264 msgid "Bad calling order\n" msgstr "Erro na ordem de chamada\n" #: ../grpmi/curl_download/curl_download.xs:267 msgid "HTTP Interface operation failed\n" msgstr "Operação com interface HTTP falhou\n" #: ../grpmi/curl_download/curl_download.xs:270 msgid "my_getpass() returns fail\n" msgstr "my_getpass() retornou falha\n" #: ../grpmi/curl_download/curl_download.xs:273 msgid "catch endless re-direct loops\n" msgstr "o prendedor infinito redireciona novos laços\n" #: ../grpmi/curl_download/curl_download.xs:276 msgid "User specified an unknown option\n" msgstr "Opção especificada desconhecida\n" #: ../grpmi/curl_download/curl_download.xs:279 msgid "Malformed telnet option\n" msgstr "Opção do telnet mal-formada\n" #: ../grpmi/curl_download/curl_download.xs:282 msgid "removed after 7.7.3\n" msgstr "removido após 7.7.3\n" #: ../grpmi/curl_download/curl_download.xs:285 msgid "peer's certificate wasn't ok\n" msgstr "certificado do par não foi aprovado\n" #: ../grpmi/curl_download/curl_download.xs:288 msgid "when this is a specific error\n" msgstr "quando este for um erro específico\n" #: ../grpmi/curl_download/curl_download.xs:291 msgid "SSL crypto engine not found\n" msgstr "Engine de criptografia SSL não encontrada\n" #: ../grpmi/curl_download/curl_download.xs:294 msgid "can not set SSL crypto engine as default\n" msgstr "Incapaz de colocar a engine de criptografia do SSL como padrão\n" #: ../grpmi/curl_download/curl_download.xs:297 msgid "failed sending network data\n" msgstr "Falhou enviando dados na rede\n" #: ../grpmi/curl_download/curl_download.xs:300 msgid "failure in receiving network data\n" msgstr "Falhou recebendo dados da rede\n" #: ../grpmi/curl_download/curl_download.xs:303 msgid "share is in use\n" msgstr "compartilhamento estã em uso\n" #: ../grpmi/curl_download/curl_download.xs:306 msgid "problem with the local certificate\n" msgstr "problemas com o certificado local\n" #: ../grpmi/curl_download/curl_download.xs:309 msgid "couldn't use specified cipher\n" msgstr "não podo usar a cifra especificada\n" #: ../grpmi/curl_download/curl_download.xs:312 msgid "problem with the CA cert (path?)\n" msgstr "problemas com o certificado CA (caminho?)\n" #: ../grpmi/curl_download/curl_download.xs:315 msgid "Unrecognized transfer encoding\n" msgstr "Codificação de transferência desconhecida\n" #: ../grpmi/curl_download/curl_download.xs:320 #, c-format msgid "Unknown error code %d\n" msgstr "Código de erro desconhecido %d\n" #: data/rpmdrake.desktop.in.h:1 msgid "Install Software" msgstr "Instalar software" #: data/rpmdrake-remove.desktop.in.h:1 msgid "Remove Software" msgstr "Remover software" #: data/rpmdrake-sources.desktop.in.h:1 msgid "Software Media Manager" msgstr "Gerenciador de Mídia de Software" #~ msgid "" #~ "The following packages have bad signatures:\n" #~ "\n" #~ "%s\n" #~ "\n" #~ "Do you want to continue installation?" #~ msgstr "" #~ "Os seguintes pacotes possuem assinaturas inválidas:\n" #~ "\n" #~ "%s\n" #~ "\n" #~ "Deseja continuar com a instalação?" #~ msgid "installing %s from %s" #~ msgstr "instalando %s a partir de %s" #~ msgid "installing %s" #~ msgstr "instalando %s" #~ msgid "removing %s" #~ msgstr "removendo %s" #~ msgid "Installation failed:" #~ msgstr "A Instalação falhou:" #~ msgid "Try installation without checking dependencies? (y/N) " #~ msgstr "Tentar instalar sem checar as dependências? (s/N) " #~ msgid "Try harder to install (--force)? (y/N) " #~ msgstr "Forçar instalação (--force)? (s/N) " #~ msgid "Preparing..." #~ msgstr "Preparando..." #~ msgid "Message Passing" #~ msgstr "Mensagem Passou " #~ msgid "Queueing Services" #~ msgstr "Enfileirar Serviços" #~ msgid "Deploiement" #~ msgstr "Desenvolvimento" #~ msgid "Deployment" #~ msgstr "Desenvolvimento" #~ msgid "Add a key..." #~ msgstr "Adicionar chave..." #~ msgid "Remove key" #~ msgstr "Remover chave" #, fuzzy #~ msgid " --version output version information and exit" #~ msgstr " --root força rodar como root" #~ msgid "unable to access rpm file [%s]" #~ msgstr "incapaz de acessar o arquivo rpm [%s]" #~ msgid "Please wait, reading packages database..." #~ msgstr "Aguarde, lendo banco de dados de pacotes..." #~ msgid "XFree86" #~ msgstr "XFree86" #~ msgid "No package found for installation." #~ msgstr "Nenhum pacote encontrado para instalação." #~ msgid "All packages, by medium repository" #~ msgstr "Todos os pacotes, por repositório de mídia" #~ msgid "Maximum information" #~ msgstr "Informação máxima" #~ msgid "everything was installed correctly" #~ msgstr "tudo foi instalado corretamente" #~ msgid "Update medium" #~ msgstr "Atualizar mídia" #~ msgid "Regenerate hdlist" #~ msgstr "Hdlist regenerado" #~ msgid "Please wait, generating hdlist..." #~ msgstr "Aguarde, gerando hdlist..." #~ msgid "Everything installed successfully" #~ msgstr "Tudo foi instalado com sucesso"