Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit 089ee4d

Browse files
committed
fix: correct strings
1 parent 89dbcf9 commit 089ee4d

File tree

5 files changed

+94
-103
lines changed

5 files changed

+94
-103
lines changed

gradience/main.py

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ def show_apply_color_scheme_dialog(self, *_args):
585585
dialog = GradienceAppTypeDialog(
586586
_("Apply this color scheme?"),
587587
_(
588-
"Warning: any custom CSS files for those app types will be \
589-
irreversibly overwritten!"
588+
"Warning: any custom CSS files for those app types will be "\
589+
"irreversibly overwritten!"
590590
),
591591
"apply",
592592
_("Apply"),
@@ -626,8 +626,8 @@ def show_save_preset_dialog(self, *_args):
626626
transient_for=self.props.active_window,
627627
heading=_("Save preset as..."),
628628
body=_(
629-
"Saving preset to <tt>{0}</tt>. If that preset already \
630-
exists, it will be overwritten!"
629+
"Saving preset to <tt>{0}</tt>. If that preset already "\
630+
"exists, it will be overwritten!"
631631
).format(
632632
os.path.join(
633633
os.environ.get("XDG_CONFIG_HOME",
@@ -654,8 +654,8 @@ def on_preset_entry_change(*_args):
654654
if len(preset_entry.get_text()) == 0:
655655
dialog.set_body(
656656
_(
657-
"Saving preset to <tt>{0}</tt>. If that preset \
658-
already exists, it will be overwritten!"
657+
"Saving preset to <tt>{0}</tt>. If that preset "\
658+
"already exists, it will be overwritten!"
659659
).format(
660660
os.path.join(
661661
os.environ.get(
@@ -671,8 +671,8 @@ def on_preset_entry_change(*_args):
671671
else:
672672
dialog.set_body(
673673
_(
674-
"Saving preset to <tt>{0}</tt>. If that preset \
675-
already exists, it will be overwritten!"
674+
"Saving preset to <tt>{0}</tt>. If that preset "\
675+
"already exists, it will be overwritten!"
676676
).format(
677677
os.path.join(
678678
os.environ.get(
@@ -699,8 +699,8 @@ def show_exit_dialog(self, *_args):
699699
transient_for=self.props.active_window,
700700
heading=_("You have unsaved changes!"),
701701
body=_(
702-
"Saving preset to <tt>{0}</tt>. If that preset already \
703-
exists, it will be overwritten!"
702+
"Saving preset to <tt>{0}</tt>. If that preset already "\
703+
"exists, it will be overwritten!"
704704
).format(
705705
os.path.join(
706706
os.environ.get("XDG_CONFIG_HOME",
@@ -730,8 +730,8 @@ def on_preset_entry_change(*_args):
730730
if len(preset_entry.get_text()) == 0:
731731
dialog.set_body(
732732
_(
733-
"Saving preset to <tt>{0}</tt>. If that preset \
734-
already exists, it will be overwritten!"
733+
"Saving preset to <tt>{0}</tt>. If that preset "\
734+
"already exists, it will be overwritten!"
735735
).format(
736736
os.path.join(
737737
os.environ.get(
@@ -747,8 +747,8 @@ def on_preset_entry_change(*_args):
747747
else:
748748
dialog.set_body(
749749
_(
750-
"Saving preset to <tt>{0}</tt>. If that preset \
751-
already exists, it will be overwritten!"
750+
"Saving preset to <tt>{0}</tt>. If that preset "\
751+
"already exists, it will be overwritten!"
752752
).format(
753753
os.path.join(
754754
os.environ.get(
@@ -967,22 +967,17 @@ def show_about_window(self, *_args):
967967
<li>Add AdwViewSwitcher in the header bar.</li>
968968
<li>Move CSS to the "Advanced" tab</li>
969969
<li>Move the rest to the "Colours" tab</li>
970-
<li>Add Monet tab which generates a theme from a background
971-
</li>
970+
<li>Add Monet tab which generates a theme from a background</li>
972971
<li>Add disk saved and disk unsaved icon in the header bar</li>
973972
<li>Update about dialog</li>
974973
<li>Change license to GNU GPLv3</li>
975974
<li>Begin plugin support</li>
976-
<li>Move preset selector to a drop-down called palette (icon \
977-
palette)</li>
978-
<li>Add ability to apply the theme onlyfor dark theme or oy \
979-
for light theme</li>
980-
<li>Automaticly use Adwaita-dark preset if the user prefered \
981-
scheme is dark.</li>
975+
<li>Move preset selector to a drop-down called palette (icon palette)</li>
976+
<li>Add ability to apply the theme onlyfor dark theme or oy for light theme</li>
977+
<li>Automaticly use Adwaita-dark preset if the user prefered scheme is dark.</li>
982978
<li>Added Flatpak CI build</li>
983979
<li>Added issue template for bug and feature request </li>
984-
<li>`Main` branch is now protected by GitHub branch \
985-
protection. The development is done on `next` branch </li>
980+
<li>`Main` branch is now protected by GitHub branch protection. The development is done on `next` branch</li>
986981
</ul>
987982
"""
988983
),

gradience/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def __init__(self, name, title, explanation, adw_gtk3_support="yes", **kwargs):
4747
self.warning_button.add_css_class("warning")
4848
self.warning_label.set_label(
4949
_(
50-
"This option is only partially supported by the adw-gtk3 \
51-
theme."
50+
"This option is only partially supported by the adw-gtk3 "\
51+
"theme."
5252
)
5353
)
5454
elif adw_gtk3_support == "no":

gradience/plugins_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def to_group(self):
9595
group.set_title(_("Plugins"))
9696
group.set_description(
9797
_(
98-
"Plugins add additional features to Gradience, plugins are \
99-
made by Gradience community and can make issues."
98+
"Plugins add additional features to Gradience, plugins are "\
99+
"made by Gradience community and can make issues."
100100
)
101101
)
102102
empty = True

gradience/presets_manager_window.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ def on_file_chooser_response(self, widget, response):
294294
else:
295295
self.toast_overlay.add_toast(
296296
Adw.Toast(
297-
title=_(
298-
"Unsupported file format, must be \
299-
.json"
300-
)
297+
title=_("Unsupported file format, must be .json")
301298
)
302299
)
303300

@@ -387,9 +384,9 @@ def reload_pref_group(self):
387384
self.preset_list.set_title(_("User Presets"))
388385
self.preset_list.set_description(
389386
_(
390-
'See \
391-
<a href="https://github.com/GradienceTeam/Community">GradienceTeam/Community</a> \
392-
on Github for more presets'
387+
'See '\
388+
'<a href="https://github.com/GradienceTeam/Community">'\
389+
'GradienceTeam/Community</a> on Github for more presets'
393390
)
394391
)
395392

@@ -414,8 +411,8 @@ def reload_pref_group(self):
414411
self.preset_empty = Adw.ActionRow()
415412
self.preset_empty.set_title(
416413
_(
417-
"No preset found! Use the import button to import one or \
418-
search one on the Explore tab"
414+
"No preset found! Use the import button to import one or "\
415+
"search one on the Explore tab"
419416
)
420417
)
421418
self.preset_list.add(self.preset_empty)

0 commit comments

Comments
 (0)