From 762259bd9f691e6e485039bf2e8e7fcc73725c1a Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 4 Dec 2025 17:33:30 +0600 Subject: [PATCH] Command fix for pacman databases update; Localisation changes --- locale/ubl-settings-video.pot | 2 +- locale/ubl-settings-video_ru.po | 4 ++-- source/ubl-settings-video.c | 2 +- source/ubl-settings-video.h | 2 ++ source/ubl-strings.h | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/locale/ubl-settings-video.pot b/locale/ubl-settings-video.pot index 18b803e..d5d9c33 100644 --- a/locale/ubl-settings-video.pot +++ b/locale/ubl-settings-video.pot @@ -574,7 +574,7 @@ msgid "Unlock the pacman package manager database" msgstr "" #: source/ubl-strings.h:153 -msgid "Database files must be updated" +msgid "Update the repository databases?" msgstr "" #: source/ubl-strings.h:155 diff --git a/locale/ubl-settings-video_ru.po b/locale/ubl-settings-video_ru.po index 98ef36a..f0f0546 100644 --- a/locale/ubl-settings-video_ru.po +++ b/locale/ubl-settings-video_ru.po @@ -581,8 +581,8 @@ msgid "Unlock the pacman package manager database" msgstr "Разблокировать базу данных пакетного менеджера pacman" #: source/ubl-strings.h:153 -msgid "Database files must be updated" -msgstr "Базы данных репозитория должны быть обновлены" +msgid "Update the repository databases?" +msgstr "Обновить базы данных репозитория?" #: source/ubl-strings.h:155 msgid "Warning: Couldn't find any supported kernel version" diff --git a/source/ubl-settings-video.c b/source/ubl-settings-video.c index 89117de..3d59b70 100644 --- a/source/ubl-settings-video.c +++ b/source/ubl-settings-video.c @@ -582,7 +582,7 @@ void yon_set_sensitive_from_combo_box(GtkComboBox *toggle, GtkWidget *target){ } void on_database_update(void *,void *widgets){ - yon_terminal_window_launch(GTK_WINDOW(((main_window*)widgets)->Window),install_proprietary_command(""),yon_char_get_localised_from_lib(SUCCESS_LABEL),OPERATION_FAIL_LABEL); + yon_terminal_window_launch(GTK_WINDOW(((main_window*)widgets)->Window),pacman_update_command,yon_char_get_localised_from_lib(SUCCESS_LABEL),OPERATION_FAIL_LABEL); } void on_gapfix_changed(GtkWidget*, main_window *widgets){ diff --git a/source/ubl-settings-video.h b/source/ubl-settings-video.h index 816053f..350ddf0 100644 --- a/source/ubl-settings-video.h +++ b/source/ubl-settings-video.h @@ -78,6 +78,8 @@ END {\n\ #define get_resolutions_supportable_command "resource:///com/ublinux/csv/resolutions.csv" +#define pacman_update_command "pacsync --updated" + #define install_proprietary_command(target) yon_char_append("pacinstall --install --yolo ",target) #define delete_proprietary_command(target) yon_char_append("pacinstall --remove --yolo ",target) diff --git a/source/ubl-strings.h b/source/ubl-strings.h index b3562bf..d0b5852 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -150,7 +150,7 @@ #define DEVICES_AND_DRIVERS_LABEL _("Devices and Drivers") #define PACMAN_UNLOCK_TOOLTIP_LABEL _("Unlock the pacman package manager database") -#define DATABASE_UNACCESSIBLE_LABEL _("Database files must be updated") +#define DATABASE_UNACCESSIBLE_LABEL _("Update the repository databases?") #define KERNELS_SUPPORTED_UNFOUND_LABEL _("Warning: Couldn't find any supported kernel version") -- 2.35.1