Исправлена локализация

pull/13/head
Igor Belitskiy 3 years ago
parent d4ef7ed529
commit e730c17e48

@ -224,32 +224,32 @@ void MainWindow::sudo_nice(){
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(-20, 19); scalePriority->set_range(-20, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("-20 (Высокий)"); lblTime4EpriorityHigh->set_text(_("-20 (High)"));
} }
else if (rbSudo->get_active() && response.find("wheel") != string::npos){ else if (rbSudo->get_active() && response.find("wheel") != string::npos){
spinPriority->set_range(-20, 19); spinPriority->set_range(-20, 19);
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(-20, 19); scalePriority->set_range(-20, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("-20 (Высокий)"); lblTime4EpriorityHigh->set_text(_("-20 (High)"));
} }
else if (rbSu->get_active()){ else if (rbSu->get_active()){
spinPriority->set_range(0, 19); spinPriority->set_range(0, 19);
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(0, 19); scalePriority->set_range(0, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("0 (Высокий)"); lblTime4EpriorityHigh->set_text(_("0 (High)"));
} }
else if (rbPkexec->get_active()){ else if (rbPkexec->get_active()){
spinPriority->set_range(0, 19); spinPriority->set_range(0, 19);
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(0, 19); scalePriority->set_range(0, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("0 (Высокий)"); lblTime4EpriorityHigh->set_text(_("0 (High)"));
} }
this->denamic_cmd(); this->denamic_cmd();
} }
@ -263,16 +263,16 @@ void MainWindow::changed_user() {
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(-20, 19); scalePriority->set_range(-20, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("-20 (Высокий)"); lblTime4EpriorityHigh->set_text(_("-20 (High)"));
} }
else{ else{
spinPriority->set_range(0, 19); spinPriority->set_range(0, 19);
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(0, 19); scalePriority->set_range(0, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("0 (Высокий)"); lblTime4EpriorityHigh->set_text(_("0 (High)"));
} }
} }
@ -300,7 +300,8 @@ bool MainWindow::focus_in_txt_cmd(GdkEventFocus* event) {
} }
void MainWindow::synopsis_show() { 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() { void MainWindow::icon_clear() {
@ -398,8 +399,8 @@ void MainWindow::settings() {
spinPriority->set_increments(1.0, -1.0); spinPriority->set_increments(1.0, -1.0);
scalePriority->set_range(0, 19); scalePriority->set_range(0, 19);
scalePriority->set_value(0); scalePriority->set_value(0);
lblTimeEpriorityLow->set_text("19 (Низкий)"); lblTimeEpriorityLow->set_text(_("19 (Low)"));
lblTime4EpriorityHigh->set_text("0 (Высокий)"); lblTime4EpriorityHigh->set_text(_("0 (High)"));
scalePriority->set_inverted(true); scalePriority->set_inverted(true);
this->pars_dir_bin(); this->pars_dir_bin();
this->pars_dir_terminal(); this->pars_dir_terminal();

@ -986,7 +986,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">Synopsis</property> <property name="label" translatable="yes">Synopsis</property>
<property name="use-underline">True</property>
<style> <style>
<class name="menuitemtop"/> <class name="menuitemtop"/>
</style> </style>
@ -997,7 +996,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">About</property> <property name="label" translatable="yes">About</property>
<property name="use-underline">True</property>
<style> <style>
<class name="menuitembottom"/> <class name="menuitembottom"/>
</style> </style>

@ -109,6 +109,12 @@ msgstr "19 (Низкий)"
msgid "-20 (High)" msgid "-20 (High)"
msgstr "-20 (Высокий)" msgstr "-20 (Высокий)"
msgid "https://wiki.ublinux.com/ru/Программное_обеспечениерограммы_и_утилиты/Все/"
msgstr "https://wiki.ublinux.ru/ru/Программное_обеспечениерограммы_и_утилиты/Все/"
msgid "0 (High)"
msgstr "0 (Высокий)"
msgid "Run" msgid "Run"
msgstr "Запустить" msgstr "Запустить"

Loading…
Cancel
Save