From e730c17e48f78c0fb2a854450ffd7edc6f132073 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 15 Mar 2023 10:52:33 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ublexec.cc | 31 ++++++++++++++++--------------- ublexec.glade | 2 -- ublexec_ru.po | 6 ++++++ 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/source/ublexec.cc b/source/ublexec.cc index 6dc4d50..3d67f24 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -224,32 +224,32 @@ void MainWindow::sudo_nice(){ spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(-20, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("-20 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("-20 (High)")); } else if (rbSudo->get_active() && response.find("wheel") != string::npos){ spinPriority->set_range(-20, 19); spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(-20, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("-20 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("-20 (High)")); } else if (rbSu->get_active()){ spinPriority->set_range(0, 19); spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(0, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("0 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("0 (High)")); } else if (rbPkexec->get_active()){ spinPriority->set_range(0, 19); spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(0, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("0 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("0 (High)")); } this->denamic_cmd(); } @@ -263,16 +263,16 @@ void MainWindow::changed_user() { spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(-20, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("-20 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("-20 (High)")); } else{ spinPriority->set_range(0, 19); spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(0, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("0 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("0 (High)")); } } @@ -300,7 +300,8 @@ bool MainWindow::focus_in_txt_cmd(GdkEventFocus* event) { } void MainWindow::synopsis_show() { - system("xdg-open https://wiki.ublinux.ru/ru/home &"); + string cmd = "xdg-open " + string(_("https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/")) + app_name + " &"; + system(cmd.c_str()); } void MainWindow::icon_clear() { @@ -398,8 +399,8 @@ void MainWindow::settings() { spinPriority->set_increments(1.0, -1.0); scalePriority->set_range(0, 19); scalePriority->set_value(0); - lblTimeEpriorityLow->set_text("19 (Низкий)"); - lblTime4EpriorityHigh->set_text("0 (Высокий)"); + lblTimeEpriorityLow->set_text(_("19 (Low)")); + lblTime4EpriorityHigh->set_text(_("0 (High)")); scalePriority->set_inverted(true); this->pars_dir_bin(); this->pars_dir_terminal(); diff --git a/ublexec.glade b/ublexec.glade index f937831..3543385 100644 --- a/ublexec.glade +++ b/ublexec.glade @@ -986,7 +986,6 @@ True False Synopsis - True @@ -997,7 +996,6 @@ True False About - True diff --git a/ublexec_ru.po b/ublexec_ru.po index e0df9d5..72e844a 100644 --- a/ublexec_ru.po +++ b/ublexec_ru.po @@ -109,6 +109,12 @@ msgstr "19 (Низкий)" msgid "-20 (High)" msgstr "-20 (Высокий)" +msgid "https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/" +msgstr "https://wiki.ublinux.ru/ru/Программное_обеспечение/Программы_и_утилиты/Все/" + +msgid "0 (High)" +msgstr "0 (Высокий)" + msgid "Run" msgstr "Запустить"