From 69a286b82ae5c7b413cf8ad55647629a4b55e117 Mon Sep 17 00:00:00 2001 From: tfuxu <73042332+tfuxu@users.noreply.github.com> Date: Tue, 23 Aug 2022 19:23:27 +0200 Subject: [PATCH 1/3] fix: Change links in constants to the correct ones, and fix typo * fix warnings caused by non-existing variables in constants.py config * add tfuxu to translator credits --- meson.build | 4 ++-- src/constants.py.in | 3 ++- src/main.py | 7 +++++-- src/meson.build | 11 ++++++++++- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 441d2e4e..d413d802 100644 --- a/meson.build +++ b/meson.build @@ -13,9 +13,9 @@ python = import('python') # Project information PROJECT_URL = 'https://github.com/GradienceTeam/Gradience' -BUGTRACKER_URL = 'https://github.com/tfuxu/themeteor/issues' +BUGTRACKER_URL = 'https://github.com/GradienceTeam/Gradience/issues' HELP_URL = 'https://github.com/orgs/GradienceTeam/discussions' -TRANSLATE_URL = 'https://www.transifex.com/Gradienceteam/Gradience' +TRANSLATE_URL = 'https://hosted.weblate.org/projects/GradienceTeam/gradience/' # Constants PROJECT_RDNN_NAME = 'com.github.GradienceTeam.Gradience' diff --git a/src/constants.py.in b/src/constants.py.in index c2f5b835..55d1e3d4 100644 --- a/src/constants.py.in +++ b/src/constants.py.in @@ -19,9 +19,10 @@ rootdir = '/com/github/GradienceTeam/Gradience' app_id = '@APP_ID@' +rel_ver = '@RELEASE_VER@' version = '@VERSION@' build_type = '@BUILD_TYPE@' project_url = '@PROJECT_URL@' bugtracker_url = '@BUGTRACKER_URL@' help_url = '@HELP_URL@' -trnaslate_url = '@TRANSLATE_URL@' \ No newline at end of file +translate_url = '@TRANSLATE_URL@' \ No newline at end of file diff --git a/src/main.py b/src/main.py index d0bc3053..4e4d41a1 100644 --- a/src/main.py +++ b/src/main.py @@ -32,7 +32,7 @@ from .palette_shades import GradiencePaletteShades from .option import GradienceOption from .app_type_dialog import GradienceAppTypeDialog from .custom_css_group import GradienceCustomCSSGroup -from .constants import rootdir, app_id, version, bugtracker_url, help_url, project_url +from .constants import rootdir, app_id, rel_ver, version, bugtracker_url, help_url, project_url from .welcome import GradienceWelcomeWindow from .presets_manager_window import GradiencePresetWindow from . import to_slug_case @@ -631,19 +631,22 @@ class GradienceApplication(Adw.Application): # Translators: This is a place to put your credits (formats: "Name # https://example.com" or "Name ", no quotes) # and is not meant to be translated literally. + # TODO: Automate this process using CI, because not everyone knows about this translator_credits="""Maxime V https://www.transifex.com/user/profile/Adaoh/ FineFindus https://github.com/FineFindus Karol Lademan https://www.transifex.com/user/profile/karlod/ Monty Monteusz https://www.transifex.com/user/profile/MontyQIQI/ Renato Corrêa https://www.transifex.com/user/profile/renatocrrs/ Aggelos Tselios https://www.transifex.com/user/profile/AndroGR/ - David "Daudix UFO" Lapshin https://github.com/daudix-UFO' + David "Daudix UFO" Lapshin https://github.com/daudix-UFO 0xMRTT https://github.com/0xMRTT + tfuxu https://github.com/tfuxu Juanjo Cillero https://www.transifex.com/user/profile/renux918/ Taylan Tatlı https://www.transifex.com/user/profile/TaylanTatli34/""", copyright="© 2022 Gradience Team", license_type=Gtk.License.GPL_3_0, version=version, + release_notes_version=rel_ver, release_notes=_("""