From 08c54ac39049dd0239a35a76855627286ff53073 Mon Sep 17 00:00:00 2001 From: Matt C Date: Sat, 17 Sep 2022 18:56:26 +0000 Subject: [PATCH] Refactor to match Crystal branding --- README.md | 7 +- extension.js | 40 +- icons/arch-error-symbolic.svg | 233 ----------- icons/arch-lit-symbolic.svg | 171 -------- icons/arch-unknown-symbolic.svg | 395 ------------------ icons/arch-updates-symbolic.svg | 316 -------------- icons/arch-uptodate-symbolic.svg | 171 -------- icons/crystal-error-symbolic.svg | 17 + icons/crystal-lit-symbolic.svg | 11 + icons/crystal-unknown-symbolic.svg | 19 + icons/crystal-updates-symbolic.svg | 22 + icons/crystal-uptodate-symbolic.svg | 11 + locale/ar/arch-update.po | 4 +- locale/arch-update.pot | 4 +- locale/ca/arch-update.po | 8 +- locale/cs_CZ/arch-update.po | 8 +- locale/de_DE/arch-update.po | 8 +- locale/eo/arch-update.po | 8 +- locale/es/arch-update.po | 6 +- locale/et/arch-update.po | 8 +- locale/fa_IR/arch-update.po | 4 +- locale/fi_FI/arch-update.po | 8 +- locale/fr/arch-update.po | 6 +- locale/he_IL/he_IL.po | 8 +- locale/hu_HU/arch-update.po | 8 +- locale/it_IT/arch-update.po | 8 +- locale/ko/ko.po | 4 +- locale/nb_NO/arch-update.po | 8 +- locale/nl/arch-update.po | 8 +- locale/oc/arch-update.po | 8 +- locale/pl/arch-update.po | 4 +- locale/pt_BR/arch-update.po | 8 +- locale/ro/arch-update.po | 10 +- locale/ru_RU/arch-update.po | 10 +- locale/sk/arch-update.po | 12 +- locale/sr/arch-update.po | 4 +- locale/sr@latin/arch-update.po | 10 +- locale/sv/arch-update.po | 8 +- locale/tr_TR/arch-update.po | 8 +- locale/uk_UA/arch-update.po | 10 +- locale/zh_CN/arch-update.po | 6 +- metadata.json | 8 +- prefs.js | 10 +- prefs.xml | 8 +- ...e.shell.extensions.arch-update.gschema.xml | 4 +- stylesheet.css | 8 +- 46 files changed, 229 insertions(+), 1436 deletions(-) delete mode 100644 icons/arch-error-symbolic.svg delete mode 100644 icons/arch-lit-symbolic.svg delete mode 100644 icons/arch-unknown-symbolic.svg delete mode 100644 icons/arch-updates-symbolic.svg delete mode 100644 icons/arch-uptodate-symbolic.svg create mode 100644 icons/crystal-error-symbolic.svg create mode 100644 icons/crystal-lit-symbolic.svg create mode 100644 icons/crystal-unknown-symbolic.svg create mode 100644 icons/crystal-updates-symbolic.svg create mode 100644 icons/crystal-uptodate-symbolic.svg diff --git a/README.md b/README.md index 1d32ec2..1f8052c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# arch-update -Update indicator for Arch Linux and GNOME Shell +# crystal-update +Update indicator for Crystal Linux and GNOME Shell ## Warning for Gnome 42 Default update command tries to run "gnome-terminal". @@ -20,7 +20,7 @@ It's on extensions.gnome.org : https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/ ## Install from AUR -Thanks to michiwend you can install it from Arch Linux User Repository : gnome-shell-extension-arch-update +Thanks to michiwend you can install it from Crystal Linux User Repository : gnome-shell-extension-arch-update https://aur.archlinux.org/packages/gnome-shell-extension-arch-update/ ## Manual install @@ -234,7 +234,6 @@ To install, simply download as zip and unzip contents in ~/.local/share/gnome-sh - Czech and German languages added ## Credits -All icons are based on Thayer Williams' Archer logo, winner of Arch Linux logo contest. Some portions of the extension were inspired from Touchad Indicator and Lock keys. https://github.com/orangeshirt/gnome-shell-extension-touchpad-indicator diff --git a/extension.js b/extension.js index 130c239..8818e9c 100644 --- a/extension.js +++ b/extension.js @@ -1,18 +1,18 @@ /* - This file is part of Arch Linux Updates Indicator + This file is part of Crystal Linux Updates Indicator - Arch Linux Updates Indicator is free software: you can redistribute it and/or modify + Crystal Linux Updates Indicator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Arch Linux Updates Indicator is distributed in the hope that it will be useful, + Crystal Linux Updates Indicator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Arch Linux Updates Indicator. If not, see . + along with Crystal Linux Updates Indicator. If not, see . Copyright 2016-2022 Raphaël Rochet */ @@ -53,7 +53,7 @@ let CHECK_INTERVAL = 60*60; // 1h let NOTIFY = false; let HOWMUCH = 0; let TRANSIENT = true; -let UPDATE_CMD = "gnome-terminal -- /bin/sh -c \"sudo pacman -Syu ; echo Done - Press enter to exit; read _\" "; +let UPDATE_CMD = "gnome-terminal -- /bin/sh -c \"ame upg ; echo Done - Press enter to exit; read _\" "; let CHECK_CMD = "/usr/bin/checkupdates"; let MANAGER_CMD = ""; let PACMAN_DIR = "/var/lib/pacman/local"; @@ -73,7 +73,7 @@ function init() { ExtensionUtils.initTranslations("arch-update"); } -const ArchUpdateIndicator = GObject.registerClass( +const CrystalUpdateIndicator = GObject.registerClass( { _TimeoutId: null, _FirstTimeoutId: null, @@ -82,11 +82,11 @@ const ArchUpdateIndicator = GObject.registerClass( _updateProcess_pid: null, _updateList: [], }, -class ArchUpdateIndicator extends PanelMenu.Button { +class CrystalUpdateIndicator extends PanelMenu.Button { _init() { super._init(0); - this.updateIcon = new St.Icon({gicon: this._getCustIcon('arch-unknown-symbolic'), style_class: 'system-status-icon'}); + this.updateIcon = new St.Icon({gicon: this._getCustIcon('crystal-unknown-symbolic'), style_class: 'system-status-icon'}); let box = new St.BoxLayout({ vertical: false, style_class: 'panel-status-menu-box' }); this.label = new St.Label({ text: '', @@ -327,7 +327,7 @@ class ArchUpdateIndicator extends PanelMenu.Button { _showChecking(isChecking) { if (isChecking == true) { - this.updateIcon.set_gicon( this._getCustIcon('arch-unknown-symbolic') ); + this.updateIcon.set_gicon( this._getCustIcon('crystal-unknown-symbolic') ); this.checkNowMenuContainer.actor.visible = false; this.checkingMenuItem.actor.visible = true;; } else { @@ -340,7 +340,7 @@ class ArchUpdateIndicator extends PanelMenu.Button { updatesCount = typeof updatesCount === 'number' ? updatesCount : UPDATES_PENDING; if (updatesCount > 0) { // Updates pending - this.updateIcon.set_gicon( this._getCustIcon('arch-updates-symbolic') ); + this.updateIcon.set_gicon( this._getCustIcon('crystal-updates-symbolic') ); this._updateMenuExpander( true, Gettext.ngettext( "%d update pending", "%d updates pending", updatesCount ).format(updatesCount) ); this.label.set_text(updatesCount.toString()); if (NOTIFY && UPDATES_PENDING < updatesCount) { @@ -367,13 +367,13 @@ class ArchUpdateIndicator extends PanelMenu.Button { if (updateList.length > 0) { // Show notification only if there's new updates this._showNotification( - Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updateList.length ), + Gettext.ngettext( "New Crystal Linux Update", "New Crystal Linux Updates", updateList.length ), updateList.join(', ') ); } } else { this._showNotification( - Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updatesCount ), + Gettext.ngettext( "New Crystal Linux Update", "New Crystal Linux Updates", updatesCount ), Gettext.ngettext( "There is %d update pending", "There are %d updates pending", updatesCount ).format(updatesCount) ); } @@ -384,20 +384,20 @@ class ArchUpdateIndicator extends PanelMenu.Button { this.label.set_text(''); if (updatesCount == -1) { // Unknown - this.updateIcon.set_gicon( this._getCustIcon('arch-unknown-symbolic') ); + this.updateIcon.set_gicon( this._getCustIcon('crystal-unknown-symbolic') ); this._updateMenuExpander( false, '' ); } else if (updatesCount == -2) { // Error - this.updateIcon.set_gicon( this._getCustIcon('arch-error-symbolic') ); - if ( this.lastUnknowErrorString.indexOf("/usr/bin/checkupdates") > 0 ) { + this.updateIcon.set_gicon( this._getCustIcon('crystal-error-symbolic') ); + if ( this.lastUnknowErrorString.indexOf("/usr/bin/ame checkupdates") > 0 ) { // We do a special change here due to checkupdates moved to pacman-contrib - this._updateMenuExpander( false, _("Note : you have to install pacman-contrib to use the 'checkupdates' script.") ); + this._updateMenuExpander( false, _("Note : you have to install ame to use the 'ame checkupdates' command.") ); } else { this._updateMenuExpander( false, _('Error') + "\n" + this.lastUnknowErrorString ); } } else { // Up to date - this.updateIcon.set_gicon( this._getCustIcon('arch-uptodate-symbolic') ); + this.updateIcon.set_gicon( this._getCustIcon('crystal-uptodate-symbolic') ); this._updateMenuExpander( false, _('Up to date :)') ); UPDATES_LIST = []; // Reset stored list } @@ -524,7 +524,7 @@ class ArchUpdateIndicator extends PanelMenu.Button { // We have to prepare this only once this._notifSource = new MessageTray.SystemNotificationSource(); this._notifSource.createIcon = function() { - let gicon = Gio.icon_new_for_string( Me.dir.get_child('icons').get_path() + "/arch-lit-symbolic.svg" ); + let gicon = Gio.icon_new_for_string( Me.dir.get_child('icons').get_path() + "/crystal-lit-symbolic.svg" ); return new St.Icon({ gicon: gicon }); }; // Take care of note leaving unneeded sources @@ -550,8 +550,8 @@ class ArchUpdateIndicator extends PanelMenu.Button { let archupdateindicator; function enable() { - archupdateindicator = new ArchUpdateIndicator(); - Main.panel.addToStatusArea('ArchUpdateIndicator', archupdateindicator); + archupdateindicator = new CrystalUpdateIndicator(); + Main.panel.addToStatusArea('CrystalUpdateIndicator', archupdateindicator); archupdateindicator._positionChanged(); } diff --git a/icons/arch-error-symbolic.svg b/icons/arch-error-symbolic.svg deleted file mode 100644 index fa32162..0000000 --- a/icons/arch-error-symbolic.svg +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - diff --git a/icons/arch-lit-symbolic.svg b/icons/arch-lit-symbolic.svg deleted file mode 100644 index 92a9704..0000000 --- a/icons/arch-lit-symbolic.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/icons/arch-unknown-symbolic.svg b/icons/arch-unknown-symbolic.svg deleted file mode 100644 index 9831e3e..0000000 --- a/icons/arch-unknown-symbolic.svg +++ /dev/null @@ -1,395 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/arch-updates-symbolic.svg b/icons/arch-updates-symbolic.svg deleted file mode 100644 index 9c40fd4..0000000 --- a/icons/arch-updates-symbolic.svg +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - diff --git a/icons/arch-uptodate-symbolic.svg b/icons/arch-uptodate-symbolic.svg deleted file mode 100644 index e8dad98..0000000 --- a/icons/arch-uptodate-symbolic.svg +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/icons/crystal-error-symbolic.svg b/icons/crystal-error-symbolic.svg new file mode 100644 index 0000000..520ea70 --- /dev/null +++ b/icons/crystal-error-symbolic.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/icons/crystal-lit-symbolic.svg b/icons/crystal-lit-symbolic.svg new file mode 100644 index 0000000..8e55df8 --- /dev/null +++ b/icons/crystal-lit-symbolic.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/icons/crystal-unknown-symbolic.svg b/icons/crystal-unknown-symbolic.svg new file mode 100644 index 0000000..afd3115 --- /dev/null +++ b/icons/crystal-unknown-symbolic.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/icons/crystal-updates-symbolic.svg b/icons/crystal-updates-symbolic.svg new file mode 100644 index 0000000..e0f2958 --- /dev/null +++ b/icons/crystal-updates-symbolic.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/crystal-uptodate-symbolic.svg b/icons/crystal-uptodate-symbolic.svg new file mode 100644 index 0000000..f9aa125 --- /dev/null +++ b/icons/crystal-uptodate-symbolic.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/locale/ar/arch-update.po b/locale/ar/arch-update.po index dd14f06..713531b 100644 --- a/locale/ar/arch-update.po +++ b/locale/ar/arch-update.po @@ -54,8 +54,8 @@ msgstr[4] "%d تحديثا منتظرًا" msgstr[5] "%d تحديث منتظر" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "لا تحديثات أرتش لينكس جديدة" msgstr[1] "تحديث أرتش لينكس جديد" msgstr[2] "تحديثا أرتش لينكس جديدان" diff --git a/locale/arch-update.pot b/locale/arch-update.pot index 0f82e07..f65ad4b 100644 --- a/locale/arch-update.pot +++ b/locale/arch-update.pot @@ -50,8 +50,8 @@ msgstr[0] "" msgstr[1] "" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "" msgstr[1] "" diff --git a/locale/ca/arch-update.po b/locale/ca/arch-update.po index e93b8c6..3c3ed8a 100644 --- a/locale/ca/arch-update.po +++ b/locale/ca/arch-update.po @@ -50,10 +50,10 @@ msgstr[0] "%d actualització pendent" msgstr[1] "%d actualitzacions pendents" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nova actualització d'Arch Linux" -msgstr[1] "Noves actualitzacions d'Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nova actualització d'Crystal Linux" +msgstr[1] "Noves actualitzacions d'Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/cs_CZ/arch-update.po b/locale/cs_CZ/arch-update.po index d031623..3e7d588 100644 --- a/locale/cs_CZ/arch-update.po +++ b/locale/cs_CZ/arch-update.po @@ -49,10 +49,10 @@ msgstr[0] "%d čekající aktualizace" msgstr[1] "%d čekajících aktualizací" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nová aktualizace pro Arch Linux" -msgstr[1] "Nové aktualizace pro Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nová aktualizace pro Crystal Linux" +msgstr[1] "Nové aktualizace pro Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/de_DE/arch-update.po b/locale/de_DE/arch-update.po index 2b3ec63..379f7c7 100644 --- a/locale/de_DE/arch-update.po +++ b/locale/de_DE/arch-update.po @@ -52,10 +52,10 @@ msgstr[0] "%d ausstehende Aktualisierung" msgstr[1] "%d ausstehende Aktualisierungen" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Neue Arch-Linux-Aktualisierung" -msgstr[1] "Neue Arch-Linux-Aktualisierungen" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Neue Crystal-Linux-Aktualisierung" +msgstr[1] "Neue Crystal-Linux-Aktualisierungen" #: extension.js:377 #, javascript-format diff --git a/locale/eo/arch-update.po b/locale/eo/arch-update.po index 89e2c8a..153131a 100644 --- a/locale/eo/arch-update.po +++ b/locale/eo/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d ĝisdatigo pritraktata" msgstr[1] "%d ĝisdatigoj pritraktataj" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nova Arch Linux ĝisdatigo" -msgstr[1] "Novaj Arch Linux ĝisdatigoj" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nova Crystal Linux ĝisdatigo" +msgstr[1] "Novaj Crystal Linux ĝisdatigoj" #: extension.js:377 #, javascript-format diff --git a/locale/es/arch-update.po b/locale/es/arch-update.po index 24131d4..06f54b2 100644 --- a/locale/es/arch-update.po +++ b/locale/es/arch-update.po @@ -6,7 +6,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Arch-Update\n" +"Project-Id-Version: Crystal-Update\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-08-01 14:43+0200\n" "PO-Revision-Date: 2021-02-12 11:13+0100\n" @@ -51,8 +51,8 @@ msgstr[0] "%d actualización pendiente" msgstr[1] "%d actualizaciones pendientes" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "Nueva actualización del sistema" msgstr[1] "Nuevas actualizaciones del sistema" diff --git a/locale/et/arch-update.po b/locale/et/arch-update.po index cb857bc..d6c3484 100644 --- a/locale/et/arch-update.po +++ b/locale/et/arch-update.po @@ -50,10 +50,10 @@ msgstr[0] "%d uuendus ootel" msgstr[1] "%d uuendust ootel" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Uus Arch Linux'i uuendus" -msgstr[1] "Uued Arch Linux'i uuendused" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Uus Crystal Linux'i uuendus" +msgstr[1] "Uued Crystal Linux'i uuendused" #: extension.js:377 #, javascript-format diff --git a/locale/fa_IR/arch-update.po b/locale/fa_IR/arch-update.po index 979d172..b823c6f 100644 --- a/locale/fa_IR/arch-update.po +++ b/locale/fa_IR/arch-update.po @@ -49,8 +49,8 @@ msgid_plural "%d updates pending" msgstr[0] "%d بروزرسانی موجود است" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "بروزرسانی جدید آرچ لینوکس" #: extension.js:377 diff --git a/locale/fi_FI/arch-update.po b/locale/fi_FI/arch-update.po index e04a2cf..9557f91 100644 --- a/locale/fi_FI/arch-update.po +++ b/locale/fi_FI/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d päivitys saatavilla" msgstr[1] "%d päivitystä saatavilla" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Uusi Arch Linux päivitys" -msgstr[1] "Uusia Arch Linux päivityksiä" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Uusi Crystal Linux päivitys" +msgstr[1] "Uusia Crystal Linux päivityksiä" #: extension.js:377 #, javascript-format diff --git a/locale/fr/arch-update.po b/locale/fr/arch-update.po index e5b60be..78a8b04 100644 --- a/locale/fr/arch-update.po +++ b/locale/fr/arch-update.po @@ -5,7 +5,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Arch-Update\n" +"Project-Id-Version: Crystal-Update\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-08-01 14:43+0200\n" "PO-Revision-Date: 2022-08-01 14:46+0200\n" @@ -50,8 +50,8 @@ msgstr[0] "%d mise à jour en attente" msgstr[1] "%d mises à jour en attente" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "Nouvelle mise à jour" msgstr[1] "Nouvelles mises à jour" diff --git a/locale/he_IL/he_IL.po b/locale/he_IL/he_IL.po index 67d9eb1..0272b87 100644 --- a/locale/he_IL/he_IL.po +++ b/locale/he_IL/he_IL.po @@ -50,10 +50,10 @@ msgstr[0] "קיים עדכון %d" msgstr[1] "קיימים %d עדכונים" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "עדכון חדש ל Arch Linux" -msgstr[1] "עדכונים חדשים ל Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "עדכון חדש ל Crystal Linux" +msgstr[1] "עדכונים חדשים ל Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/hu_HU/arch-update.po b/locale/hu_HU/arch-update.po index eabdc8a..6b9fce2 100644 --- a/locale/hu_HU/arch-update.po +++ b/locale/hu_HU/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d frissítés függőben" msgstr[1] "%d frissítés függőben" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Új Arch Linux frissítés" -msgstr[1] "Új Arch Linux frissítések" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Új Crystal Linux frissítés" +msgstr[1] "Új Crystal Linux frissítések" #: extension.js:377 #, javascript-format diff --git a/locale/it_IT/arch-update.po b/locale/it_IT/arch-update.po index b886f31..93395de 100644 --- a/locale/it_IT/arch-update.po +++ b/locale/it_IT/arch-update.po @@ -50,10 +50,10 @@ msgstr[0] "1 aggiornamento disponibile" msgstr[1] "%d aggiornamenti disponibili" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nuovo aggiornamento di Arch Linux" -msgstr[1] "Nuovi aggiornamenti di Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nuovo aggiornamento di Crystal Linux" +msgstr[1] "Nuovi aggiornamenti di Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/ko/ko.po b/locale/ko/ko.po index 0bccd3c..e509ca6 100644 --- a/locale/ko/ko.po +++ b/locale/ko/ko.po @@ -49,8 +49,8 @@ msgid_plural "%d updates pending" msgstr[0] "업데이트 %d개 대기 중" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "새로운 업데이트가 있습니다." #: extension.js:377 diff --git a/locale/nb_NO/arch-update.po b/locale/nb_NO/arch-update.po index 33995d8..4dfcec5 100644 --- a/locale/nb_NO/arch-update.po +++ b/locale/nb_NO/arch-update.po @@ -48,10 +48,10 @@ msgstr[0] "%d oppdatering venter" msgstr[1] "%d oppdateringer venter" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Ny Arch Linux-oppdatering" -msgstr[1] "Nye Arch Linux-oppdateringer" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Ny Crystal Linux-oppdatering" +msgstr[1] "Nye Crystal Linux-oppdateringer" #: extension.js:377 #, javascript-format diff --git a/locale/nl/arch-update.po b/locale/nl/arch-update.po index 6929e8a..fdd41ac 100644 --- a/locale/nl/arch-update.po +++ b/locale/nl/arch-update.po @@ -50,10 +50,10 @@ msgstr[0] "%d update in de wachtrij" msgstr[1] "%d updates in de wachtrij" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nieuwe Arch Linux-update" -msgstr[1] "Nieuwe Arch Linux-updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nieuwe Crystal Linux-update" +msgstr[1] "Nieuwe Crystal Linux-updates" #: extension.js:377 #, javascript-format diff --git a/locale/oc/arch-update.po b/locale/oc/arch-update.po index 6ff313a..ed50913 100644 --- a/locale/oc/arch-update.po +++ b/locale/oc/arch-update.po @@ -50,10 +50,10 @@ msgstr[0] "%d mesa a jorn en espèra" msgstr[1] "%d mesas a jorn en espèra" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Mesa a jorn Linux Arch" -msgstr[1] "Mesas a jorn Linux Arch" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Mesa a jorn Linux Crystal" +msgstr[1] "Mesas a jorn Linux Crystal" #: extension.js:377 #, javascript-format diff --git a/locale/pl/arch-update.po b/locale/pl/arch-update.po index 16613c5..e86b565 100644 --- a/locale/pl/arch-update.po +++ b/locale/pl/arch-update.po @@ -52,8 +52,8 @@ msgstr[1] "dostępnych aktualizacji" #: extension.js:370 extension.js:376 #, fuzzy -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "Nowe aktualizacje" msgstr[1] "Nowe aktualizacje" diff --git a/locale/pt_BR/arch-update.po b/locale/pt_BR/arch-update.po index 9ef25e3..06baee3 100644 --- a/locale/pt_BR/arch-update.po +++ b/locale/pt_BR/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d atualização pendente" msgstr[1] "%d atualizações pendentes" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nova atualização do Arch Linux" -msgstr[1] "Novas atualizações do Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nova atualização do Crystal Linux" +msgstr[1] "Novas atualizações do Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/ro/arch-update.po b/locale/ro/arch-update.po index 834b664..190314d 100644 --- a/locale/ro/arch-update.po +++ b/locale/ro/arch-update.po @@ -53,11 +53,11 @@ msgstr[1] "%d actualizări în așteptare" msgstr[2] "%d de actualizări în așteptare" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Actualizare nouă pentru Arch Linux" -msgstr[1] "Actualizări noi pentru Arch Linux" -msgstr[2] "Actualizări noi pentru Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Actualizare nouă pentru Crystal Linux" +msgstr[1] "Actualizări noi pentru Crystal Linux" +msgstr[2] "Actualizări noi pentru Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/ru_RU/arch-update.po b/locale/ru_RU/arch-update.po index 9eadcb2..80f5f72 100644 --- a/locale/ru_RU/arch-update.po +++ b/locale/ru_RU/arch-update.po @@ -52,11 +52,11 @@ msgstr[1] "%d обновления в ожидании" msgstr[2] "%d обновлений в ожидании" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Новое обновление Arch Linux" -msgstr[1] "Новые обновления Arch Linux" -msgstr[2] "Новые обновления Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Новое обновление Crystal Linux" +msgstr[1] "Новые обновления Crystal Linux" +msgstr[2] "Новые обновления Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/sk/arch-update.po b/locale/sk/arch-update.po index 25012fc..8757353 100644 --- a/locale/sk/arch-update.po +++ b/locale/sk/arch-update.po @@ -1,4 +1,4 @@ -# Slovak translation for Arch-update. +# Slovak translation for Crystal-update. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Dušan Kazik , 2016, 2017. @@ -51,11 +51,11 @@ msgstr[1] "%d dostupné aktualizácie" msgstr[2] "%d dostupných aktualizácií" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nová aktualizácia systému Arch" -msgstr[1] "Nové aktualizácie systému Arch" -msgstr[2] "Nové aktualizácie systému Arch" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nová aktualizácia systému Crystal" +msgstr[1] "Nové aktualizácie systému Crystal" +msgstr[2] "Nové aktualizácie systému Crystal" #: extension.js:377 #, javascript-format diff --git a/locale/sr/arch-update.po b/locale/sr/arch-update.po index 3a3d9fa..37ecb62 100644 --- a/locale/sr/arch-update.po +++ b/locale/sr/arch-update.po @@ -52,8 +52,8 @@ msgstr[1] "%d надоградње на чекању" msgstr[2] "%d надоградњи на чекању" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" msgstr[0] "Нова надоградња Арчлинукса" msgstr[1] "Нове надоградње Арчлинукса" msgstr[2] "Нове надоградње Арчлинукса" diff --git a/locale/sr@latin/arch-update.po b/locale/sr@latin/arch-update.po index 91f5df0..c2853ef 100644 --- a/locale/sr@latin/arch-update.po +++ b/locale/sr@latin/arch-update.po @@ -52,11 +52,11 @@ msgstr[1] "%d nadogradnje na čekanju" msgstr[2] "%d nadogradnji na čekanju" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Nova nadogradnja Archlinuksa" -msgstr[1] "Nove nadogradnje Archlinuksa" -msgstr[2] "Nove nadogradnje Archlinuksa" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Nova nadogradnja Crystallinuksa" +msgstr[1] "Nove nadogradnje Crystallinuksa" +msgstr[2] "Nove nadogradnje Crystallinuksa" #: extension.js:377 #, javascript-format diff --git a/locale/sv/arch-update.po b/locale/sv/arch-update.po index 6491af0..be23931 100644 --- a/locale/sv/arch-update.po +++ b/locale/sv/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d uppdatering väntar" msgstr[1] "%d uppdateringar väntar" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Ny Arch Linux-uppdatering" -msgstr[1] "Nya Arch Linux-uppdateringar§" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Ny Crystal Linux-uppdatering" +msgstr[1] "Nya Crystal Linux-uppdateringar§" #: extension.js:377 #, javascript-format diff --git a/locale/tr_TR/arch-update.po b/locale/tr_TR/arch-update.po index b1b205b..174cbc4 100644 --- a/locale/tr_TR/arch-update.po +++ b/locale/tr_TR/arch-update.po @@ -51,10 +51,10 @@ msgstr[0] "%d güncelleme bekliyor" msgstr[1] "%d güncelleme bekliyor" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Yeni Arch Linux Güncellemesi" -msgstr[1] "Yeni Arch Linux Güncellemesi" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Yeni Crystal Linux Güncellemesi" +msgstr[1] "Yeni Crystal Linux Güncellemesi" #: extension.js:377 #, javascript-format diff --git a/locale/uk_UA/arch-update.po b/locale/uk_UA/arch-update.po index f7ac709..82cb81a 100644 --- a/locale/uk_UA/arch-update.po +++ b/locale/uk_UA/arch-update.po @@ -52,11 +52,11 @@ msgstr[1] "%d оновлення очікують" msgstr[2] "%d оновлень очікують" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Доступне оновлення Arch Linux" -msgstr[1] "Доступні оновлення Arch Linux" -msgstr[2] "Доступні оновлення Arch Linux" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Доступне оновлення Crystal Linux" +msgstr[1] "Доступні оновлення Crystal Linux" +msgstr[2] "Доступні оновлення Crystal Linux" #: extension.js:377 #, javascript-format diff --git a/locale/zh_CN/arch-update.po b/locale/zh_CN/arch-update.po index 42ae6c8..bf67f1b 100644 --- a/locale/zh_CN/arch-update.po +++ b/locale/zh_CN/arch-update.po @@ -49,9 +49,9 @@ msgid_plural "%d updates pending" msgstr[0] "%d 个更新正等待操作" #: extension.js:370 extension.js:376 -msgid "New Arch Linux Update" -msgid_plural "New Arch Linux Updates" -msgstr[0] "Arch Linux 有新的更新" +msgid "New Crystal Linux Update" +msgid_plural "New Crystal Linux Updates" +msgstr[0] "Crystal Linux 有新的更新" #: extension.js:377 #, javascript-format diff --git a/metadata.json b/metadata.json index c5fb786..49cf014 100644 --- a/metadata.json +++ b/metadata.json @@ -1,8 +1,8 @@ { - "description": "Update indicator for Arch Linux and GNOME Shell.\n** Note : you now need to install the package pacman-contrib to use the checkupdates script. **\n Can support AUR or other distros by changing command used to check for and apply updates.\n See README about Gnome Console", - "name": "Arch Linux Updates Indicator", + "description": "Update indicator for Crystal Linux and GNOME Shell.\n** Note : you now need to install the package pacman-contrib to use the checkupdates script. **\n Can support AUR or other distros by changing command used to check for and apply updates.\n See README about Gnome42 Console", + "name": "Crystal Linux Updates Indicator", "shell-version": [ "40", "41", "42", "43" ], - "url": "https://github.com/RaphaelRochet/arch-update", - "uuid": "arch-update@RaphaelRochet", + "url": "https://github.com/crystal-linux/crystal-update", + "uuid": "crystal-update@CrystalTeam", "version": 51 } diff --git a/prefs.js b/prefs.js index f9be23f..ff69cdd 100644 --- a/prefs.js +++ b/prefs.js @@ -1,18 +1,18 @@ /* - This file is part of Arch Linux Updates Indicator + This file is part of Crystal Linux Updates Indicator - Arch Linux Updates Indicator is free software: you can redistribute it and/or modify + Crystal Linux Updates Indicator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Arch Linux Updates Indicator is distributed in the hope that it will be useful, + Crystal Linux Updates Indicator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Arch Linux Updates Indicator. If not, see . + along with Crystal Linux Updates Indicator. If not, see . Copyright 2016-2022 Raphaël Rochet */ @@ -42,7 +42,7 @@ function buildPrefsWidget(){ let box = buildable.get_object('prefs_widget'); let version_label = buildable.get_object('version_info'); - version_label.set_text('[Arch-update v' + Me.metadata.version.toString() + ']'); + version_label.set_text('[Crystal-update v' + Me.metadata.version.toString() + ']'); // Bind fields to settings settings.bind('boot-wait' , buildable.get_object('field_wait') , 'value' , Gio.SettingsBindFlags.DEFAULT); diff --git a/prefs.xml b/prefs.xml index 229a422..a3a65f8 100644 --- a/prefs.xml +++ b/prefs.xml @@ -1,19 +1,19 @@ diff --git a/schemas/org.gnome.shell.extensions.arch-update.gschema.xml b/schemas/org.gnome.shell.extensions.arch-update.gschema.xml index 45a2bd5..5863e42 100644 --- a/schemas/org.gnome.shell.extensions.arch-update.gschema.xml +++ b/schemas/org.gnome.shell.extensions.arch-update.gschema.xml @@ -59,13 +59,13 @@ - "/usr/bin/checkupdates" + "/usr/bin/ame checkupdates" Command to run to check for updated packages. Command to run to check for updated packages. - "gnome-terminal -- /bin/sh -c \"sudo pacman -Syu ; echo Done - Press enter to exit; read _\" " + "gnome-terminal -- /bin/sh -c \"ame upg ; echo Done - Press enter to exit; read _\" " Command to run to update packages. Command to run to update packages. diff --git a/stylesheet.css b/stylesheet.css index bb38ae1..eea818b 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -1,18 +1,18 @@ /* - This file is part of Arch Linux Updates Indicator + This file is part of Crystal Linux Updates Indicator - Arch Linux Updates Indicator is free software: you can redistribute it and/or modify + Crystal Linux Updates Indicator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Arch Linux Updates Indicator is distributed in the hope that it will be useful, + Crystal Linux Updates Indicator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with Arch Linux Updates Indicator. If not, see . + along with Crystal Linux Updates Indicator. If not, see . Copyright 2016-2022 Raphaël Rochet */