diff --git a/i18n/en/cachyos_hello.ftl b/i18n/en/cachyos_hello.ftl index f7d021f..249d976 100644 --- a/i18n/en/cachyos_hello.ftl +++ b/i18n/en/cachyos_hello.ftl @@ -6,6 +6,10 @@ about-dialog-comments = Welcome screen for CachyOS tweaks = Tweaks fixes = Fixes applications = Applications +removed-db-lock = Pacman db lock was removed! +lock-doesnt-exist = Pacman db lock does not exist! +orphans-not-found = No orphan packages found! +package-not-installed = Package '{$package_name}' has not been installed! # Tweaks page (tweaks) tweak-enabled-title = {$tweak} enabled @@ -39,6 +43,7 @@ section-support = SUPPORT section-project = PROJECT # Main Page (body) +offline-error = Unable to start online installation! No internet connection tweaksbrowser-label = Apps/Tweaks appbrowser-label = Install Apps launch-start-label = Launch at start diff --git a/i18n/ru/cachyos_hello.ftl b/i18n/ru/cachyos_hello.ftl index f11eb74..08ab9c0 100644 --- a/i18n/ru/cachyos_hello.ftl +++ b/i18n/ru/cachyos_hello.ftl @@ -6,6 +6,9 @@ about-dialog-comments = Приветственный экран CachyOS tweaks = Настройки fixes = Исправления applications = Приложения +removed-db-lock = Блокировка БД Pacman была снята! +lock-doesnt-exist = Pacman БД не заблокирован! +package-not-installed = Пакет '{$package_name}' не был установлен! # Tweaks page (tweaks) tweak-enabled-title = {$tweak} включен @@ -39,6 +42,7 @@ section-support = ПОДДЕРЖКА section-project = ПРОЕКТ # Main Page (body) +offline-error = Не удается запустить онлайн-установку! Нет подключения к Интернету tweaksbrowser-label = Приложения/Настройки appbrowser-label = Установить ПO launch-start-label = Автозапуск diff --git a/src/main.rs b/src/main.rs index a96e8b4..713db5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ fn quick_message(message: &'static str) { .attached_to(window_ref) .transient_for(window_ref) .message_type(gtk::MessageType::Error) - .text("Unable to start online installation! No internet connection") + .text(fl!("offline-error")) .title(message) .modal(true) .build(); diff --git a/src/pages.rs b/src/pages.rs index 041893d..088e9a6 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -150,7 +150,7 @@ fn create_fixes_section() -> gtk::Box { if !Path::new("/var/lib/pacman/db.lck").exists() { dialog_tx_clone .send(DialogMessage { - msg: "Pacman db lock was removed!".to_owned(), + msg: fl!("removed-db-lock"), msg_type: gtk::MessageType::Info, action: Action::RemoveLock, }) @@ -159,7 +159,7 @@ fn create_fixes_section() -> gtk::Box { } else { dialog_tx_clone .send(DialogMessage { - msg: "Pacman db lock does not exist!".to_owned(), + msg: fl!("lock-doesnt-exist"), msg_type: gtk::MessageType::Info, action: Action::RemoveLock, }) @@ -193,7 +193,7 @@ fn create_fixes_section() -> gtk::Box { if orphan_pkgs.is_empty() { dialog_tx_clone .send(DialogMessage { - msg: "No orphan packages found!".to_owned(), + msg: fl!("orphans-not-found"), msg_type: gtk::MessageType::Info, action: Action::RemoveOrphans, }) @@ -572,7 +572,7 @@ fn on_servbtn_clicked(button: >k::CheckButton) { .attached_to(&widget_window) .transient_for(&widget_window) .message_type(gtk::MessageType::Error) - .text(format!("Package '{alpm_package_name}' has not been installed!")) + .text(fl!("package-not-installed", package_name = alpm_package_name)) .title("Error") .modal(true) .build();