summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakedm
blob: a3a5ee590fef8a415c05a9e4f1a14d66b73156ea (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
#!/usr/bin/perl
# DrakxDM -- Display Manager chooser
# Copyright (C) 2003-2008 Mandriva (tvignaud@mandriva.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

use strict;
use lib qw(/usr/lib/libDrakX);

use standalone;     #- warning, standalone must be loaded very first, for 'explanations'
use common;
use any;
use interactive;
use services;
use run_program;

$ugtk2::wm_icon = "/usr/share/mcc/themes/default/drakedm-mdk.png";

my $in = 'interactive'->vnew('su');

my $cfg_file = '/etc/sysconfig/desktop';

my @list = map {
    my %l = map { /(\S+)=(.*)/ } cat_($_);
    \%l;
} sort(glob("/usr/share/X11/dm.d/*.conf"));

my @_DESCRIPTIONS_for_i18n = (
    N("GDM (GNOME Display Manager)"),
    N("KDM (KDE Display Manager)"),
    N("XDM (X Display Manager)"),
);

if (!$::expert) {
    @list = grep { -e $_->{EXEC} } @list;
}

my ($dm_NAME) = cat_($cfg_file) =~ /^DISPLAYMANAGER=(.*)/m;
my $dm = (find { uc($_->{NAME}) eq uc($dm_NAME) } @list) || $list[0];

start:
if ($in->ask_from(N("Choosing a display manager"),
                               formatAlaTeX(N("X11 Display Manager allows you to graphically log
into your system with the X Window System running and supports running
several different X sessions on your local machine at the same time.")),
                               [
                                {
                                 allow_empty_list => 1,
                                 list => \@list,
                                 val => \$dm,
                                 type => 'list',
                                 format => sub { translate($_[0]{DESCRIPTION}) },
                                }
                               ]
                              )
      && $dm
   ) {
    $in->do_pkgs->ensure_is_installed($dm->{PACKAGE}, $dm->{EXEC}) or goto start;
    addVarsInSh($cfg_file, { DISPLAYMANAGER => $dm->{NAME} });
    log::explanations(qq(Switching to "$dm->{NAME}" display manager));
    if (any::running_window_manager()) {
        $in->ask_yesorno('', N("The change is done, do you want to restart the dm service?"), 1) and
				$in->ask_yesorno('', N("You are going to close all running programs and lose your current session. Are you really sure that you want to restart the dm service?"), 1) and
                      run_program::raw({ detach => 1 }, '/etc/rc.d/init.d/dm', '>', '/dev/null', '2>', '/dev/null', 'restart');
    }
}

$in->exit(0);
007b62f'>perl-install/share/po/ca.po1379
-rw-r--r--perl-install/share/po/cs.po7870
-rw-r--r--perl-install/share/po/cy.po2977
-rw-r--r--perl-install/share/po/da.po3750
-rw-r--r--perl-install/share/po/de.po1437
-rw-r--r--perl-install/share/po/el.po5030
-rw-r--r--perl-install/share/po/eo.po1267
-rw-r--r--perl-install/share/po/es.po1489
-rw-r--r--perl-install/share/po/eu.po1350
-rw-r--r--perl-install/share/po/fi.po4407
-rw-r--r--perl-install/share/po/fr.po3199
-rw-r--r--perl-install/share/po/ga.po1253
-rw-r--r--perl-install/share/po/gl.po1266
-rw-r--r--perl-install/share/po/he.po1232
-rw-r--r--perl-install/share/po/hr.po1300
-rw-r--r--perl-install/share/po/hu.po2958
-rw-r--r--perl-install/share/po/id.po1328
-rw-r--r--perl-install/share/po/is.po1249
-rw-r--r--perl-install/share/po/it.po1774
-rw-r--r--perl-install/share/po/ko.po1288
-rw-r--r--perl-install/share/po/lt.po1264
-rw-r--r--perl-install/share/po/lv.po1309
-rw-r--r--perl-install/share/po/mt.po1336
-rw-r--r--perl-install/share/po/nl.po3460
-rw-r--r--perl-install/share/po/no.po147
-rw-r--r--perl-install/share/po/pl.po1676
-rw-r--r--perl-install/share/po/pt.po2020
-rw-r--r--perl-install/share/po/pt_BR.po5452
-rw-r--r--perl-install/share/po/ro.po1279
-rw-r--r--perl-install/share/po/ru.po1716
-rw-r--r--perl-install/share/po/sk.po2541
-rw-r--r--perl-install/share/po/sl.po1240
-rw-r--r--perl-install/share/po/sp.po2091
-rw-r--r--perl-install/share/po/sq.po1386
-rw-r--r--perl-install/share/po/sr.po3251
-rw-r--r--perl-install/share/po/sv.po1562
-rw-r--r--perl-install/share/po/ta.po1315
-rw-r--r--perl-install/share/po/tg.po1176
-rw-r--r--perl-install/share/po/th.po1276
-rw-r--r--perl-install/share/po/tr.po1330
-rw-r--r--perl-install/share/po/uk.po1278
-rw-r--r--perl-install/share/po/uz.po3175
-rw-r--r--perl-install/share/po/vi.po1698
-rw-r--r--perl-install/share/po/wa.po1918
-rw-r--r--perl-install/share/po/zh_CN.po1914
-rw-r--r--perl-install/share/po/zh_TW.po1316
54 files changed, 73022 insertions, 51003 deletions
diff --git a/perl-install/share/po/DrakX.pot b/perl-install/share/po/DrakX.pot
index e21e2267d..335d1684e 100644
--- a/perl-install/share/po/DrakX.pot
+++ b/perl-install/share/po/DrakX.pot
@@ -829,7 +829,7 @@ msgid ""
""
msgstr ""
-#: ../../fsedit.pm:1
+#: ../../fsedit.pm:1 ../../fsedit.pm:1
#, c-format
msgid "This directory should remain within the root filesystem"
msgstr ""
@@ -7913,12 +7913,12 @@ msgstr ""
#: ../../network/ethernet.pm:1 ../../network/network.pm:1
#, c-format
-msgid "Zeroconf Host name"
+msgid "Host name"
msgstr ""
#: ../../network/ethernet.pm:1 ../../network/network.pm:1
#, c-format
-msgid "Host name"
+msgid "Zeroconf Host name"
msgstr ""
#: ../../network/ethernet.pm:1 ../../network/network.pm:1
@@ -7930,15 +7930,6 @@ msgid ""
"want to use the default host name."
msgstr ""
-#: ../../network/ethernet.pm:1
-#, c-format
-msgid ""
-"Please enter your host name if you know it.\n"
-"Some DHCP servers require the hostname to work.\n"
-"Your host name should be a fully-qualified host name,\n"
-"such as ``mybox.mylab.myco.com''."
-msgstr ""
-
#: ../../network/ethernet.pm:1 ../../network/network.pm:1
#, c-format
msgid "Configuring network"
@@ -8514,22 +8505,22 @@ msgstr ""
#: ../../network/network.pm:1
#, c-format
-msgid "Network Hotplugging"
+msgid "Assign host name from DHCP address"
msgstr ""
#: ../../network/network.pm:1
#, c-format
-msgid "Track network card id (useful for laptops)"
+msgid "Network Hotplugging"
msgstr ""
#: ../../network/network.pm:1
#, c-format
-msgid "(bootp/dhcp/zeroconf)"
+msgid "Track network card id (useful for laptops)"
msgstr ""
#: ../../network/network.pm:1
#, c-format
-msgid "Automatic IP"
+msgid "DHCP host name"
msgstr ""
#: ../../network/network.pm:1 ../../standalone/drakconnect:1 ../../standalone/drakgw:1
@@ -8544,6 +8535,16 @@ msgstr ""
#: ../../network/network.pm:1
#, c-format
+msgid "(bootp/dhcp/zeroconf)"
+msgstr ""
+
+#: ../../network/network.pm:1
+#, c-format
+msgid "Automatic IP"
+msgstr ""
+
+#: ../../network/network.pm:1
+#, c-format
msgid " (driver %s)"
msgstr ""
diff --git a/perl-install/share/po/af.po b/perl-install/share/po/af.po
index 685767cf1..4137d5350 100644
--- a/perl-install/share/po/af.po
+++ b/perl-install/share/po/af.po
@@ -22,16 +22,18 @@ msgid ""
"You can use userdrake to add a user to this group."
msgstr ""
-#: ../../any.pm:1 ../../bootlook.pm:1 ../../install_steps_gtk.pm:1
-#: ../../interactive.pm:1 ../../my_gtk.pm:1 ../../ugtk2.pm:1 ../../ugtk.pm:1
+#: ../../any.pm:1 ../../install_steps_gtk.pm:1
+#: ../../install_steps_interactive.pm:1 ../../interactive.pm:1
+#: ../../my_gtk.pm:1 ../../ugtk2.pm:1 ../../ugtk.pm:1
#: ../../Xconfig/resolution_and_depth.pm:1 ../../diskdrake/smbnfs_gtk.pm:1
#: ../../interactive/http.pm:1 ../../interactive/newt.pm:1
#: ../../interactive/stdio.pm:1 ../../network/netconnect.pm:1
#: ../../printer/printerdrake.pm:1 ../../standalone/drakautoinst:1
-#: ../../standalone/drakbackup:1 ../../standalone/drakconnect:1
-#: ../../standalone/drakfloppy:1 ../../standalone/drakfont:1
-#: ../../standalone/drakgw:1 ../../standalone/draksec:1
-#: ../../standalone/logdrake:1 ../../standalone/net_monitor:1
+#: ../../standalone/drakbackup:1 ../../standalone/drakboot:1
+#: ../../standalone/drakconnect:1 ../../standalone/drakfloppy:1
+#: ../../standalone/drakfont:1 ../../standalone/drakgw:1
+#: ../../standalone/draksec:1 ../../standalone/logdrake:1
+#: ../../standalone/net_monitor:1
#, c-format
msgid "Cancel"
msgstr "Kanselleer"
@@ -762,232 +764,6 @@ msgstr ""
"%d sekonde vir die verstekopsie.\n"
"\n"