netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
fad832
From 32dede4a858792a6ff5ce57e4552ae42f35b17d3 Mon Sep 17 00:00:00 2001
fad832
From: Neal Gompa <ngompa@centosproject.org>
fad832
Date: Sun, 27 Jun 2021 17:46:23 -0400
4c654f
Subject: [PATCH 20006/20007] Change rhel-welcome to centos-welcome
fad832
fad832
This is being used for CentOS Stream rather than
fad832
Red Hat Enterprise Linux, so adjust accordingly.
fad832
---
fad832
 data/liveinst/gnome/Makefile.am                  | 16 ++++++++--------
fad832
 ...el-welcome.desktop => centos-welcome.desktop} |  4 ++--
fad832
 .../gnome/{rhel-welcome.js => centos-welcome.js} |  8 ++++----
fad832
 3 files changed, 14 insertions(+), 14 deletions(-)
fad832
 rename data/liveinst/gnome/{rhel-welcome.desktop => centos-welcome.desktop} (57%)
fad832
 rename data/liveinst/gnome/{rhel-welcome.js => centos-welcome.js} (94%)
fad832
fad832
diff --git a/data/liveinst/gnome/Makefile.am b/data/liveinst/gnome/Makefile.am
fad832
index b295281f3..f7bd07a52 100644
fad832
--- a/data/liveinst/gnome/Makefile.am
fad832
+++ b/data/liveinst/gnome/Makefile.am
fad832
@@ -16,24 +16,24 @@
fad832
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
fad832
 
fad832
 welcomedir              = $(datadir)/$(PACKAGE_NAME)/gnome
fad832
-dist_welcome_DATA       = rhel-welcome.desktop
fad832
-dist_welcome_SCRIPTS    = rhel-welcome.js
fad832
+dist_welcome_DATA       = centos-welcome.desktop
fad832
+dist_welcome_SCRIPTS    = centos-welcome.js
fad832
 
fad832
 MAINTAINERCLEANFILES = Makefile.in
fad832
 
fad832
 # Merge the translations into the desktop file
fad832
 # Use the merged translations in $(builddir). If no merged translations exist,
fad832
 # just exit.
fad832
-# Rename rhel-welcome.js to just rhel-welcome
fad832
+# Rename centos-welcome.js to just centos-welcome
fad832
 install-data-hook:
fad832
 	for p in $(top_builddir)/po/*.mpo ; do \
fad832
 	    [ -e $$p ] || exit 0 ; \
fad832
-	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/rhel-welcome.desktop \
fad832
+	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/centos-welcome.desktop \
fad832
 	        --locale=$$(basename $$p .mpo) \
fad832
-		-o $(DESTDIR)$(welcomedir)/rhel-welcome.desktop.new $$p || exit 1 ; \
fad832
-	    mv $(DESTDIR)$(welcomedir)/rhel-welcome.desktop.new $(DESTDIR)$(welcomedir)/rhel-welcome.desktop || exit 1 ; \
fad832
+		-o $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $$p || exit 1 ; \
fad832
+	    mv $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $(DESTDIR)$(welcomedir)/centos-welcome.desktop || exit 1 ; \
fad832
 	done
fad832
-	cd $(DESTDIR)$(welcomedir) && mv rhel-welcome.js rhel-welcome
fad832
+	cd $(DESTDIR)$(welcomedir) && mv centos-welcome.js centos-welcome
fad832
 
fad832
 uninstall-hook:
fad832
-	-cd $(DESTDIR)$(welcomedir) && rm -f rhel-welcome
fad832
+	-cd $(DESTDIR)$(welcomedir) && rm -f centos-welcome
fad832
diff --git a/data/liveinst/gnome/rhel-welcome.desktop b/data/liveinst/gnome/centos-welcome.desktop
fad832
similarity index 57%
fad832
rename from data/liveinst/gnome/rhel-welcome.desktop
fad832
rename to data/liveinst/gnome/centos-welcome.desktop
fad832
index 8f81a1b18..ce68d9264 100644
fad832
--- a/data/liveinst/gnome/rhel-welcome.desktop
fad832
+++ b/data/liveinst/gnome/centos-welcome.desktop
fad832
@@ -1,6 +1,6 @@
fad832
 [Desktop Entry]
fad832
-Name=Welcome to Red Hat Enterprise Linux
fad832
-Exec=/usr/share/anaconda/gnome/rhel-welcome
fad832
+Name=Welcome to CentOS Stream
fad832
+Exec=/usr/share/anaconda/gnome/centos-welcome
fad832
 Terminal=false
fad832
 Type=Application
fad832
 StartupNotify=true
fad832
diff --git a/data/liveinst/gnome/rhel-welcome.js b/data/liveinst/gnome/centos-welcome.js
fad832
similarity index 94%
fad832
rename from data/liveinst/gnome/rhel-welcome.js
fad832
rename to data/liveinst/gnome/centos-welcome.js
fad832
index 7b6df634f..eda6399d8 100755
fad832
--- a/data/liveinst/gnome/rhel-welcome.js
fad832
+++ b/data/liveinst/gnome/centos-welcome.js
fad832
@@ -59,7 +59,7 @@ const WelcomeWindow = new Lang.Class({
fad832
                                                 default_width: 600,
fad832
                                                 default_height: 550,
fad832
                                                 skip_taskbar_hint: true,
fad832
-                                                title: _("Welcome to Red Hat Enterprise Linux"),
fad832
+                                                title: _("Welcome to CentOS Stream"),
fad832
                                                 window_position: Gtk.WindowPosition.CENTER });
fad832
       this.window.connect('key-press-event', Lang.bind(this,
fad832
           function(w, event) {
fad832
@@ -88,7 +88,7 @@ const WelcomeWindow = new Lang.Class({
fad832
                                      spacing: 16 });
fad832
       tryContent.add(new Gtk.Image({ icon_name: 'media-optical',
fad832
                                      pixel_size: 256 }));
fad832
-      tryContent.add(makeLabel(_("Try RHEL"), true));
fad832
+      tryContent.add(makeLabel(_("Try CentOS"), true));
fad832
 
fad832
       let tryButton = new Gtk.Button({ child: tryContent });
fad832
       buttonBox.add(tryButton);
fad832
@@ -104,7 +104,7 @@ const WelcomeWindow = new Lang.Class({
fad832
       let installButton = new Gtk.Button({ child: installContent });
fad832
       buttonBox.add(installButton);
fad832
 
fad832
-      this._label = makeLabel(_("You are currently running Red Hat Enterprise Linux from live media.\nYou can install Red Hat Enterprise Linux now, or choose \"Install to Hard Drive\" in the Activities Overview at any later time."), false);
fad832
+      this._label = makeLabel(_("You are currently running CentOS Stream from live media.\nYou can install CentOS Stream now, or choose \"Install to Hard Drive\" in the Activities Overview at any later time."), false);
fad832
       mainGrid.add(this._label);
fad832
 
fad832
       installButton.connect('clicked', Lang.bind(this,
fad832
@@ -145,7 +145,7 @@ const WelcomeWindow = new Lang.Class({
fad832
 Gettext.bindtextdomain('anaconda', LOCALE_DIR);
fad832
 Gettext.textdomain('anaconda');
fad832
 
fad832
-GLib.set_prgname('rhel-welcome');
fad832
+GLib.set_prgname('centos-welcome');
fad832
 Gtk.init(null, null);
fad832
 Gtk.Settings.get_default().gtk_application_prefer_dark_theme = true;
fad832
 
fad832
-- 
fad832
2.31.1
fad832