zengxyz / rpms / anaconda

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