Skip to content

Commit

Permalink
v2024.3.20
Browse files Browse the repository at this point in the history
- Update to GNOME 46 and Libadwaita 1.5.
- Arabic language support.
- Italian translations updated.
  • Loading branch information
giantpinkrobots committed Mar 20, 2024
1 parent f9bd582 commit e6d1dc5
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 22 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@

<p align="center">
Supported languages:<br>
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/arab.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/bg.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/by.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/cn.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/gb.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/fr.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/de.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/gr.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/es.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/fr.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/gb.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/it.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/pl.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/ru.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/tr.svg" width=30 />
Expand Down Expand Up @@ -44,6 +46,7 @@ Caution: Flatsweep exclusively looks at the default Flatpak install directory. I
#### Translations:
| Language | Application | Appstream |
|------------|---------------|-------------|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/arab.svg" width=20 /> Arabic|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/bg.svg" width=20 /> Bulgarian|![86%](https://progress-bar.dev/86)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/by.svg" width=20 /> Belarusian|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/cn.svg" width=20 /> Chinese|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
Expand All @@ -52,7 +55,7 @@ Caution: Flatsweep exclusively looks at the default Flatpak install directory. I
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/de.svg" width=20 /> German|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/gr.svg" width=20 /> Greek|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/es.svg" width=20 /> Spanish|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/it.svg" width=20 /> Italian|![0%](https://progress-bar.dev/0)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/it.svg" width=20 /> Italian|![100%](https://progress-bar.dev/0)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/pl.svg" width=20 /> Polish|![1000%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/ru.svg" width=20 /> Russian|![1000%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/tr.svg" width=20 /> Turkish|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
Expand Down Expand Up @@ -140,7 +143,7 @@ You can also translate the appstream information. This is done within the "po" d

- Logo remaking and Spanish translations by [@M-Duardo](https://github.com/M-Duardo)
- Bulgarian translations by [@RacerBG](https://github.com/RacerBG)
- Italian translations by [@albanobattistella](https://github.com/albanobattistella)
- Italian translations by [@albanobattistella](https://github.com/albanobattistella) and [@Methoko](https://github.com/Methoko)
- Russian translations by [@vorons](https://github.com/vorons)
- Czech translations by [@Amerey](https://github.com/Amereyeu)
- German translations by [@saxc](https://github.com/saxc)
Expand All @@ -150,4 +153,5 @@ You can also translate the appstream information. This is done within the "po" d
- French translations by [@rene-coty](https://github.com/rene-coty)
- Belarusian translations by [@k1llo](https://github.com/k1llo)
- Brazilian Portuguese translations by [@mblithium](https://github.com/mblithium)
- Arabic translations by [@zefr0x](https://github.com/zefr0x)

14 changes: 11 additions & 3 deletions data/io.github.giantpinkrobots.flatsweep.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
<metadata_license>FSFAP</metadata_license>
<project_license>MPL-2.0</project_license>

<developer_name>Giant Pink Robots!</developer_name>

<content_rating type="oars-1.1" />
<url type="homepage">https://github.com/giantpinkrobots/flatsweep</url>

<branding>
<color type="primary" scheme_preference="light">#C6D5E9</color>
<color type="primary" scheme_preference="dark">#172F4E</color>
</branding>

<description>
<p>
When you uninstall a Flatpak, it can leave some files behind on your computer. Flatsweep helps you easily get rid of the residue left on your system by uninstalled Flatpaks.
Expand All @@ -33,10 +40,11 @@ Caution: Flatsweep exclusively looks at the default Flatpak install directory. I
</screenshots>

<releases>
<release version="v2023.12.17" date="2023-12-17">
<release version="v2024.3.20" date="2024-03-20">
<description>
<p>- Added a select/deselect all button.</p>
<p>- Brazilian Portuguese language support. (by @mblithium on GitHub)</p>
<p>- Update to GNOME 46 and Libadwaita 1.5.</p>
<p>- Arabic language support.</p>
<p>- Italian translations updated.</p>
</description>
</release>
</releases>
Expand Down
2 changes: 1 addition & 1 deletion io.github.giantpinkrobots.flatsweep.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app-id" : "io.github.giantpinkrobots.flatsweep",
"runtime" : "org.gnome.Platform",
"runtime-version" : "45",
"runtime-version" : "46",
"sdk" : "org.gnome.Sdk",
"command" : "flatsweep",
"finish-args" : [
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('flatsweep',
version: 'v2023.12.17',
version: 'v2024.3.20',
meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
Expand Down
30 changes: 17 additions & 13 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flatsweepVersion = "v2023.12.17"
flatsweepVersion = "v2024.3.20"

import sys
import gi
Expand All @@ -23,7 +23,6 @@
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")

currentLanguage = os.getenv("LANG")
from flatsweep import lang_de as lang

# TRANSLATIONS BEGIN
if currentLanguage.startswith("ar"):
Expand Down Expand Up @@ -56,8 +55,8 @@
from flatsweep import lang_en as lang
#TRANSLATIONS END

class MainWindow(Gtk.ApplicationWindow):
def __init__(self, *args, **kwargs):
class MainWindow(Adw.ApplicationWindow):
def __init__(self, flatsweepapp, *args, **kwargs):
super().__init__(*args, **kwargs)

self.leftoverDataSize = 0
Expand All @@ -70,14 +69,18 @@ def __init__(self, *args, **kwargs):

self.scroll = Gtk.ScrolledWindow()
self.scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
self.set_child(self.scroll)

self.set_title("Flatsweep")
Gtk.Settings.get_default().set_property("gtk-icon-theme-name", "Adwaita")

self.header = Adw.HeaderBar()
self.header.get_style_context().add_class('flat')
self.set_titlebar(self.header)

self.toolbar_view = Adw.ToolbarView()
self.toolbar_view.add_top_bar(self.header)
self.toolbar_view.set_content(self.scroll)

self.set_content(self.toolbar_view)

self.aboutButton = Gtk.Button(label="About")
self.header.pack_start(self.aboutButton)
Expand Down Expand Up @@ -129,7 +132,7 @@ def __init__(self, *args, **kwargs):
self.cleanedButton = Gtk.Button(child=self.cleanedButtonBox)
self.cleanedButton.get_style_context().add_class("pill")
self.cleanedButton.get_style_context().add_class("suggested-action")
self.cleanedButton.connect("clicked", self.exitProgram)
self.cleanedButton.connect("clicked", self.exitProgram, flatsweepapp)

self.cleanedButtonBox2.append(self.cleanedButton)
self.cleanedButtonBox1.append(self.cleanedButtonBox2)
Expand Down Expand Up @@ -163,7 +166,7 @@ def __init__(self, *args, **kwargs):
self.okButton = Gtk.Button(child=self.okButtonBox)
self.okButton.get_style_context().add_class("pill")
self.okButton.get_style_context().add_class("suggested-action")
self.okButton.connect("clicked", self.exitProgram)
self.okButton.connect("clicked", self.exitProgram, flatsweepapp)

self.okButtonBox2.append(self.okButton)
self.okButtonBox1.append(self.okButtonBox2)
Expand Down Expand Up @@ -412,7 +415,7 @@ def firstLaunchDone(self, app):
th.start()

def show_about(self, app):
dialog = Adw.AboutWindow(transient_for=self)
dialog = Adw.AboutDialog()
dialog.set_application_name("Flatsweep")
dialog.set_version(flatsweepVersion)
dialog.set_developer_name("Giant Pink Robots!")
Expand All @@ -423,8 +426,8 @@ def show_about(self, app):
dialog.set_copyright("2023 Giant Pink Robots!\n\n" + lang.text_aboutDialog_Copyright)
dialog.set_developers(["Giant Pink Robots! (@giantpinkrobots) https://github.com/giantpinkrobots"])
dialog.set_application_icon("io.github.giantpinkrobots.flatsweep")
dialog.set_translator_credits("\U0001F1E7\U0001F1F7 Matheus Bastos (@mblithium) https://github.com/mblithium\n\U0001F1E7\U0001F1EC Georgi (@RacerBG) https://github.com/racerbg\n\U0001F1E7\U0001F1FE Yahor Haurylenka (@k1llo) https://github.com/k1llo\n\U0001F1E8\U0001F1FF Amerey (@Amereyeu) https://github.com/amereyeu\n\U0001F1E9\U0001F1EA saxc (@saxc) https://github.com/saxc\n\U0001F1EC\U0001F1F7 Christos Georgiou Mousses (@Christosgm) https://github.com/Christosgm\n\U0001F1EA\U0001F1F8 Ed M.A (@M-Duardo) https://github.com/M-Duardo\n\U0001F1EB\U0001F1F7 rene-coty (@rene-coty) https://github.com/rene-coty\n\U0001F1EE\U0001F1F9 albanobattistella (@albanobattistella) https://github.com/albanobattistella\n\U0001F1F5\U0001F1F1 unsolaci (@unsolaci) https://github.com/unsolaci\n\U0001F1F7\U0001F1FA Сергей Ворон (@vorons) https://github.com/vorons\n\U0001F1E8\U0001F1F3 适然(Sauntor) (@sauntor) https://github.com/sauntor")
dialog.show()
dialog.set_translator_credits("\U0001F1F8\U0001F1E6 zefr0x (@zefr0x) https://github.com/zefr0x\n\U0001F1E7\U0001F1F7 Matheus Bastos (@mblithium) https://github.com/mblithium\n\U0001F1E7\U0001F1EC Georgi (@RacerBG) https://github.com/racerbg\n\U0001F1E7\U0001F1FE Yahor Haurylenka (@k1llo) https://github.com/k1llo\n\U0001F1E8\U0001F1FF Amerey (@Amereyeu) https://github.com/amereyeu\n\U0001F1E9\U0001F1EA saxc (@saxc) https://github.com/saxc\n\U0001F1EC\U0001F1F7 Christos Georgiou Mousses (@Christosgm) https://github.com/Christosgm\n\U0001F1EA\U0001F1F8 Ed M.A (@M-Duardo) https://github.com/M-Duardo\n\U0001F1EB\U0001F1F7 rene-coty (@rene-coty) https://github.com/rene-coty\n\U0001F1EE\U0001F1F9 albanobattistella (@albanobattistella) https://github.com/albanobattistella\n\U0001F1EE\U0001F1F9 Mia (@Methoko) https://github.com/Methoko\n\U0001F1F5\U0001F1F1 unsolaci (@unsolaci) https://github.com/unsolaci\n\U0001F1F7\U0001F1FA Сергей Ворон (@vorons) https://github.com/vorons\n\U0001F1E8\U0001F1F3 适然(Sauntor) (@sauntor) https://github.com/sauntor")
dialog.present(self)

def init_clean(self, app):
if self.allCheckboxesUnchecked == False:
Expand Down Expand Up @@ -459,16 +462,17 @@ def clean(self, app):
self.cleanedLabelErrors.set_markup("<span size=\"15000\">" + lang.text_cleanedWithErrors + "</span>")
self.scroll.set_child(self.boxCleaned)

def exitProgram(self, app):
def exitProgram(self, app, flatsweepapp):
self.destroy()
flatsweepapp.quit()

class MyApp(Adw.Application):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.connect('activate', self.on_activate)

def on_activate(self, app):
self.win = MainWindow(application=app)
self.win = MainWindow(application=app, flatsweepapp=self)
self.win.present()

def main(version):
Expand Down

0 comments on commit e6d1dc5

Please sign in to comment.