♻ update translation

This commit is contained in:
Vladislav Nepogodin 2023-04-01 16:56:13 +04:00
parent 658ae156a7
commit 43e6e58500
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
4 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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 = Автозапуск

View File

@ -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();

View File

@ -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: &gtk::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();