Skip to content

Commit

Permalink
v2023.11.30
Browse files Browse the repository at this point in the history
  • Loading branch information
giantpinkrobots committed Nov 30, 2023
1 parent 9317288 commit 122bfef
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<p align="center">
Supported languages:<br>
<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/de.svg" width=30 />
<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/gr.svg" width=30 />
Expand Down Expand Up @@ -44,6 +45,7 @@ Caution: Flatsweep exclusively looks at the default Flatpak install directory. I
| Language | Application | Appstream |
|------------|---------------|-------------|
|<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)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/cz.svg" width=20 /> Czech|![0%](https://progress-bar.dev/0)|![100%](https://progress-bar.dev/100)|
|<img src="https://github.com/lipis/flag-icons/raw/main/flags/4x3/fr.svg" width=20 /> French|![100%](https://progress-bar.dev/100)|![100%](https://progress-bar.dev/100)|
Expand Down Expand Up @@ -145,5 +147,6 @@ You can also translate the appstream information. This is done within the "po" d
- Greek translations by [@Christosgm](https://github.com/Christosgm)
- Chinese translations by [@sauntor](https://github.com/sauntor)
- Polish translations by [@unsolaci](https://github.com/unsolaci)

- French translations by [@rene-coty](https://github.com/rene-coty)
- Belarusian translations by [@k1llo](https://github.com/k1llo)

4 changes: 2 additions & 2 deletions data/io.github.giantpinkrobots.flatsweep.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Caution: Flatsweep exclusively looks at the default Flatpak install directory. I
</screenshots>

<releases>
<release version="v2023.11.18" date="2023-11-18">
<release version="v2023.11.30" date="2023-11-30">
<description>
<p>- Built with the new GNOME platform, and a flat style headerbar that makes it look more in line with the new Libadwaita design guidelines.</p>
<p>- Belarusian language support. (by @k1llo on GitHub)</p>
</description>
</release>
</releases>
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.11.18',
version: 'v2023.11.30',
meson_version: '>= 0.62.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
Expand Down
23 changes: 15 additions & 8 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
flatsweepVersion = "v2023.11.18"
flatsweepVersion = "v2023.11.30"

import sys
import gi
Expand All @@ -23,9 +23,9 @@
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("be"):
from flatsweep import lang_be as lang
elif currentLanguage.startswith("bg"):
Expand All @@ -48,7 +48,6 @@
from flatsweep import lang_fr as lang
else:
from flatsweep import lang_en as lang

#TRANSLATIONS END

class MainWindow(Gtk.ApplicationWindow):
Expand Down Expand Up @@ -224,11 +223,19 @@ def __init__(self, *args, **kwargs):
self.boxErrorScreen1.append(self.errorScreen1Label2Box)

#Main Window Box:
self.label = Gtk.Label()
self.label.set_markup("<span size=\"25000\" weight=\"bold\">" + lang.text_leftoverDataAmount + "</span>")
self.mainLabelWrapped = textwrap.wrap(lang.text_leftoverDataAmount, width=20, break_long_words=False)
self.mainLabelBox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.mainLabel = []
self.mainLabelLineIndex = 0
while (self.mainLabelLineIndex < len(self.mainLabelWrapped)):
self.mainLabel.append(Gtk.Label())
self.mainLabel[self.mainLabelLineIndex].set_markup("<span size=\"25000\" weight=\"bold\">" + self.mainLabelWrapped[self.mainLabelLineIndex] + "</span>")
self.mainLabelBox.append(self.mainLabel[self.mainLabelLineIndex])
self.mainLabelLineIndex += 1

self.box.set_margin_top(30)
self.box.set_spacing(30)
self.box.append(self.label)
self.box.append(self.mainLabelBox)

self.boxLabelMB = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.boxLabelMB.set_spacing(-30)
Expand All @@ -251,7 +258,7 @@ def __init__(self, *args, **kwargs):
self.cleanbuttonBox.append(self.cleanbuttonLabel)
self.cleanbutton = Gtk.Button(child=self.cleanbuttonBox)
self.cleanbutton.get_style_context().add_class("pill")
self.cleanbutton.get_style_context().add_class("suggested-action")
self.cleanbutton.get_style_context().add_class("destructive-action")
self.cleanbutton.connect("clicked", self.init_clean)

self.box3.append(self.cleanbutton)
Expand Down Expand Up @@ -362,7 +369,7 @@ 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\U0001F1EC Georgi (@RacerBG) https://github.com/racerbg\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.set_translator_credits("\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()

def init_clean(self, app):
Expand Down

0 comments on commit 122bfef

Please sign in to comment.