b80b18
From 869891298702227d9e6641f490dca331d193f75d Mon Sep 17 00:00:00 2001
b80b18
From: Neal Gompa <ngompa@centosproject.org>
b80b18
Date: Mon, 28 Jun 2021 23:26:59 -0400
b80b18
Subject: [PATCH 20004/20005] Change fedora-welcome to centos-welcome
b80b18
b80b18
This is being used for CentOS Stream rather than Fedora Linux,
b80b18
so adjust accordingly.
b80b18
---
b80b18
 data/liveinst/gnome/Makefile.am                  | 16 ++++++++--------
b80b18
 ...ra-welcome.desktop => centos-welcome.desktop} |  4 ++--
b80b18
 .../{fedora-welcome.js => centos-welcome.js}     | 12 ++++++------
b80b18
 3 files changed, 16 insertions(+), 16 deletions(-)
b80b18
 rename data/liveinst/gnome/{fedora-welcome.desktop => centos-welcome.desktop} (59%)
b80b18
 rename data/liveinst/gnome/{fedora-welcome.js => centos-welcome.js} (93%)
b80b18
b80b18
diff --git a/data/liveinst/gnome/Makefile.am b/data/liveinst/gnome/Makefile.am
b80b18
index 4f2f90b..f7bd07a 100644
b80b18
--- a/data/liveinst/gnome/Makefile.am
b80b18
+++ b/data/liveinst/gnome/Makefile.am
b80b18
@@ -16,24 +16,24 @@
b80b18
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
b80b18
 
b80b18
 welcomedir              = $(datadir)/$(PACKAGE_NAME)/gnome
b80b18
-dist_welcome_DATA       = fedora-welcome.desktop
b80b18
-dist_welcome_SCRIPTS    = fedora-welcome.js
b80b18
+dist_welcome_DATA       = centos-welcome.desktop
b80b18
+dist_welcome_SCRIPTS    = centos-welcome.js
b80b18
 
b80b18
 MAINTAINERCLEANFILES = Makefile.in
b80b18
 
b80b18
 # Merge the translations into the desktop file
b80b18
 # Use the merged translations in $(builddir). If no merged translations exist,
b80b18
 # just exit.
b80b18
-# Rename fedora-welcome.js to just fedora-welcome
b80b18
+# Rename centos-welcome.js to just centos-welcome
b80b18
 install-data-hook:
b80b18
 	for p in $(top_builddir)/po/*.mpo ; do \
b80b18
 	    [ -e $$p ] || exit 0 ; \
b80b18
-	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/fedora-welcome.desktop \
b80b18
+	    $(MSGFMT) --desktop --template=$(DESTDIR)$(welcomedir)/centos-welcome.desktop \
b80b18
 	        --locale=$$(basename $$p .mpo) \
b80b18
-		-o $(DESTDIR)$(welcomedir)/fedora-welcome.desktop.new $$p || exit 1 ; \
b80b18
-	    mv $(DESTDIR)$(welcomedir)/fedora-welcome.desktop.new $(DESTDIR)$(welcomedir)/fedora-welcome.desktop || exit 1 ; \
b80b18
+		-o $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $$p || exit 1 ; \
b80b18
+	    mv $(DESTDIR)$(welcomedir)/centos-welcome.desktop.new $(DESTDIR)$(welcomedir)/centos-welcome.desktop || exit 1 ; \
b80b18
 	done
b80b18
-	cd $(DESTDIR)$(welcomedir) && mv fedora-welcome.js fedora-welcome
b80b18
+	cd $(DESTDIR)$(welcomedir) && mv centos-welcome.js centos-welcome
b80b18
 
b80b18
 uninstall-hook:
b80b18
-	-cd $(DESTDIR)$(welcomedir) && rm -f fedora-welcome
b80b18
+	-cd $(DESTDIR)$(welcomedir) && rm -f centos-welcome
b80b18
diff --git a/data/liveinst/gnome/fedora-welcome.desktop b/data/liveinst/gnome/centos-welcome.desktop
b80b18
similarity index 59%
b80b18
rename from data/liveinst/gnome/fedora-welcome.desktop
b80b18
rename to data/liveinst/gnome/centos-welcome.desktop
b80b18
index 60e5c38..ce68d92 100644
b80b18
--- a/data/liveinst/gnome/fedora-welcome.desktop
b80b18
+++ b/data/liveinst/gnome/centos-welcome.desktop
b80b18
@@ -1,6 +1,6 @@
b80b18
 [Desktop Entry]
b80b18
-Name=Welcome to Fedora
b80b18
-Exec=/usr/share/anaconda/gnome/fedora-welcome
b80b18
+Name=Welcome to CentOS Stream
b80b18
+Exec=/usr/share/anaconda/gnome/centos-welcome
b80b18
 Terminal=false
b80b18
 Type=Application
b80b18
 StartupNotify=true
b80b18
diff --git a/data/liveinst/gnome/fedora-welcome.js b/data/liveinst/gnome/centos-welcome.js
b80b18
similarity index 93%
b80b18
rename from data/liveinst/gnome/fedora-welcome.js
b80b18
rename to data/liveinst/gnome/centos-welcome.js
b80b18
index 0520557..6b04106 100755
b80b18
--- a/data/liveinst/gnome/fedora-welcome.js
b80b18
+++ b/data/liveinst/gnome/centos-welcome.js
b80b18
@@ -62,7 +62,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
                                                 default_width: 600,
b80b18
                                                 default_height: 550,
b80b18
                                                 skip_taskbar_hint: true,
b80b18
-                                                title: _("Welcome to Fedora"),
b80b18
+                                                title: _("Welcome to CentOS Stream"),
b80b18
                                                 window_position: Gtk.WindowPosition.CENTER });
b80b18
       this.window.connect('key-press-event', Lang.bind(this,
b80b18
           function(w, event) {
b80b18
@@ -91,7 +91,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
                                      spacing: 16 });
b80b18
       tryContent.add(new Gtk.Image({ icon_name: 'media-optical',
b80b18
                                      pixel_size: 256 }));
b80b18
-      tryContent.add(makeLabel(_("Try Fedora"), true));
b80b18
+      tryContent.add(makeLabel(_("Try CentOS"), true));
b80b18
 
b80b18
       let tryButton = new Gtk.Button({ child: tryContent });
b80b18
       buttonBox.add(tryButton);
b80b18
@@ -99,7 +99,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
       let installContent = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
b80b18
                                          spacing: 16 });
b80b18
 
b80b18
-      // provided by the 'fedora-logos' package
b80b18
+      // provided by the 'centos-logos' package
b80b18
       installContent.add(new Gtk.Image({ icon_name: 'org.fedoraproject.AnacondaInstaller',
b80b18
                                          pixel_size: 256 }));
b80b18
       installContent.add(makeLabel(anacondaApp.get_name(), true));
b80b18
@@ -107,7 +107,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
       let installButton = new Gtk.Button({ child: installContent });
b80b18
       buttonBox.add(installButton);
b80b18
 
b80b18
-      this._label = makeLabel(_("You are currently running Fedora from live media.\nYou can install Fedora now, or choose \"Install to Hard Drive\" in the Activities Overview at any later time."), false);
b80b18
+      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);
b80b18
       mainGrid.add(this._label);
b80b18
 
b80b18
       installButton.connect('clicked', Lang.bind(this,
b80b18
@@ -121,7 +121,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
               buttonBox.destroy();
b80b18
               this._label.destroy();
b80b18
 
b80b18
-              // provided by the 'fedora-logos' package
b80b18
+              // provided by the 'centos-logos' package
b80b18
               let image = new Gtk.Image({ icon_name: 'org.fedoraproject.AnacondaInstaller',
b80b18
                                           pixel_size: 256,
b80b18
                                           halign: Gtk.Align.CENTER });
b80b18
@@ -148,7 +148,7 @@ const WelcomeWindow = new Lang.Class({
b80b18
 Gettext.bindtextdomain('anaconda', LOCALE_DIR);
b80b18
 Gettext.textdomain('anaconda');
b80b18
 
b80b18
-GLib.set_prgname('fedora-welcome');
b80b18
+GLib.set_prgname('centos-welcome');
b80b18
 Gtk.init(null, null);
b80b18
 Gtk.Settings.get_default().gtk_application_prefer_dark_theme = true;
b80b18
 
b80b18
-- 
b80b18
2.43.0
b80b18