Blob Blame History Raw
From 4a619d0f0b629929fdd3c639f7475e69a09ef045 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa@centosproject.org>
Date: Sun, 27 Jun 2021 17:46:23 -0400
Subject: [PATCH 20006/20007] Change rhel-welcome to centos-welcome

This is being used for CentOS Stream rather than
Red Hat Enterprise Linux, so adjust accordingly.
---
 data/liveinst/gnome/Makefile.am                  | 16 ++++++++--------
 ...el-welcome.desktop => centos-welcome.desktop} |  4 ++--
 .../gnome/{rhel-welcome.js => centos-welcome.js} |  8 ++++----
 3 files changed, 14 insertions(+), 14 deletions(-)
 rename data/liveinst/gnome/{rhel-welcome.desktop => centos-welcome.desktop} (57%)
 rename data/liveinst/gnome/{rhel-welcome.js => centos-welcome.js} (94%)

diff --git a/data/liveinst/gnome/Makefile.am b/data/liveinst/gnome/Makefile.am
index b295281f3..f7bd07a52 100644
--- a/data/liveinst/gnome/Makefile.am
+++ b/data/liveinst/gnome/Makefile.am
@@ -16,24 +16,24 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 welcomedir              = $(datadir)/$(PACKAGE_NAME)/gnome
-dist_welcome_DATA       = rhel-welcome.desktop
-dist_welcome_SCRIPTS    = rhel-welcome.js
+dist_welcome_DATA       = centos-welcome.desktop
+dist_welcome_SCRIPTS    = centos-welcome.js
 
 MAINTAINERCLEANFILES = Makefile.in
 
 # Merge the translations into the desktop file
 # Use the merged translations in $(builddir). If no merged translations exist,
 # just exit.
-# Rename rhel-welcome.js to just rhel-welcome
+# Rename centos-welcome.js to just centos-welcome
 install-data-hook:
 	for p in $(top_builddir)/po/*.mpo ; do \
 	    [ -e $$p ] || exit 0 ; \
-	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/rhel-welcome.desktop \
+	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/centos-welcome.desktop \
 	        --locale=$$(basename $$p .mpo) \
-		-o $(DESTDIR)$(welcomedir)/rhel-welcome.desktop.new $$p || exit 1 ; \
-	    mv $(DESTDIR)$(welcomedir)/rhel-welcome.desktop.new $(DESTDIR)$(welcomedir)/rhel-welcome.desktop || exit 1 ; \
+		-o $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $$p || exit 1 ; \
+	    mv $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $(DESTDIR)$(welcomedir)/centos-welcome.desktop || exit 1 ; \
 	done
-	cd $(DESTDIR)$(welcomedir) && mv rhel-welcome.js rhel-welcome
+	cd $(DESTDIR)$(welcomedir) && mv centos-welcome.js centos-welcome
 
 uninstall-hook:
-	-cd $(DESTDIR)$(welcomedir) && rm -f rhel-welcome
+	-cd $(DESTDIR)$(welcomedir) && rm -f centos-welcome
diff --git a/data/liveinst/gnome/rhel-welcome.desktop b/data/liveinst/gnome/centos-welcome.desktop
similarity index 57%
rename from data/liveinst/gnome/rhel-welcome.desktop
rename to data/liveinst/gnome/centos-welcome.desktop
index 8f81a1b18..ce68d9264 100644
--- a/data/liveinst/gnome/rhel-welcome.desktop
+++ b/data/liveinst/gnome/centos-welcome.desktop
@@ -1,6 +1,6 @@
 [Desktop Entry]
-Name=Welcome to Red Hat Enterprise Linux
-Exec=/usr/share/anaconda/gnome/rhel-welcome
+Name=Welcome to CentOS Stream
+Exec=/usr/share/anaconda/gnome/centos-welcome
 Terminal=false
 Type=Application
 StartupNotify=true
diff --git a/data/liveinst/gnome/rhel-welcome.js b/data/liveinst/gnome/centos-welcome.js
similarity index 94%
rename from data/liveinst/gnome/rhel-welcome.js
rename to data/liveinst/gnome/centos-welcome.js
index 7b6df634f..eda6399d8 100755
--- a/data/liveinst/gnome/rhel-welcome.js
+++ b/data/liveinst/gnome/centos-welcome.js
@@ -59,7 +59,7 @@ const WelcomeWindow = new Lang.Class({
                                                 default_width: 600,
                                                 default_height: 550,
                                                 skip_taskbar_hint: true,
-                                                title: _("Welcome to Red Hat Enterprise Linux"),
+                                                title: _("Welcome to CentOS Stream"),
                                                 window_position: Gtk.WindowPosition.CENTER });
       this.window.connect('key-press-event', Lang.bind(this,
           function(w, event) {
@@ -88,7 +88,7 @@ const WelcomeWindow = new Lang.Class({
                                      spacing: 16 });
       tryContent.add(new Gtk.Image({ icon_name: 'media-optical',
                                      pixel_size: 256 }));
-      tryContent.add(makeLabel(_("Try RHEL"), true));
+      tryContent.add(makeLabel(_("Try CentOS"), true));
 
       let tryButton = new Gtk.Button({ child: tryContent });
       buttonBox.add(tryButton);
@@ -104,7 +104,7 @@ const WelcomeWindow = new Lang.Class({
       let installButton = new Gtk.Button({ child: installContent });
       buttonBox.add(installButton);
 
-      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);
+      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);
       mainGrid.add(this._label);
 
       installButton.connect('clicked', Lang.bind(this,
@@ -145,7 +145,7 @@ const WelcomeWindow = new Lang.Class({
 Gettext.bindtextdomain('anaconda', LOCALE_DIR);
 Gettext.textdomain('anaconda');
 
-GLib.set_prgname('rhel-welcome');
+GLib.set_prgname('centos-welcome');
 Gtk.init(null, null);
 Gtk.Settings.get_default().gtk_application_prefer_dark_theme = true;
 
-- 
2.32.0