mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 16:57:52 +00:00
fix: correct strings
This commit is contained in:
parent
89dbcf9b3c
commit
089ee4d495
5 changed files with 94 additions and 103 deletions
|
@ -585,8 +585,8 @@ class GradienceApplication(Adw.Application):
|
|||
dialog = GradienceAppTypeDialog(
|
||||
_("Apply this color scheme?"),
|
||||
_(
|
||||
"Warning: any custom CSS files for those app types will be \
|
||||
irreversibly overwritten!"
|
||||
"Warning: any custom CSS files for those app types will be "\
|
||||
"irreversibly overwritten!"
|
||||
),
|
||||
"apply",
|
||||
_("Apply"),
|
||||
|
@ -626,8 +626,8 @@ class GradienceApplication(Adw.Application):
|
|||
transient_for=self.props.active_window,
|
||||
heading=_("Save preset as..."),
|
||||
body=_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already \
|
||||
exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "\
|
||||
"exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get("XDG_CONFIG_HOME",
|
||||
|
@ -654,8 +654,8 @@ class GradienceApplication(Adw.Application):
|
|||
if len(preset_entry.get_text()) == 0:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset \
|
||||
already exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get(
|
||||
|
@ -671,8 +671,8 @@ class GradienceApplication(Adw.Application):
|
|||
else:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset \
|
||||
already exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get(
|
||||
|
@ -699,8 +699,8 @@ class GradienceApplication(Adw.Application):
|
|||
transient_for=self.props.active_window,
|
||||
heading=_("You have unsaved changes!"),
|
||||
body=_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already \
|
||||
exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset already "\
|
||||
"exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get("XDG_CONFIG_HOME",
|
||||
|
@ -730,8 +730,8 @@ class GradienceApplication(Adw.Application):
|
|||
if len(preset_entry.get_text()) == 0:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset \
|
||||
already exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get(
|
||||
|
@ -747,8 +747,8 @@ class GradienceApplication(Adw.Application):
|
|||
else:
|
||||
dialog.set_body(
|
||||
_(
|
||||
"Saving preset to <tt>{0}</tt>. If that preset \
|
||||
already exists, it will be overwritten!"
|
||||
"Saving preset to <tt>{0}</tt>. If that preset "\
|
||||
"already exists, it will be overwritten!"
|
||||
).format(
|
||||
os.path.join(
|
||||
os.environ.get(
|
||||
|
@ -967,22 +967,17 @@ class GradienceApplication(Adw.Application):
|
|||
<li>Add AdwViewSwitcher in the header bar.</li>
|
||||
<li>Move CSS to the "Advanced" tab</li>
|
||||
<li>Move the rest to the "Colours" tab</li>
|
||||
<li>Add Monet tab which generates a theme from a background
|
||||
</li>
|
||||
<li>Add Monet tab which generates a theme from a background</li>
|
||||
<li>Add disk saved and disk unsaved icon in the header bar</li>
|
||||
<li>Update about dialog</li>
|
||||
<li>Change license to GNU GPLv3</li>
|
||||
<li>Begin plugin support</li>
|
||||
<li>Move preset selector to a drop-down called palette (icon \
|
||||
palette)</li>
|
||||
<li>Add ability to apply the theme onlyfor dark theme or oy \
|
||||
for light theme</li>
|
||||
<li>Automaticly use Adwaita-dark preset if the user prefered \
|
||||
scheme is dark.</li>
|
||||
<li>Move preset selector to a drop-down called palette (icon palette)</li>
|
||||
<li>Add ability to apply the theme onlyfor dark theme or oy for light theme</li>
|
||||
<li>Automaticly use Adwaita-dark preset if the user prefered scheme is dark.</li>
|
||||
<li>Added Flatpak CI build</li>
|
||||
<li>Added issue template for bug and feature request </li>
|
||||
<li>`Main` branch is now protected by GitHub branch \
|
||||
protection. The development is done on `next` branch </li>
|
||||
<li>`Main` branch is now protected by GitHub branch protection. The development is done on `next` branch</li>
|
||||
</ul>
|
||||
"""
|
||||
),
|
||||
|
|
|
@ -47,8 +47,8 @@ class GradienceOption(Adw.ActionRow):
|
|||
self.warning_button.add_css_class("warning")
|
||||
self.warning_label.set_label(
|
||||
_(
|
||||
"This option is only partially supported by the adw-gtk3 \
|
||||
theme."
|
||||
"This option is only partially supported by the adw-gtk3 "\
|
||||
"theme."
|
||||
)
|
||||
)
|
||||
elif adw_gtk3_support == "no":
|
||||
|
|
|
@ -95,8 +95,8 @@ class GradiencePluginsList:
|
|||
group.set_title(_("Plugins"))
|
||||
group.set_description(
|
||||
_(
|
||||
"Plugins add additional features to Gradience, plugins are \
|
||||
made by Gradience community and can make issues."
|
||||
"Plugins add additional features to Gradience, plugins are "\
|
||||
"made by Gradience community and can make issues."
|
||||
)
|
||||
)
|
||||
empty = True
|
||||
|
|
|
@ -294,10 +294,7 @@ class GradiencePresetWindow(Adw.Window):
|
|||
else:
|
||||
self.toast_overlay.add_toast(
|
||||
Adw.Toast(
|
||||
title=_(
|
||||
"Unsupported file format, must be \
|
||||
.json"
|
||||
)
|
||||
title=_("Unsupported file format, must be .json")
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -387,9 +384,9 @@ class GradiencePresetWindow(Adw.Window):
|
|||
self.preset_list.set_title(_("User Presets"))
|
||||
self.preset_list.set_description(
|
||||
_(
|
||||
'See \
|
||||
<a href="https://github.com/GradienceTeam/Community">GradienceTeam/Community</a> \
|
||||
on Github for more presets'
|
||||
'See '\
|
||||
'<a href="https://github.com/GradienceTeam/Community">'\
|
||||
'GradienceTeam/Community</a> on Github for more presets'
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -414,8 +411,8 @@ class GradiencePresetWindow(Adw.Window):
|
|||
self.preset_empty = Adw.ActionRow()
|
||||
self.preset_empty.set_title(
|
||||
_(
|
||||
"No preset found! Use the import button to import one or \
|
||||
search one on the Explore tab"
|
||||
"No preset found! Use the import button to import one or "\
|
||||
"search one on the Explore tab"
|
||||
)
|
||||
)
|
||||
self.preset_list.add(self.preset_empty)
|
||||
|
|
|
@ -22,19 +22,19 @@ settings_schema = {
|
|||
"name": "accent_colors",
|
||||
"title": _("Accent Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such as \
|
||||
buttons, labels, and entries, to indicate that a widget is \
|
||||
important, interactive, or currently active."
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, and entries, to indicate that a widget "\
|
||||
"is important, interactive, or currently active."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
"name": "accent_color",
|
||||
"title": _("Standalone Color"),
|
||||
"explanation": _(
|
||||
"The standalone colors are similar to the background \
|
||||
ones, but provide better contrast when used as \
|
||||
foreground color on top of a neutral background - for \
|
||||
example, colorful text in a window."
|
||||
"The standalone colors are similar to the background "\
|
||||
"ones, but provide better contrast when used as "\
|
||||
"foreground color on top of a neutral background - "\
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -54,18 +54,18 @@ settings_schema = {
|
|||
"name": "destructive_colors",
|
||||
"title": _("Destructive Colors"),
|
||||
"description": _(
|
||||
"These colors are used for buttons to indicate a dangerous \
|
||||
action, such as deleting a file."
|
||||
"These colors are used for buttons to indicate a dangerous "\
|
||||
"action, such as deleting a file."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
"name": "destructive_color",
|
||||
"title": _("Standalone Color"),
|
||||
"explanation": _(
|
||||
"The standalone colors are similar to the background \
|
||||
ones, but provide better contrast when used as \
|
||||
foreground color on top of a neutral background - for \
|
||||
example, colorful text in a window."
|
||||
"The standalone colors are similar to the background "\
|
||||
"ones, but provide better contrast when used as "\
|
||||
"foreground color on top of a neutral background - "\
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -85,19 +85,19 @@ settings_schema = {
|
|||
"name": "success_colors",
|
||||
"title": _("Success Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such as \
|
||||
buttons, labels, entries, and level bars, to indicate a \
|
||||
success or a high level."
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, entries, and level bars, to indicate a "\
|
||||
"success or a high level."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
"name": "success_color",
|
||||
"title": _("Standalone Color"),
|
||||
"explanation": _(
|
||||
"The standalone colors are similar to the background \
|
||||
ones, but provide better contrast when used as \
|
||||
foreground color on top of a neutral background - for \
|
||||
example, colorful text in a window."
|
||||
"The standalone colors are similar to the background "\
|
||||
"ones, but provide better contrast when used as "\
|
||||
"foreground color on top of a neutral background - "\
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -117,19 +117,19 @@ settings_schema = {
|
|||
"name": "warning_colors",
|
||||
"title": _("Warning Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such as \
|
||||
buttons, labels, entries, and level bars, to indicate a \
|
||||
warning or a low level."
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, entries, and level bars, to indicate a "\
|
||||
"warning or a low level."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
"name": "warning_color",
|
||||
"title": _("Standalone Color"),
|
||||
"explanation": _(
|
||||
"The standalone colors are similar to the background \
|
||||
ones, but provide better contrast when used as \
|
||||
foreground color on top of a neutral background - for \
|
||||
example, colorful text in a window."
|
||||
"The standalone colors are similar to the background "\
|
||||
"ones, but provide better contrast when used as "\
|
||||
"foreground color on top of a neutral background - "\
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -149,18 +149,18 @@ settings_schema = {
|
|||
"name": "error_colors",
|
||||
"title": _("Error Colors"),
|
||||
"description": _(
|
||||
"These colors are used across many different widgets, such as \
|
||||
buttons, labels, and entries, to indicate a failure."
|
||||
"These colors are used across many different widgets, such "\
|
||||
"as buttons, labels, and entries, to indicate a failure."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
"name": "error_color",
|
||||
"title": _("Standalone Color"),
|
||||
"explanation": _(
|
||||
"The standalone colors are similar to the background \
|
||||
ones, but provide better contrast when used as \
|
||||
foreground color on top of a neutral background - for \
|
||||
example, colorful text in a window."
|
||||
"The standalone colors are similar to the background "\
|
||||
"ones, but provide better contrast when used as "\
|
||||
"foreground color on top of a neutral background - "\
|
||||
"for example, colorful text in a window."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -197,8 +197,8 @@ settings_schema = {
|
|||
"name": "view_colors",
|
||||
"title": _("View Colors"),
|
||||
"description": _(
|
||||
"These colors are used in a variety of widgets, such as text \
|
||||
views and entries."
|
||||
"These colors are used in a variety of widgets, such as text "\
|
||||
"views and entries."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
|
@ -217,9 +217,9 @@ settings_schema = {
|
|||
"name": "headerbar_colors",
|
||||
"title": _("Header Bar Colors"),
|
||||
"description": _(
|
||||
"These colors are used for header bars, as well as widgets \
|
||||
that are meant to be visually attached to it, such as search \
|
||||
bars or tab bars."
|
||||
"These colors are used for header bars, as well as widgets "\
|
||||
"that are meant to be visually attached to it, such as "\
|
||||
"search bars or tab bars."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
|
@ -236,14 +236,14 @@ settings_schema = {
|
|||
"name": "headerbar_border_color",
|
||||
"title": _("Border Color"),
|
||||
"explanation": _(
|
||||
"The border color has the same default value as a \
|
||||
foreground color, but doesn't change along with it. \
|
||||
This can be useful if a light window has a dark \
|
||||
header bar with light text; in this case it may be \
|
||||
desirable to keep the border dark. This variable is \
|
||||
only used for vertical borders - for example, \
|
||||
separators between the two header bars in a split \
|
||||
header bar layout."
|
||||
"The border color has the same default value as a "\
|
||||
"foreground color, but doesn't change along with it. "\
|
||||
"This can be useful if a light window has a dark "\
|
||||
"header bar with light text; in this case it may be "\
|
||||
"desirable to keep the border dark. This variable is "\
|
||||
"only used for vertical borders - for example, "\
|
||||
"separators between the two header bars in a split "\
|
||||
"header bar layout."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
},
|
||||
|
@ -251,12 +251,12 @@ settings_schema = {
|
|||
"name": "headerbar_backdrop_color",
|
||||
"title": _("Backdrop Color"),
|
||||
"explanation": _(
|
||||
"The backdrop color is used instead of the background \
|
||||
color when the window is not focused. By default it's \
|
||||
an alias of the window's background color and changes \
|
||||
together with it. When changing this variable, make \
|
||||
sure to set it to a value matching your header bar \
|
||||
background color."
|
||||
"The backdrop color is used instead of the "\
|
||||
"background color when the window is not focused. By "\
|
||||
"default it's an alias of the window's background "\
|
||||
"color and changes together with it. When changing "\
|
||||
"this variable, make sure to set it to a value "\
|
||||
"matching your header bar background color."
|
||||
),
|
||||
"adw_gtk3_support": "yes",
|
||||
},
|
||||
|
@ -264,9 +264,9 @@ settings_schema = {
|
|||
"name": "headerbar_shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used to provide a dark border for \
|
||||
header bars and similar widgets that separates them \
|
||||
from the main window."
|
||||
"The shade color is used to provide a dark border "\
|
||||
"for header bars and similar widgets that separates "\
|
||||
"them from the main window."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
},
|
||||
|
@ -276,8 +276,7 @@ settings_schema = {
|
|||
"name": "card_colors",
|
||||
"title": _("Card Colors"),
|
||||
"description": _(
|
||||
"These colors are used for cards and boxed \
|
||||
lists."
|
||||
"These colors are used for cards and boxed lists."
|
||||
),
|
||||
"variables": [
|
||||
{
|
||||
|
@ -294,9 +293,9 @@ settings_schema = {
|
|||
"name": "card_shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used for shadows that are used by \
|
||||
cards to separate themselves from the window \
|
||||
background, as well as for row dividers in the cards."
|
||||
"The shade color is used for shadows that are used "\
|
||||
"by cards to separate themselves from the window "\
|
||||
"background, as well as for row dividers in the cards."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
},
|
||||
|
@ -345,9 +344,9 @@ settings_schema = {
|
|||
"name": "shade_color",
|
||||
"title": _("Shade Color"),
|
||||
"explanation": _(
|
||||
"The shade color is used by inline tab bars, as well \
|
||||
as the transitions in leaflets and flaps, and info \
|
||||
bar borders."
|
||||
"The shade color is used by inline tab bars, as well "\
|
||||
"as the transitions in leaflets and flaps, and info "\
|
||||
"bar borders."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
},
|
||||
|
@ -355,9 +354,9 @@ settings_schema = {
|
|||
"name": "scrollbar_outline_color",
|
||||
"title": _("Scrollbar Outline Color"),
|
||||
"explanation": _(
|
||||
"The scrollbar outline color is used by scrollbars to \
|
||||
ensure that overlay scrollbars are visible regardless \
|
||||
of the content color."
|
||||
"The scrollbar outline color is used by scrollbars "\
|
||||
"to ensure that overlay scrollbars are visible "\
|
||||
"regardless of the content color."
|
||||
),
|
||||
"adw_gtk3_support": "no",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue