summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/hd_gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm46
1 files changed, 35 insertions, 11 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index 85e600607..a54fa6d74 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -4,6 +4,7 @@ use diagnostics;
use strict;
use common;
+use mygtk2 qw(gtknew);
use ugtk2 qw(:helpers :wrappers :create);
use partition_table;
use fs::type;
@@ -43,7 +44,7 @@ notebook current_kind[]
=cut
sub main {
- ($in, $all_hds, my $nowizard, $do_force_reload, my $interactive_help) = @_;
+ ($in, $all_hds, $do_force_reload) = @_;
@notebook = ();
@@ -74,7 +75,7 @@ sub main {
$lock = 1;
partition_table::assign_device_numbers($_) foreach fs::get::hds($all_hds);
create_automatic_notebooks($notebook_widget);
- general_action_box($general_action_box, $nowizard, $interactive_help);
+ general_action_box($general_action_box);
per_kind_action_box($per_kind_action_box, $current_kind);
current_kind_changed($in, $current_kind);
current_entry_changed($current_kind, $current_entry);
@@ -89,7 +90,8 @@ sub main {
});
$w->sync;
$done_button->grab_focus;
- $in->ask_okcancel(N("Read carefully!"), N("Please make a backup of your data first"), 1) or return
+ $in->ask_from_list_(N("Read carefully!"), N("Please make a backup of your data first"),
+ [ N_("Exit"), N_("Continue") ], N_("Continue")) eq N_("Continue") or return
if $::isStandalone;
$in->ask_warn('',
N("If you plan to use aboot, be careful to leave a free space (2048 sectors is enough)
@@ -119,7 +121,7 @@ sub try_ {
$current_entry = '' if !diskdrake::interactive::is_part_existing($current_entry, $all_hds);
$update_all->();
- Gtk2->main_quit if $v && member($name, 'Done', 'Wizard');
+ Gtk2->main_quit if $v && member($name, 'Done');
}
################################################################################
@@ -143,13 +145,23 @@ sub add_kind2notebook {
$kind;
}
+sub interactive_help {
+ my ($in) = @_;
+ if ($::isInstall) {
+ $in->interactive_help_sub_display_id('partition_with_diskdrake');
+ } else {
+ require run_program;
+ run_program::raw({ detach => 1 }, 'drakhelp', '--id', 'diskdrake');
+ }
+}
+
sub general_action_box {
- my ($box, $nowizard, $interactive_help) = @_;
+ my ($box) = @_;
$_->destroy foreach $box->get_children;
- gtkadd($box, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => $interactive_help)) if $interactive_help;
+ gtkadd($box, gtksignal_connect(Gtk2::Button->new(N("Help")), clicked => \&interactive_help));
- my @actions = (if_($::isInstall && !$nowizard, N_("Wizard")),
+ my @actions = (
diskdrake::interactive::general_possible_actions($in, $all_hds),
N_("Done"));
foreach my $s (@actions) {
@@ -202,7 +214,9 @@ sub per_entry_info_box {
} elsif ($kind->{type} =~ /hd|lvm/) {
$info = diskdrake::interactive::format_hd_info($kind->{val});
}
- gtkpack($box, gtkadd(Gtk2::Frame->new(N("Details")), gtkset_justify(Gtk2::Label->new($info), 'left')));
+ gtkpack($box, gtkadd(gtkcreate_frame(N("Details")),
+ gtknew('HBox', border_width => 5, children_loose => [
+ gtkset_alignment(gtkset_justify(Gtk2::Label->new($info), 'left'), 0, 0) ])));
}
sub current_kind_changed {
@@ -274,7 +288,9 @@ sub create_buttons4partitions {
};
foreach my $entry (@parts) {
- my $w = Gtk2::ToggleButton->new_with_label($entry->{mntpoint} || '') or die '';
+ my $info = $entry->{mntpoint};
+ $info .= "\n" . ($entry->{size} ? formatXiB($entry->{size}, 512) : N("Unknown")) if $info;
+ my $w = Gtk2::ToggleButton->new_with_label($info) or internal_error('new_with_label');
$w->signal_connect(clicked => sub {
$current_button != $w or return;
current_entry_changed($kind, $entry);
@@ -354,9 +370,17 @@ sub createOrChangeType {
{ pt_type => 0, start => 1, size => $hd->{totalsectors} - 1 };
$part or return;
if ($fs_type eq 'other') {
- $in->ask_warn('', N("Use ``%s'' instead", isEmpty($part) ? N("Create") : N("Type")));
+ if (isEmpty($part)) {
+ try('Create', $hd, $part);
+ } else {
+ try('Type', $hd, $part);
+ }
} elsif (!$fs_type) {
- $in->ask_warn('', N("Use ``%s'' instead", N("Delete"))) if !isEmpty($part);
+ if (isEmpty($part)) {
+ $in->ask_warn(N("Warning"), N("This partition is already empty"));
+ } else {
+ try('Delete', $hd, $part);
+ }
} elsif (isEmpty($part)) {
fs::type::set_fs_type($part, $fs_type);
diskdrake::interactive::Create($in, $hd, $part, $all_hds);
diff/perl-install/share/po/eo.po?h=15.7&id=361ef02945723935543279fc57053a157d903c79'>perl-install/share/po/eo.po6
-rw-r--r--perl-install/share/po/es.po6
-rw-r--r--perl-install/share/po/et.po6
-rw-r--r--perl-install/share/po/eu.po6
-rw-r--r--perl-install/share/po/fa.po6
-rw-r--r--perl-install/share/po/fi.po6
-rw-r--r--perl-install/share/po/fr.po6
-rw-r--r--perl-install/share/po/fur.po6
-rw-r--r--perl-install/share/po/ga.po6
-rw-r--r--perl-install/share/po/gl.po6
-rw-r--r--perl-install/share/po/he.po6
-rw-r--r--perl-install/share/po/hi.po6
-rw-r--r--perl-install/share/po/hr.po6
-rw-r--r--perl-install/share/po/hu.po6
-rw-r--r--perl-install/share/po/id.po6
-rw-r--r--perl-install/share/po/is.po6
-rw-r--r--perl-install/share/po/it.po6
-rw-r--r--perl-install/share/po/ja.po6
-rw-r--r--perl-install/share/po/ko.po6
-rw-r--r--perl-install/share/po/ky.po6
-rw-r--r--perl-install/share/po/libDrakX.pot8
-rw-r--r--perl-install/share/po/lt.po6
-rw-r--r--perl-install/share/po/ltg.po6
-rw-r--r--perl-install/share/po/lv.po6
-rw-r--r--perl-install/share/po/mk.po6
-rw-r--r--perl-install/share/po/mn.po6
-rw-r--r--perl-install/share/po/ms.po6
-rw-r--r--perl-install/share/po/mt.po6
-rw-r--r--perl-install/share/po/nb.po6
-rw-r--r--perl-install/share/po/nl.po6
-rw-r--r--perl-install/share/po/nn.po6
-rw-r--r--perl-install/share/po/pa_IN.po6
-rw-r--r--perl-install/share/po/pl.po6
-rw-r--r--perl-install/share/po/pt.po6
-rw-r--r--perl-install/share/po/pt_BR.po6
-rw-r--r--perl-install/share/po/ro.po6
-rw-r--r--perl-install/share/po/ru.po6
-rw-r--r--perl-install/share/po/sc.po6
-rw-r--r--perl-install/share/po/sk.po6
-rw-r--r--perl-install/share/po/sl.po6
-rw-r--r--perl-install/share/po/sq.po6
-rw-r--r--perl-install/share/po/sr.po6
-rw-r--r--perl-install/share/po/sr@Latn.po6
-rw-r--r--perl-install/share/po/sv.po6
-rw-r--r--perl-install/share/po/ta.po6
-rw-r--r--perl-install/share/po/tg.po6
-rw-r--r--perl-install/share/po/th.po6
-rw-r--r--perl-install/share/po/tl.po6
-rw-r--r--perl-install/share/po/tr.po6
-rw-r--r--perl-install/share/po/uk.po6
-rw-r--r--perl-install/share/po/uz.po6
-rw-r--r--perl-install/share/po/uz@cyrillic.po6
-rw-r--r--perl-install/share/po/vi.po6
-rw-r--r--perl-install/share/po/wa.po6
-rw-r--r--perl-install/share/po/zh_CN.po6
-rw-r--r--perl-install/share/po/zh_TW.po6
71 files changed, 214 insertions, 214 deletions
diff --git a/perl-install/share/po/af.po b/perl-install/share/po/af.po
index fa69ff103..83a5bb4f2 100644
--- a/perl-install/share/po/af.po
+++ b/perl-install/share/po/af.po
@@ -2803,7 +2803,7 @@ msgstr "Daar is alreeds 'n partisie met hegpunt %s\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"U het 'n sagteware RAID-partisie as wortel (/).\n"
"Geen herlaaistelsel sal dit kan hanteer sonder 'n /boot partisie nie.\n"
@@ -2839,7 +2839,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"U het 'n sagteware RAID-partisie as wortel (/).\n"
"Geen herlaaistelsel sal dit kan hanteer sonder 'n /boot partisie nie.\n"
@@ -2863,7 +2863,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"U het 'n sagteware RAID-partisie as wortel (/).\n"
"Geen herlaaistelsel sal dit kan hanteer sonder 'n /boot partisie nie.\n"
diff --git a/perl-install/share/po/am.po b/perl-install/share/po/am.po
index 052efde3a..1587c7816 100644
--- a/perl-install/share/po/am.po
+++ b/perl-install/share/po/am.po
@@ -2680,7 +2680,7 @@ msgstr ""
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
#: fsedit.pm:440
@@ -2707,7 +2707,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
#: fsedit.pm:465 fsedit.pm:483
@@ -2728,7 +2728,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
#: fsedit.pm:475 fsedit.pm:477
diff --git a/perl-install/share/po/ar.po b/perl-install/share/po/ar.po
index 799adf78d..b74f550f2 100644
--- a/perl-install/share/po/ar.po
+++ b/perl-install/share/po/ar.po
@@ -2805,7 +2805,7 @@ msgstr "هناك تجزيء مع مكان التركيب %s مسبقاً\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"لقد اخترت تجزئة RAID برمجية كتجزيء جذري (/).\n"
"لا يستطيع أي محمّل إقلاع التعامل مع ذلك بدون تجزيء /boot.\n"
@@ -2841,7 +2841,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"لقد اخترت تجزئة RAID برمجية كتجزيء جذري (/).\n"
"لا يستطيع أي محمّل إقلاع التعامل مع ذلك بدون تجزيء /boot.\n"
@@ -2865,7 +2865,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"لقد اخترت تجزيء كتلة منطقيّة LVM كدليل جزر (/).\n"
"لا يستطيع محمّل الإقلاع التعامل مع ذلك بدون تجزيء /boot.\n"
diff --git a/perl-install/share/po/az.po b/perl-install/share/po/az.po
index 73ae252ec..43ced892e 100644
--- a/perl-install/share/po/az.po
+++ b/perl-install/share/po/az.po
@@ -2809,7 +2809,7 @@ msgstr "Onsuz da bağlama nöqtəsi %s olan bölmə mövcuddur\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Bir proqram tə'minatlı RAİD bölməsini kök cərgəsi (/) olaraq tə'yin\n"
"etdiniz. /boot bölməsi olmadan heç bir açılış yükləyicisi bunu aça bilməz.\n"
@@ -2845,7 +2845,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Bir proqram tə'minatlı RAİD bölməsini kök cərgəsi (/) olaraq tə'yin\n"
"etdiniz. /boot bölməsi olmadan heç bir açılış yükləyicisi bunu aça bilməz.\n"
@@ -2870,7 +2870,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"Bir proqram tə'minatlı RAİD bölməsini kök cərgəsi (/) olaraq tə'yin\n"
"etdiniz. /boot bölməsi olmadan heç bir açılış yükləyicisi bunu aça bilməz.\n"
diff --git a/perl-install/share/po/be.po b/perl-install/share/po/be.po
index 29f94ac18..35b960899 100644
--- a/perl-install/share/po/be.po
+++ b/perl-install/share/po/be.po
@@ -2704,7 +2704,7 @@ msgstr "Ужо ёсць раздзел з пунктам манціраванн
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
#: fsedit.pm:440
@@ -2731,7 +2731,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
#: fsedit.pm:465 fsedit.pm:483
@@ -2752,7 +2752,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
#: fsedit.pm:475 fsedit.pm:477
diff --git a/perl-install/share/po/bg.po b/perl-install/share/po/bg.po
index 449afc3fb..dbccc7885 100644
--- a/perl-install/share/po/bg.po
+++ b/perl-install/share/po/bg.po
@@ -2837,7 +2837,7 @@ msgstr "Вече има дял монтиран на това място %s\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Маркирали сте софтуерен RAID дял като root (/).\n"
"Няма зареждаща програма, която да може да се справи с него без /boot дял.\n"
@@ -2873,7 +2873,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Маркирали сте софтуерен RAID дял като root (/).\n"
"Няма зареждаща програма, която да може да се справи с него без /boot дял.\n"
@@ -2900,7 +2900,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"Маркирали сте софтуерен RAID дял като root (/).\n"
"Няма зареждаща програма, която да може да се справи с него без /boot дял.\n"
diff --git a/perl-install/share/po/bn.po b/perl-install/share/po/bn.po
index 0657a674f..011f8ecb3 100644
--- a/perl-install/share/po/bn.po
+++ b/perl-install/share/po/bn.po
@@ -2821,7 +2821,7 @@ msgstr "এই পার্টিশনটি আগে থেকেই %s ম
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"আপনি একটি সফ্টওয়্যার RAID পার্টিশনকে রুট (/) হিসেবে নির্বাচন করেছেন।\n"
"/boot পার্টিশন ছাড়া কোন বুটলোডার এটা হেন্ডেল করতে পারবেনা।\n"
@@ -2857,7 +2857,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"আপনি একটি সফ্টওয়্যার RAID পার্টিশনকে রুট (/) হিসেবে নির্বাচন করেছেন।\n"
"/boot পার্টিশন ছাড়া কোন বুটলোডার এটা হেন্ডেল করতে পারবেনা।\n"
@@ -2881,7 +2881,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"আপনি একটি সফ্টওয়্যার LVM লজিকাল ভলিউমকে রুট (/) হিসেবে নির্বাচন করেছেন।\n"
"/boot পার্টিশন ছাড়া কোন বুটলোডার এটা হেন্ডেল করতে পারবেনা।\n"
diff --git a/perl-install/share/po/br.po b/perl-install/share/po/br.po
index 54346524b..8270cc969 100644
--- a/perl-install/share/po/br.po
+++ b/perl-install/share/po/br.po
@@ -2748,7 +2748,7 @@ msgstr "Bez' ez eus ur parzhadur e boent marc'hañ %s endeo\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Choizh o'ch eus oc'h implij RAID evit gwrizienn (/).\n"
"N'eus ket moaien da loc'hañ hep ur barzhadur /boot.\n"
@@ -2784,7 +2784,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Choizh o'ch eus oc'h implij RAID evit gwrizienn (/).\n"
"N'eus ket moaien da loc'hañ hep ur barzhadur /boot.\n"
@@ -2812,7 +2812,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"Choizh o'ch eus oc'h implij LVM evit gwrizienn (/).\n"
"N'eus ket moaien da loc'hañ gant /boot war meur a levrenn fizikel.\n"
diff --git a/perl-install/share/po/bs.po b/perl-install/share/po/bs.po
index bb65867a3..cd0859825 100644
--- a/perl-install/share/po/bs.po
+++ b/perl-install/share/po/bs.po
@@ -2856,7 +2856,7 @@ msgstr "Već postoji particija sa tačkom montiranja %s\n"
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Izabrali ste softversku RAID particiju kao root (/).\n"
"Nijedan bootloader nije u mogućnosti da rukuje sa ovim bez /boot particije.\n"
@@ -2892,7 +2892,7 @@ msgstr ""
msgid ""
"You've selected an encrypted partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
-"Please be sure to add a separate /boot partition"
+"Please be sure to add a /boot partition"
msgstr ""
"Izabrali ste softversku RAID particiju kao root (/).\n"
"Nijedan bootloader nije u mogućnosti da rukuje sa ovim bez /boot particije.\n"
@@ -2918,7 +2918,7 @@ msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
-"You should create a separate /boot partition first"
+"You should create a /boot partition first"
msgstr ""
"Izabrali ste LVM logički volumen kao root (/).\n"
"Nijedan bootloader nije u mogućnosti da rukuje sa ovim ako se taj volumen "
diff --git a/perl-install/share/po/ca.po b/perl-install/share/po/ca.po
index 99e320664..4c5b20ee1 100644
--- a/perl-install/share/po/ca.po
+++ b/perl-install/share/po/ca.po