aboutsummaryrefslogtreecommitdiffstats
path: root/editworkflow.cgi
blob: 7e51798fc26e8f4c9563de088956e7c6721d07c4 (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
#!/usr/bin/perl -wT
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Frédéric Buclin.
# Portions created by Frédéric Buclin are Copyright (C) 2007
# Frédéric Buclin. All Rights Reserved.
#
# Contributor(s): Frédéric Buclin <LpSolit@gmail.com>

use strict;

use lib qw(. lib);

use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Token;
use Bugzilla::Status;

my $cgi = Bugzilla->cgi;
my $dbh = Bugzilla->dbh;
my $user = Bugzilla->login(LOGIN_REQUIRED);

print $cgi->header();

$user->in_group('admin')
  || ThrowUserError('auth_failure', {group  => 'admin',
                                     action => 'modify',
                                     object => 'workflow'});

my $action = $cgi->param('action') || 'edit';
my $token = $cgi->param('token');

sub get_workflow {
    my $dbh = Bugzilla->dbh;
    my $workflow = $dbh->selectall_arrayref('SELECT old_status, new_status, require_comment
                                             FROM status_workflow');
    my %workflow;
    foreach my $row (@$workflow) {
        my ($old, $new, $type) = @$row;
        $workflow{$old || 0}{$new} = $type;
    }
    return \%workflow;
}

sub load_template {
    my ($filename, $message) = @_;
    my $template = Bugzilla->template;
    my $vars = {};

    $vars->{'statuses'} = [Bugzilla::Status->get_all];
    $vars->{'workflow'} = get_workflow();
    $vars->{'token'} = issue_session_token("workflow_$filename");
    $vars->{'message'} = $message;

    $template->process("admin/workflow/$filename.html.tmpl", $vars)
      || ThrowTemplateError($template->error());
    exit;
}

if ($action eq 'edit') {
    load_template('edit');
}
elsif ($action eq 'update') {
    check_token_data($token, 'workflow_edit');
    my $statuses = [Bugzilla::Status->get_all];
    my $workflow = get_workflow();

    my $sth_insert = $dbh->prepare('INSERT INTO status_workflow (old_status, new_status)
                                    VALUES (?, ?)');
    my $sth_delete = $dbh->prepare('DELETE FROM status_workflow
                                    WHERE old_status = ? AND new_status = ?');
    my $sth_delnul = $dbh->prepare('DELETE FROM status_workflow
                                    WHERE old_status IS NULL AND new_status = ?');

    # Part 1: Initial bug statuses.
    foreach my $new (@$statuses) {
        if ($new->is_open && $cgi->param('w_0_' . $new->id)) {
            $sth_insert->execute(undef, $new->id)
              unless defined $workflow->{0}->{$new->id};
        }
        else {
            $sth_delnul->execute($new->id);
        }
    }

    # Part 2: Bug status changes.
    foreach my $old (@$statuses) {
        foreach my $new (@$statuses) {
            next if $old->id == $new->id;

            # All transitions to 'duplicate_or_move_bug_status' must be valid.
            if ($cgi->param('w_' . $old->id . '_' . $new->id)
                || ($new->name eq Bugzilla->params->{'duplicate_or_move_bug_status'}))
            {
                $sth_insert->execute($old->id, $new->id)
                  unless defined $workflow->{$old->id}->{$new->id};
            }
            else {
                $sth_delete->execute($old->id, $new->id);
            }
        }
    }
    delete_token($token);
    load_template('edit', 'workflow_updated');
}
elsif ($action eq 'edit_comment') {
    load_template('comment');
}
elsif ($action eq 'update_comment') {
    check_token_data($token, 'workflow_comment');
    my $workflow = get_workflow();

    my $sth_update = $dbh->prepare('UPDATE status_workflow SET require_comment = ?
                                    WHERE old_status = ? AND new_status = ?');
    my $sth_updnul = $dbh->prepare('UPDATE status_workflow SET require_comment = ?
                                    WHERE old_status IS NULL AND new_status = ?');

    foreach my $old (keys %$workflow) {
        # Hashes cannot have undef as a key, so we use 0. But the DB
        # must store undef, for referential integrity.
        my $old_id_for_db = $old || undef;
        foreach my $new (keys %{$workflow->{$old}}) {
            my $comment_required = $cgi->param("c_${old}_$new") ? 1 : 0;
            next if ($workflow->{$old}->{$new} == $comment_required);
            if ($old_id_for_db) {
                $sth_update->execute($comment_required, $old_id_for_db, $new);
            }
            else {
                $sth_updnul->execute($comment_required, $new);
            }
        }
    }
    delete_token($token);
    load_template('comment', 'workflow_updated');
}
else {
    ThrowCodeError("action_unrecognized", {action => $action});
}
able> -rw-r--r--perl-install/share/po/nb.po4
-rw-r--r--perl-install/share/po/nl.po4
-rw-r--r--perl-install/share/po/nn.po4
-rw-r--r--perl-install/share/po/pa_IN.po4
-rw-r--r--perl-install/share/po/pl.po4
-rw-r--r--perl-install/share/po/pt.po4
-rw-r--r--perl-install/share/po/pt_BR.po4
-rw-r--r--perl-install/share/po/ro.po4
-rw-r--r--perl-install/share/po/ru.po4
-rw-r--r--perl-install/share/po/sc.po4
-rw-r--r--perl-install/share/po/sk.po4
-rw-r--r--perl-install/share/po/sl.po4
-rw-r--r--perl-install/share/po/sq.po4
-rw-r--r--perl-install/share/po/sr.po4
-rw-r--r--perl-install/share/po/sr@Latn.po4
-rw-r--r--perl-install/share/po/sv.po4
-rw-r--r--perl-install/share/po/ta.po4
-rw-r--r--perl-install/share/po/tg.po4
-rw-r--r--perl-install/share/po/th.po4
-rw-r--r--perl-install/share/po/tl.po4
-rw-r--r--perl-install/share/po/tr.po4
-rw-r--r--perl-install/share/po/uk.po4
-rw-r--r--perl-install/share/po/uz.po4
-rw-r--r--perl-install/share/po/uz@Latn.po4
-rw-r--r--perl-install/share/po/vi.po4
-rw-r--r--perl-install/share/po/wa.po4
-rw-r--r--perl-install/share/po/zh_CN.po4
-rw-r--r--perl-install/share/po/zh_TW.po4
71 files changed, 142 insertions, 142 deletions
diff --git a/perl-install/share/po/DrakX.pot b/perl-install/share/po/DrakX.pot
index ddb083e8f..2a483bde2 100644
--- a/perl-install/share/po/DrakX.pot
+++ b/perl-install/share/po/DrakX.pot
@@ -1475,12 +1475,12 @@ msgstr ""
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/af.po b/perl-install/share/po/af.po
index 97ff7fcdd..8e406035f 100644
--- a/perl-install/share/po/af.po
+++ b/perl-install/share/po/af.po
@@ -1749,12 +1749,12 @@ msgstr "LILO met tekskieskaart"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/am.po b/perl-install/share/po/am.po
index ac785d306..92a4ea874 100644
--- a/perl-install/share/po/am.po
+++ b/perl-install/share/po/am.po
@@ -1617,12 +1617,12 @@ msgstr "LILO ከጽሁፍ መዘርዝር ጋር"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ar.po b/perl-install/share/po/ar.po
index 9970b2ed8..e6d9b089c 100644
--- a/perl-install/share/po/ar.po
+++ b/perl-install/share/po/ar.po
@@ -1754,12 +1754,12 @@ msgstr "LILO مع قائمة نصية"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/az.po b/perl-install/share/po/az.po
index dafb56cb0..14d5521b6 100644
--- a/perl-install/share/po/az.po
+++ b/perl-install/share/po/az.po
@@ -1703,12 +1703,12 @@ msgstr "Mətn menyulu LILO"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/be.po b/perl-install/share/po/be.po
index b81b11911..57735b4a4 100644
--- a/perl-install/share/po/be.po
+++ b/perl-install/share/po/be.po
@@ -1645,12 +1645,12 @@ msgstr ""
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/bg.po b/perl-install/share/po/bg.po
index f5eb025ab..9a7db1699 100644
--- a/perl-install/share/po/bg.po
+++ b/perl-install/share/po/bg.po
@@ -1680,12 +1680,12 @@ msgstr "LILO с текстово меню"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/bn.po b/perl-install/share/po/bn.po
index 804b43a6c..2725e2655 100644
--- a/perl-install/share/po/bn.po
+++ b/perl-install/share/po/bn.po
@@ -1768,12 +1768,12 @@ msgstr "টেক্সট মেনুর সাথে LILO"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/br.po b/perl-install/share/po/br.po
index d87ac7721..c22fea350 100644
--- a/perl-install/share/po/br.po
+++ b/perl-install/share/po/br.po
@@ -1653,12 +1653,12 @@ msgstr "LILO gant meuziad skrid"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB gant meuziad skrid"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB gant meuziad skrid"
#: bootloader.pm:857
diff --git a/perl-install/share/po/bs.po b/perl-install/share/po/bs.po
index 6e4e147a0..58a4ed0e2 100644
--- a/perl-install/share/po/bs.po
+++ b/perl-install/share/po/bs.po
@@ -1770,12 +1770,12 @@ msgstr "LILO sa tekstualnim menijem"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ca.po b/perl-install/share/po/ca.po
index 5907d6c44..6474d7177 100644
--- a/perl-install/share/po/ca.po
+++ b/perl-install/share/po/ca.po
@@ -1729,12 +1729,12 @@ msgstr "LILO amb menú de text"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB amb menú gràfic"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB amb menú de text"
#: bootloader.pm:857
diff --git a/perl-install/share/po/cs.po b/perl-install/share/po/cs.po
index 08dfcf1a6..1ecae2217 100644
--- a/perl-install/share/po/cs.po
+++ b/perl-install/share/po/cs.po
@@ -1767,12 +1767,12 @@ msgstr "LILO s textovým menu"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB s grafickým menu"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB s textovým menu"
#: bootloader.pm:857
diff --git a/perl-install/share/po/cy.po b/perl-install/share/po/cy.po
index 8a877f079..ddb7076e9 100644
--- a/perl-install/share/po/cy.po
+++ b/perl-install/share/po/cy.po
@@ -1763,12 +1763,12 @@ msgstr "LILO gyda dewislen testun"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB gyda dewislen raffigol"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB gyda dewislen testun"
#: bootloader.pm:857
diff --git a/perl-install/share/po/da.po b/perl-install/share/po/da.po
index 6bad34c81..623568f6a 100644
--- a/perl-install/share/po/da.po
+++ b/perl-install/share/po/da.po
@@ -1780,12 +1780,12 @@ msgstr "LILO med tekstmenu"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/de.po b/perl-install/share/po/de.po
index 5779701a5..a9fc19af0 100644
--- a/perl-install/share/po/de.po
+++ b/perl-install/share/po/de.po
@@ -1801,12 +1801,12 @@ msgstr "LILO mit Textmenü"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB mit grafischem Menü"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB mit Textmenü"
#: bootloader.pm:857
diff --git a/perl-install/share/po/el.po b/perl-install/share/po/el.po
index 22a46dc1c..c0bf2f740 100644
--- a/perl-install/share/po/el.po
+++ b/perl-install/share/po/el.po
@@ -1708,12 +1708,12 @@ msgstr "LILO με μενού κειμένου"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/eo.po b/perl-install/share/po/eo.po
index 0c08ebdf3..d7fe06ecc 100644
--- a/perl-install/share/po/eo.po
+++ b/perl-install/share/po/eo.po
@@ -1669,12 +1669,12 @@ msgstr ""
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/es.po b/perl-install/share/po/es.po
index d8b284c3e..17d50a0c7 100644
--- a/perl-install/share/po/es.po
+++ b/perl-install/share/po/es.po
@@ -1787,12 +1787,12 @@ msgstr "LILO con menú de texto"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/et.po b/perl-install/share/po/et.po
index 62eb28916..7022b54d6 100644
--- a/perl-install/share/po/et.po
+++ b/perl-install/share/po/et.po
@@ -1765,12 +1765,12 @@ msgstr "LiLo tekstirežiimis"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB graafilises režiimis"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB tekstirežiimis"
#: bootloader.pm:857
diff --git a/perl-install/share/po/eu.po b/perl-install/share/po/eu.po
index 51dd9570b..ba0f4b574 100644
--- a/perl-install/share/po/eu.po
+++ b/perl-install/share/po/eu.po
@@ -1766,12 +1766,12 @@ msgstr "LILO testu-menuarekin"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB menu grafikoarekin"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB testu menuarekin"
#: bootloader.pm:857
diff --git a/perl-install/share/po/fa.po b/perl-install/share/po/fa.po
index 28722846e..c5e6a8fc8 100644
--- a/perl-install/share/po/fa.po
+++ b/perl-install/share/po/fa.po
@@ -1767,12 +1767,12 @@ msgstr "LILO با منوی متنی"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/fi.po b/perl-install/share/po/fi.po
index d986fa905..23214c05a 100644
--- a/perl-install/share/po/fi.po
+++ b/perl-install/share/po/fi.po
@@ -1778,12 +1778,12 @@ msgstr "LILO tekstipohjaisella valikolla"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/fr.po b/perl-install/share/po/fr.po
index 3d4b5ba05..8fac9a183 100644
--- a/perl-install/share/po/fr.po
+++ b/perl-install/share/po/fr.po
@@ -1870,12 +1870,12 @@ msgstr "LILO en mode texte"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB en mode graphique"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB en mode texte"
#: bootloader.pm:857
diff --git a/perl-install/share/po/fur.po b/perl-install/share/po/fur.po
index 87c54f6b5..b19ff43bb 100644
--- a/perl-install/share/po/fur.po
+++ b/perl-install/share/po/fur.po
@@ -1634,12 +1634,12 @@ msgstr "LILO cun menu di test"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ga.po b/perl-install/share/po/ga.po
index b20c89bc4..5de6e9152 100644
--- a/perl-install/share/po/ga.po
+++ b/perl-install/share/po/ga.po
@@ -1625,12 +1625,12 @@ msgstr "LILO le chlár teacs"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/gl.po b/perl-install/share/po/gl.po
index 5772f2a3a..453ab6dc6 100644
--- a/perl-install/share/po/gl.po
+++ b/perl-install/share/po/gl.po
@@ -1721,12 +1721,12 @@ msgstr "LILO con menú de texto"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/he.po b/perl-install/share/po/he.po
index 9f886bef9..50e0ae5b3 100644
--- a/perl-install/share/po/he.po
+++ b/perl-install/share/po/he.po
@@ -1708,12 +1708,12 @@ msgstr "מנהל אתחול 'לילו' עם תפריט טקסט"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "מנהל אתחול 'גראב' עם תפריט גרפי"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "מנהל אתחול 'גראב' עם תפריט טקסט"
#: bootloader.pm:857
diff --git a/perl-install/share/po/hi.po b/perl-install/share/po/hi.po
index d3d819c6c..187cbfcf7 100644
--- a/perl-install/share/po/hi.po
+++ b/perl-install/share/po/hi.po
@@ -1741,12 +1741,12 @@ msgstr "पाठ्य मीनू के साथ लिलो"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/hr.po b/perl-install/share/po/hr.po
index 735f02db2..92a15ec7e 100644
--- a/perl-install/share/po/hr.po
+++ b/perl-install/share/po/hr.po
@@ -1713,12 +1713,12 @@ msgstr "LILO sa tekstualnim menijem"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/hu.po b/perl-install/share/po/hu.po
index 4338797ac..094f4a7e4 100644
--- a/perl-install/share/po/hu.po
+++ b/perl-install/share/po/hu.po
@@ -1788,12 +1788,12 @@ msgstr "LILO, szöveges menüvel"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/id.po b/perl-install/share/po/id.po
index 721390b3a..4872c35e2 100644
--- a/perl-install/share/po/id.po
+++ b/perl-install/share/po/id.po
@@ -1785,12 +1785,12 @@ msgstr "LILO dengan menu teks"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB dengan menu grafis"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB dengan menu teks"
#: bootloader.pm:857
diff --git a/perl-install/share/po/is.po b/perl-install/share/po/is.po
index ed158bd1c..984cf515d 100644
--- a/perl-install/share/po/is.po
+++ b/perl-install/share/po/is.po
@@ -1766,12 +1766,12 @@ msgstr "LILO með textavalmynd"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB með grafískri valmynd"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB með texavalmynd"
#: bootloader.pm:857
diff --git a/perl-install/share/po/it.po b/perl-install/share/po/it.po
index 894503aee..e35706d09 100644
--- a/perl-install/share/po/it.po
+++ b/perl-install/share/po/it.po
@@ -1787,12 +1787,12 @@ msgstr "LILO con menu testuale"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ja.po b/perl-install/share/po/ja.po
index abe03326e..d3c501c5c 100644
--- a/perl-install/share/po/ja.po
+++ b/perl-install/share/po/ja.po
@@ -1756,12 +1756,12 @@ msgstr "テキスト表示のLILO"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "グラフィカル表示のGRUB"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "テキスト表示のGRUB"
#: bootloader.pm:857
diff --git a/perl-install/share/po/ko.po b/perl-install/share/po/ko.po
index 5cf6aafb1..0f3209449 100644
--- a/perl-install/share/po/ko.po
+++ b/perl-install/share/po/ko.po
@@ -1649,12 +1649,12 @@ msgstr "텍스트 메뉴 LILO"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ky.po b/perl-install/share/po/ky.po
index ddbb05624..38d9c8544 100644
--- a/perl-install/share/po/ky.po
+++ b/perl-install/share/po/ky.po
@@ -1788,12 +1788,12 @@ msgstr "LILO тексттик меню менен"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/lt.po b/perl-install/share/po/lt.po
index d09ae7ee7..f0163f9a3 100644
--- a/perl-install/share/po/lt.po
+++ b/perl-install/share/po/lt.po
@@ -1646,12 +1646,12 @@ msgstr "LILO su tekstiniu meniu"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ltg.po b/perl-install/share/po/ltg.po
index b56c1950f..95aeff650 100644
--- a/perl-install/share/po/ltg.po
+++ b/perl-install/share/po/ltg.po
@@ -1714,12 +1714,12 @@ msgstr "LILO ar teksta izvieļni"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/lv.po b/perl-install/share/po/lv.po
index b96bc8350..66c8f7101 100644
--- a/perl-install/share/po/lv.po
+++ b/perl-install/share/po/lv.po
@@ -1675,12 +1675,12 @@ msgstr "LILO ar teksta izvēlni"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/mk.po b/perl-install/share/po/mk.po
index c91c44600..a07b67b86 100644
--- a/perl-install/share/po/mk.po
+++ b/perl-install/share/po/mk.po
@@ -1733,12 +1733,12 @@ msgstr "LILO со текстуално мени"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/mn.po b/perl-install/share/po/mn.po
index 9075567fe..c1e3e55af 100644
--- a/perl-install/share/po/mn.po
+++ b/perl-install/share/po/mn.po
@@ -1623,12 +1623,12 @@ msgstr "текст"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/ms.po b/perl-install/share/po/ms.po
index 54597796b..0f6f59153 100644
--- a/perl-install/share/po/ms.po
+++ b/perl-install/share/po/ms.po
@@ -1858,12 +1858,12 @@ msgstr "Menu alat mod teks"
#: bootloader.pm:855
#, fuzzy, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "Konfigurasi kemaskini menu selesai dg ERROR !!!"
#: bootloader.pm:856
#, fuzzy, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "Menu alat mod teks"
#: bootloader.pm:857
diff --git a/perl-install/share/po/mt.po b/perl-install/share/po/mt.po
index 879257275..ae56516e4 100644
--- a/perl-install/share/po/mt.po
+++ b/perl-install/share/po/mt.po
@@ -1769,12 +1769,12 @@ msgstr "LILO b'menu testwali"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/nb.po b/perl-install/share/po/nb.po
index da7be8684..65e06fa86 100644
--- a/perl-install/share/po/nb.po
+++ b/perl-install/share/po/nb.po
@@ -1774,12 +1774,12 @@ msgstr "LILO med tekstmeny"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB med grafisk meny"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB med tekstmeny"
#: bootloader.pm:857
diff --git a/perl-install/share/po/nl.po b/perl-install/share/po/nl.po
index 431b4e2aa..f13ff4f78 100644
--- a/perl-install/share/po/nl.po
+++ b/perl-install/share/po/nl.po
@@ -1788,12 +1788,12 @@ msgstr "LILO met tekst-menu"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/nn.po b/perl-install/share/po/nn.po
index a97ea689a..6cd690b7e 100644
--- a/perl-install/share/po/nn.po
+++ b/perl-install/share/po/nn.po
@@ -1747,12 +1747,12 @@ msgstr "LILO med tekstmeny"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB med grafisk meny"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB med tekstmeny"
#: bootloader.pm:857
diff --git a/perl-install/share/po/pa_IN.po b/perl-install/share/po/pa_IN.po
index 05c92cb2d..d7f86537c 100644
--- a/perl-install/share/po/pa_IN.po
+++ b/perl-install/share/po/pa_IN.po
@@ -1750,12 +1750,12 @@ msgstr "ਪਾਠ ਮੇਨੂ ਨਾਲ LILO"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr ""
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr ""
#: bootloader.pm:857
diff --git a/perl-install/share/po/pl.po b/perl-install/share/po/pl.po
index e3c5ef4c0..229372a71 100644
--- a/perl-install/share/po/pl.po
+++ b/perl-install/share/po/pl.po
@@ -1785,12 +1785,12 @@ msgstr "LILO z menu tekstowym"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB z graficznym menu"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB z tekstowym menu"
#: bootloader.pm:857
diff --git a/perl-install/share/po/pt.po b/perl-install/share/po/pt.po
index 173c06cf2..0c0efc294 100644
--- a/perl-install/share/po/pt.po
+++ b/perl-install/share/po/pt.po
@@ -1787,12 +1787,12 @@ msgstr "LILO com menu texto"
#: bootloader.pm:855
#, c-format
-msgid "Grub with graphical menu"
+msgid "GRUB with graphical menu"
msgstr "GRUB com menu gráfico"
#: bootloader.pm:856
#, c-format
-msgid "Grub with text menu"
+msgid "GRUB with text menu"
msgstr "GRUB com menu texto"
#: bootloader.pm:857
diff --git a/perl-install/share/po/pt_BR.po b/perl-install/share/po/pt_BR.po
index 1c06c92a3..2567ec5b5 100644
--- a/perl-install/share/po/pt_BR.po
+++ b/perl-install/share/po/pt_BR.po