From 1941976c19b57b40898e04ce093a5728828f6fad Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 15 May 2023 09:15:06 +0600 Subject: [PATCH 01/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 14 +++++++------- source/ubl-settings-datetime.h | 6 +++--- ubl-settings-datetime.glade | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 6341e72..de338ad 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -15,9 +15,9 @@ int socket_ext_id_I = 0; int socket_trd_id_I = 0; string version_application = "2.1"; MainWindow* obj_main; -void wrapper_synopsis_show() { +void wrapper_help_show() { obj_main->aboutWindows->hide(); - obj_main->synopsis_show(); + obj_main->help_show(); } CmdArgParser::CmdArgParser(const std::string& p_name, const std::string& p_description, const std::string& p_help) @@ -300,7 +300,7 @@ void MainWindow::get_builder() { builder->get_widget("btnSave", btnSave); builder->get_widget("btnSettings", btnSettings); builder->get_widget("btnLoad", btnLoad); - builder->get_widget("btnSynopsis", btnSynopsis); + builder->get_widget("btnhelp", btnhelp); builder->get_widget("btnAbout", btnAbout); builder->get_widget("btnLoadLocal", btnLoadLocal); builder->get_widget("btnLoadGlob", btnLoadGlob); @@ -340,11 +340,11 @@ void MainWindow::get_builder() { } void MainWindow::event() { - g_signal_connect(G_OBJECT(aboutWindows->gobj()), "activate-link", G_CALLBACK(wrapper_synopsis_show), this); + g_signal_connect(G_OBJECT(aboutWindows->gobj()), "activate-link", G_CALLBACK(wrapper_help_show), this); btnCancelHelp->signal_clicked().connect([&]() {wndShowWeb->hide();}); chkAlwaysOpenHelp->signal_toggled().connect([&]() {flag_open_browser = true;}); btnReadHelp->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::open_browser)); - btnSynopsis->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::synopsis_show)); + btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::help_show)); btnHardwareTime->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::hardware_clock)); btnMessClose->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::gui_mess_close)); //cldrDate->signal_day_selected().connect(sigc::mem_fun(*this, &MainWindow::get_calendar)); @@ -354,7 +354,7 @@ void MainWindow::event() { cbRegion->signal_changed().connect(sigc::mem_fun(*this, &MainWindow::append_zone)); cldrDate->signal_day_selected_double_click().connect(sigc::mem_fun(*this, &MainWindow::get_calendar)); btnAbout->signal_activate().connect([&]() {aboutWindows->show();}); - btnSynopsis->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::synopsis_show)); + btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::help_show)); btnLoadLocal->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::load_local_cfg)); btnLoadGlob->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::load_globl_cfg)); btnSaveLocalGlob->signal_activate().connect([&]() {save_global_local_cfg();}); @@ -411,7 +411,7 @@ void MainWindow::event_zone() { this->write_config(zone_text, "zone"); } -void MainWindow::synopsis_show() { +void MainWindow::help_show() { if (flag_open_browser == true) { this->open_browser(); } diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index 83528d7..e135d04 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -207,7 +207,7 @@ class MainWindow : public Gtk::ApplicationWindow { Gtk::MenuItem *btnLoadGlob; Gtk::MenuItem *btnLoadLocal; Gtk::MenuItem *btnAbout; - Gtk::MenuItem *btnSynopsis; + Gtk::MenuItem *btnhelp; Gtk::HeaderBar *headerBar; Gtk::Label *lblHeader; Gtk::Label *lblHW; @@ -285,7 +285,7 @@ class MainWindow : public Gtk::ApplicationWindow { void log_mess_error(string &cmd); void set_hardware_clock(string &local, string &etc); void info_warning_error(int mess); - void synopsis_show(); + void help_show(); void get_hardware_clock(string cmd); void save_global_local_cfg(); void fill_in_reg_zone(string cmd); @@ -364,6 +364,6 @@ private: Gtk::Widget *parent; }; -void wrapper_synopsis_show(); +void wrapper_help_show(); void help(); #endif diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index e4e4767..c44a817 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -271,7 +271,7 @@ False 4 - + True False Help From 8a59745b3992928f14117ce9575c996da53602e6 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 15 May 2023 09:57:59 +0600 Subject: [PATCH 02/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= =?UTF-8?q?=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 29 ++++++++++++++++++----------- source/ubl-settings-datetime.h | 9 ++++++--- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index de338ad..841fbe8 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -15,9 +15,11 @@ int socket_ext_id_I = 0; int socket_trd_id_I = 0; string version_application = "2.1"; MainWindow* obj_main; -void wrapper_help_show() { +void wrapper_help_show(GtkWidget *self, char* link, gpointer user_data) { + if (self && user_data) {} + obj_main->global_lick_doc = link; obj_main->aboutWindows->hide(); - obj_main->help_show(); + obj_main->temp_help_show(); } CmdArgParser::CmdArgParser(const std::string& p_name, const std::string& p_description, const std::string& p_help) @@ -344,7 +346,7 @@ void MainWindow::event() { btnCancelHelp->signal_clicked().connect([&]() {wndShowWeb->hide();}); chkAlwaysOpenHelp->signal_toggled().connect([&]() {flag_open_browser = true;}); btnReadHelp->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::open_browser)); - btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::help_show)); + btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::open_help)); btnHardwareTime->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::hardware_clock)); btnMessClose->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::gui_mess_close)); //cldrDate->signal_day_selected().connect(sigc::mem_fun(*this, &MainWindow::get_calendar)); @@ -354,7 +356,7 @@ void MainWindow::event() { cbRegion->signal_changed().connect(sigc::mem_fun(*this, &MainWindow::append_zone)); cldrDate->signal_day_selected_double_click().connect(sigc::mem_fun(*this, &MainWindow::get_calendar)); btnAbout->signal_activate().connect([&]() {aboutWindows->show();}); - btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::help_show)); + btnhelp->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::open_help)); btnLoadLocal->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::load_local_cfg)); btnLoadGlob->signal_activate().connect(sigc::mem_fun(*this, &MainWindow::load_globl_cfg)); btnSaveLocalGlob->signal_activate().connect([&]() {save_global_local_cfg();}); @@ -411,7 +413,7 @@ void MainWindow::event_zone() { this->write_config(zone_text, "zone"); } -void MainWindow::help_show() { +void MainWindow::temp_help_show() { if (flag_open_browser == true) { this->open_browser(); } @@ -421,26 +423,31 @@ void MainWindow::help_show() { } +void MainWindow::open_help() { + global_lick_doc = const_link_doc; + temp_help_show(); +} + void MainWindow::open_browser() { #ifdef WEBKIT_FOUND - webkit_web_view_load_uri(one, link_doc); + webkit_web_view_load_uri(one, _(global_lick_doc.c_str())); wndWeb->show_all(); #else - this->template_open_browser(); + this->template_open_browser(global_lick_doc); #endif wndShowWeb->hide(); } -void MainWindow::template_open_browser() { - string cmd = cmd_xdg + string(_(link_doc)) + " &"; +void MainWindow::template_open_browser(string link_doc) { + string cmd = cmd_xdg + string(_(link_doc.c_str())) + " &"; string buf = ""; if (geteuid() == 0) { string response_user = getlogin(); int size_s = std::snprintf(nullptr, 0, cmd_execute, response_user.c_str(), cmd.c_str()) + 1; auto size = static_cast(size_s); std::unique_ptr buf(new char[ size ]); - std::snprintf( buf.get(), size, cmd_execute, response_user.c_str(), cmd.c_str() ); - cmd = std::string( buf.get(), buf.get() + size - 1 ); + std::snprintf(buf.get(), size, cmd_execute, response_user.c_str(), cmd.c_str()); + cmd = string(buf.get(), buf.get() + size - 1); } index_error = system(cmd.c_str()); } diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index e135d04..aa8322b 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -26,7 +26,7 @@ #endif -#define link_doc "https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/ubl-settings-datetime" +#define const_link_doc "https://wiki.ublinux.com/ru/Программное_обеспечение/Программы_и_утилиты/Все/ubl-settings-datetime" #define cmd_xdg "xdg-open " #define cmd_execute "su -l %s -c \" DISPLAY=$DISPLAY %s \"" #define get_NTPSERVERS_DEFAULT "ubconfig --source default get [] NTPSERVERS_DEFAULT" @@ -255,6 +255,7 @@ class MainWindow : public Gtk::ApplicationWindow { int minute; string str_region_buff = ""; string str_zone_buff = ""; + string global_lick_doc = ""; int count_edit = 0; bool flag_global = false; bool flag_local = false; @@ -286,12 +287,14 @@ class MainWindow : public Gtk::ApplicationWindow { void set_hardware_clock(string &local, string &etc); void info_warning_error(int mess); void help_show(); + void temp_help_show(); + void open_help(); void get_hardware_clock(string cmd); void save_global_local_cfg(); void fill_in_reg_zone(string cmd); void load_globl_cfg(); void save_local_cfg(); - void template_open_browser(); + void template_open_browser(string link_doc); void event_zone(); bool focus_ntp(GdkEventFocus* event); bool check_config(string key, int key_save); @@ -364,6 +367,6 @@ private: Gtk::Widget *parent; }; -void wrapper_help_show(); +void wrapper_help_show(GtkWidget *self, char* link, gpointer user_data); void help(); #endif From 23f6e2e843a29f06216e1021144d6ba1e10cc944 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 15 May 2023 10:47:25 +0600 Subject: [PATCH 03/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BA=D0=BE=D0=B9=20ntp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 34 ++++++++++++++++++++++++++++++--- source/ubl-settings-datetime.h | 2 ++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 841fbe8..882c9f5 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -893,10 +893,38 @@ vector MainWindow::find_all(string &str_ntp, string substr) { return sub_index; } +bool MainWindow::check_num_ntp(string &str_ntp) { + int code_ascii = 0; + bool flag_is_num = false; + for (size_t index = 0; index < str_ntp.length(); index++) { + code_ascii = static_cast(str_ntp[index]); + if (code_ascii >= 48 && code_ascii <= 57 ) { + flag_is_num = true; + break; + } + } + return flag_is_num; +} + +bool MainWindow::check_string_ntp(string &str_ntp) { + int code_ascii = 0; + bool flag_is_str = false; + for (size_t index = 0; index < str_ntp.length(); index++) { + code_ascii = static_cast(str_ntp[index]); + if ((code_ascii >= 65 && code_ascii <= 90) || (code_ascii >= 97 && code_ascii <= 122)) { + flag_is_str = true; + break; + } + } + return flag_is_str; +} + bool MainWindow::check_ntp(string &str_ntp) { + bool flag_is_num = this->check_num_ntp(str_ntp); + bool flag_is_str = this->check_string_ntp(str_ntp); vector sub_index = this->find_all(str_ntp, "."); - if (sub_index.size() == 1) { - int index_point = sub_index[0]; + if (sub_index.size() != 0 && flag_is_str) { + int index_point = sub_index[sub_index.size()-1]; int len_str_ntp = str_ntp.length(); if (((len_str_ntp-index_point) >= 2) && (index_point > 2)) { return false; @@ -905,7 +933,7 @@ bool MainWindow::check_ntp(string &str_ntp) { return true; } } - else if (sub_index.size() == 3) { + else if (sub_index.size() == 3 && (flag_is_num && flag_is_str == false)) { int index_str_ntp = sub_index[0]; int index_str_ntp_1 = sub_index[1]; int index_str_ntp_2 = sub_index[2]; diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index aa8322b..974a814 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -309,6 +309,8 @@ class MainWindow : public Gtk::ApplicationWindow { void settings(); void flag_block_gui(); void add_CSS(); + bool check_string_ntp(string &str_ntp); + bool check_num_ntp(string &str_ntp); void get_builder(); void event(); void gui_mess_close(); From 14c42191b89b5f53536d271c713cf621543e52b6 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 15 May 2023 11:24:53 +0600 Subject: [PATCH 04/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D0=B2=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=D0=BE=D0=BC=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=20ntp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 75 +++++++++++++++++++++++++-------- source/ubl-settings-datetime.h | 7 ++- 2 files changed, 63 insertions(+), 19 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 882c9f5..f7db74a 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -850,7 +850,7 @@ bool MainWindow::focus_ntp_text() { bool flag_error = false; bool flag_error_check_ntp = false; string str_ntp = txtNtpServer->get_text(); - flag_error_check_ntp = this->check_ntp(str_ntp); + flag_error_check_ntp = this->wrapper_check_ntp(str_ntp); for (const auto &simvol: array_simvol) { if (str_ntp.find(simvol) != std::string::npos) { flag_error= true; @@ -893,7 +893,7 @@ vector MainWindow::find_all(string &str_ntp, string substr) { return sub_index; } -bool MainWindow::check_num_ntp(string &str_ntp) { +bool MainWindow::check_is_num_ntp(string &str_ntp) { int code_ascii = 0; bool flag_is_num = false; for (size_t index = 0; index < str_ntp.length(); index++) { @@ -906,7 +906,7 @@ bool MainWindow::check_num_ntp(string &str_ntp) { return flag_is_num; } -bool MainWindow::check_string_ntp(string &str_ntp) { +bool MainWindow::check_is_string_ntp(string &str_ntp) { int code_ascii = 0; bool flag_is_str = false; for (size_t index = 0; index < str_ntp.length(); index++) { @@ -919,21 +919,9 @@ bool MainWindow::check_string_ntp(string &str_ntp) { return flag_is_str; } -bool MainWindow::check_ntp(string &str_ntp) { - bool flag_is_num = this->check_num_ntp(str_ntp); - bool flag_is_str = this->check_string_ntp(str_ntp); +bool MainWindow::validate_ip_address(string &str_ntp) { vector sub_index = this->find_all(str_ntp, "."); - if (sub_index.size() != 0 && flag_is_str) { - int index_point = sub_index[sub_index.size()-1]; - int len_str_ntp = str_ntp.length(); - if (((len_str_ntp-index_point) >= 2) && (index_point > 2)) { - return false; - } - else { - return true; - } - } - else if (sub_index.size() == 3 && (flag_is_num && flag_is_str == false)) { + if (sub_index.size() == 3) { int index_str_ntp = sub_index[0]; int index_str_ntp_1 = sub_index[1]; int index_str_ntp_2 = sub_index[2]; @@ -977,7 +965,60 @@ bool MainWindow::check_ntp(string &str_ntp) { return true; } return false; +} + +bool MainWindow::validate_domen(string &str_ntp) { + vector sub_index = this->find_all(str_ntp, "."); + if (sub_index.size() != 0) { + int index_point = sub_index[sub_index.size()-1]; + int len_str_ntp = str_ntp.length(); + if (((len_str_ntp-index_point) >= 2) && (index_point > 2)) { + return false; + } + else { + return true; + } + } + else { + return true; + } + return false; +} + +bool MainWindow::check_ntp(string &str_ntp) { + bool flag_is_str = this->check_is_string_ntp(str_ntp); + bool flag_is_num = this->check_is_num_ntp(str_ntp); + if (flag_is_str) { + return this->validate_domen(str_ntp); + } + else if (flag_is_str && flag_is_num == false) { + return this->validate_ip_address(str_ntp); + } + else { + return false; + } + return false; +} +bool MainWindow::wrapper_check_ntp(string &str_ntp) { + bool flag_check_error_ntp = false; + if (str_ntp.find(",") != string::npos) { + vector vec_ntp = split(str_ntp, ','); + for (string& str_split_ntp: vec_ntp) { + if (str_split_ntp.length() == 0) { + return true; + } + flag_check_error_ntp = this->check_ntp(str_split_ntp); + if (flag_check_error_ntp) { + return flag_check_error_ntp; + } + } + return false; + } + else { + return this->check_ntp(str_ntp); + } + return false; } struct MainWindow::Result MainWindow::wrapper_call(string cmd) { diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index 974a814..90bb0fa 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -309,10 +309,13 @@ class MainWindow : public Gtk::ApplicationWindow { void settings(); void flag_block_gui(); void add_CSS(); - bool check_string_ntp(string &str_ntp); - bool check_num_ntp(string &str_ntp); + bool check_is_string_ntp(string &str_ntp); + bool check_is_num_ntp(string &str_ntp); void get_builder(); void event(); + bool wrapper_check_ntp(string &str_ntp); + bool validate_domen(string &str_ntp); + bool validate_ip_address(string &str_ntp); void gui_mess_close(); bool focus_ntp_text() ; void event_entry_cbDhcp(); From 7f768fb78806859453d12d7f595d01c6935a9eb9 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 17 May 2023 16:55:04 +0600 Subject: [PATCH 05/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubl-settings-datetime.glade | 80 ++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index c44a817..f055c4b 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -27,8 +27,8 @@ 5 5 5 - 6 - 6 + 5 + 5 50 gtk-dialog-warning @@ -45,8 +45,8 @@ False start center - 6 - 6 + 5 + 5 Enter DHCP ! @@ -163,8 +163,8 @@ 5 5 5 - 6 - 6 + 5 + 5 69 com.ublinux.ubl-settings-datetime @@ -354,8 +354,8 @@ 5 5 5 - 6 - 6 + 5 + 5 25 1 @@ -374,8 +374,8 @@ 5 5 5 - 6 - 6 + 5 + 5 @@ -473,8 +473,8 @@ 5 5 5 - 6 - 6 + 5 + 5 Time: True 0 @@ -493,8 +493,8 @@ 5 5 5 - 6 - 6 + 5 + 5 2 0.099999999776482579 True @@ -525,8 +525,8 @@ 5 5 5 - 6 - 6 + 5 + 5 2 True @@ -552,8 +552,8 @@ 5 5 5 - 6 - 6 + 5 + 5 Date: True 0 @@ -575,8 +575,8 @@ Format: DD.MM.YYYY 5 5 5 - 6 - 6 + 5 + 5 True @@ -594,8 +594,8 @@ Format: DD.MM.YYYY 10 5 10 - 6 - 6 + 5 + 5 True @@ -607,7 +607,7 @@ Format: DD.MM.YYYY False True - 6 + 5 @@ -631,8 +631,8 @@ Format: DD.MM.YYYY 5 7 5 - 6 - 6 + 5 + 5 True @@ -709,8 +709,8 @@ Format: DD.MM.YYYY 10 5 10 - 6 - 6 + 5 + 5 True @@ -792,8 +792,8 @@ Format: DD.MM.YYYY 5 5 5 - 6 - 6 + 5 + 5 False @@ -811,8 +811,8 @@ Format: DD.MM.YYYY 10 5 10 - 6 - 6 + 5 + 5 True @@ -879,7 +879,7 @@ Format: DD.MM.YYYY 5 8 5 - 6 + 5 13 Synchronize hardware time: @@ -897,7 +897,7 @@ Format: DD.MM.YYYY 5 5 10 - 6 + 5 10 False False @@ -938,7 +938,7 @@ Format: DD.MM.YYYY 5 8 5 - 6 + 5 13 Region: 0 @@ -957,7 +957,7 @@ Format: DD.MM.YYYY 5 5 5 - 6 + 5 10 False False @@ -976,7 +976,7 @@ Format: DD.MM.YYYY 5 5 5 - 6 + 5 13 Area: 0 @@ -995,7 +995,7 @@ Format: DD.MM.YYYY 5 5 5 - 6 + 5 10 False False @@ -1015,7 +1015,7 @@ Format: DD.MM.YYYY False True - 6 + 5 @@ -1321,7 +1321,7 @@ Format: DD.MM.YYYY 20 20 dialog-warning-symbolic - 6 + 5 False @@ -1422,7 +1422,7 @@ Format: DD.MM.YYYY 20 20 dialog-question-symbolic - 6 + 5 False From cba6960fb85f63714cf4be8adb24e0aa28d51078 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 17 May 2023 17:16:01 +0600 Subject: [PATCH 06/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=BD=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- #ubl-settings-datetime.glade# | 1636 +++++++++++++++++++++++++++++++ source/ubl-settings-datetime.cc | 2 +- ubl-settings-datetime.glade | 67 +- 3 files changed, 1671 insertions(+), 34 deletions(-) create mode 100644 #ubl-settings-datetime.glade# diff --git a/#ubl-settings-datetime.glade# b/#ubl-settings-datetime.glade# new file mode 100644 index 0000000..96c2b7d --- /dev/null +++ b/#ubl-settings-datetime.glade# @@ -0,0 +1,1636 @@ + + + + + + False + Внимание! + com.ublinux.ubl-settings-datetime + dialog + + + True + False + vertical + + + True + False + 5 + 5 + 5 + 5 + + + True + False + 5 + 5 + 5 + 5 + 5 + 50 + gtk-dialog-warning + + + True + True + 0 + + + + + 160 + True + False + start + center + 5 + 5 + Enter DHCP ! + + + True + True + 1 + + + + + False + True + 1 + + + + + OK + True + True + True + 5 + 5 + 5 + 5 + 3 + 3 + + + False + True + 1 + + + + + + + False + False + True + center + com.ublinux.ubl-settings-datetime + dialog + True + True + ubl-settings-datetime + 1.0 + Copyright © 2022 - 2023, UBSoft LLC + Setting the date and time + https://ublinux.ru/ + Project Home Page + Это приложение распространяется без каких-либо гарантий. +Подробнее в <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License, версии 2 или позднее</a>. + UBGroup + UBGroup + com.ublinux.ubl-settings-datetime + True + gpl-2-0 + + + True + False + vertical + 2 + + + False + end + + + False + False + 1 + + + + + + + + + + True + False + True + + + True + False + 5 + 5 + 5 + 5 + 2 + ubl-settings-datetime + + + + + + + + + + True + False + + + 90 + True + False + 5 + 5 + 5 + 5 + 5 + 5 + 69 + com.ublinux.ubl-settings-datetime + + + False + True + 0 + + + + + True + False + + + True + False + + + True + False + vertical + + + 255 + True + False + Date and Time + 0.25 + + + + + + + True + True + 0 + + + + + False + True + 0 + + + + + True + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + True + 1 + + + + + True + False + False + False + 4 + + + True + False + Load global configuration + + + + + + True + False + Load local configuration + + + + + + True + False + False + False + 4 + + + True + False + Help + + + + + + True + False + About + + + + + + True + False + False + False + 4 + + + True + False + Save configuration + + + + + + True + False + Save to global configuration + + + + + + True + False + Save to local configuration + + + + + + 659 + False + com.ublinux.ubl-settings-datetime + + + True + False + vertical + + + True + False + vertical + + + True + False + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + 25 + 1 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + 5 + 5 + 5 + 5 + + + + + + + True + True + 1 + + + + + False + True + 0 + + + + + True + False + vertical + + + 81 + True + False + + + True + False + start + + + -1 + + + + + False + True + 0 + + + + + False + True + 1 + + + + + True + False + vertical + + + True + False + vertical + + + True + False + 5 + 5 + 5 + 5 + 0.019999999552965164 + in + + + True + False + 5 + 5 + 5 + vertical + + + True + False + + + True + False + + + 0 + True + False + 5 + 5 + 5 + 5 + 5 + 5 + Time: + True + 0 + + + False + True + 0 + + + + + True + True + 5 + 5 + 5 + 5 + 5 + 5 + 2 + 0.099999999776482579 + True + + + False + True + 1 + + + + + True + False + : + + + False + True + 2 + + + + + True + True + 5 + 5 + 5 + 5 + 5 + 5 + 2 + True + + + False + True + 3 + + + + + False + True + 0 + + + + + 20 + True + False + 5 + 5 + 5 + 5 + 5 + 5 + Date: + True + 0 + + + False + True + 4 + + + + + True + True + True + Интерактивный выбор даты + 5 + 10 + 5 + 10 + 5 + 5 + + + True + False + x-office-calendar + + + + + False + True + 5 + + + + + -1 + True + True + Date +Format: DD.MM.YYYY + 5 + 5 + 5 + 5 + 5 + 5 + + + True + True + 5 + + + + + False + True + 1 + + + + + True + False + + + 0 + True + True + True + 7 + 5 + 7 + 5 + 5 + 5 + + + True + False + center + center + + + True + False + 5 + 5 + 5 + 5 + media-playlist-repeat + + + False + True + 0 + + + + + True + False + center + center + Sync by + + + False + True + 1 + + + + + + + True + True + 0 + + + + + True + False + + + False + True + 1 + + + + + True + False + + + False + True + 2 + + + + + True + True + True + 5 + 10 + 5 + 10 + 5 + 5 + + + True + False + center + center + Synchronize hardware time + + + + + True + True + 3 + + + + + False + True + 3 + + + + + + + True + False + Current date and time + + + + + False + True + 0 + + + + + False + True + 1 + + + + + True + False + vertical + + + True + False + 5 + 5 + 5 + 5 + 0.019999999552965164 + in + + + True + False + 5 + 5 + 5 + vertical + + + True + False + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + + + False + True + 1 + + + + + True + True + Enter the name of the ntp server or its ip address. When entering multiple addresses, separate them with spaces. + center + 5 + 10 + 5 + 10 + 5 + 5 + + + True + True + 3 + + + + + False + True + 1 + + + + + + + True + False + Synchronize via NTP + + + + + False + True + 0 + + + + + False + True + 2 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 0.019999999552965164 + in + + + True + False + vertical + + + True + False + + + True + False + start + 8 + 5 + 8 + 5 + 5 + 13 + Synchronize hardware time: + + + False + True + 0 + + + + + True + False + 10 + 5 + 5 + 10 + 5 + 10 + False + False + + + True + True + 2 + + + + + False + True + 0 + + + + + True + False + + + True + False + + + False + True + 1 + + + + + True + False + 8 + 5 + 8 + 5 + 5 + 13 + Region: + 0 + + + False + True + 2 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 10 + False + False + + + True + True + 3 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 13 + Area: + 0 + + + False + True + 4 + + + + + 5 + True + False + + + False + True + 5 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 10 + False + False + + + True + True + 5 + + + + + True + False + + + False + True + 7 + + + + + False + True + 1 + + + + + + + True + False + Time Zone + + + + + False + True + 3 + + + + + False + True + 2 + + + + + False + True + 0 + + + + + + + True + False + True + + + True + False + start + 5 + 5 + 5 + 5 + 1 + False + ubl-settings-datetime + + + + + + + + True + False + 5 + 5 + 5 + 5 + 32 + com.ublinux.ubl-settings-datetime + + + + + True + False + + + True + True + False + True + True + menu + none + + + True + False + + + True + False + 5 + 5 + 5 + 5 + Load + + + False + True + 0 + + + + + True + False + pan-down-symbolic + + + False + True + 1 + + + + + + + False + True + 0 + + + + + + 1 + + + + + True + False + + + True + True + False + True + True + menu2 + none + + + True + False + + + True + False + 5 + 5 + 5 + 5 + Save + + + + False + True + 0 + + + + + True + False + pan-down-symbolic + + + False + True + 1 + + + + + + + False + True + 0 + + + + + True + True + False + True + True + menu1 + none + + + True + False + open-menu-symbolic + + + + + False + True + 1 + + + + + + end + 3 + + + + + + + both + True + + + + + + + both + True + + + + + + + 240 + 185 + False + btnChooseDate + bottom + none + + + True + True + 10 + 10 + 10 + 10 + 10 + 10 + 2023 + 1 + 10 + + + + + False + start + False + + + True + False + vertical + + + True + False + + + True + False + center + start + 20 + 20 + 20 + 20 + 20 + 20 + dialog-warning-symbolic + 5 + + + False + True + 1 + + + + + True + False + center + center + 10 + 25 + 10 + 25 + 20 + 20 + Enter DHCP ! + True + 0 + + + True + True + 2 + + + + + True + True + 0 + + + + + Close + True + True + True + 5 + 5 + 5 + 5 + 5 + 5 + + + False + True + 2 + + + + + + + True + False + Attention + True + + + True + False + 32 + com.ublinux.ubl-settings-datetime + 5 + + + + + + + False + start + start + False + 450 + 250 + dialog-question-symbolic + + + True + False + vertical + + + True + False + + + True + False + start + 20 + 20 + dialog-question-symbolic + 5 + + + False + True + 0 + + + + + True + False + vertical + + + True + False + start + 10 + 5 + Would you like to read documentation in the Web? + True + 0 + + + + + + + False + True + 0 + + + + + True + False + start + start + 10 + 10 + You will be redirected to documentation website where documentation is translated and supported by community. + True + 0 + + + + True + True + 1 + + + + + Always redirect to online documentation + True + True + False + end + 10 + True + + + + False + True + 2 + + + + + + True + True + 1 + + + + + + True + True + 0 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + 30 + True + + + Cancel + True + True + True + + + + True + True + 0 + + + + + Read Online + True + True + True + + + + True + True + 1 + + + + + False + True + 1 + + + + + + + True + False + True + + + True + False + ubl-settings-datetime + + + + + + + + True + False + 32 + dialog-question-symbolic + + + + + + + 800 + 600 + False + True + True + com.ublinux.ubl-settings-datetime + center + + + + + + True + False + True + + + True + False + ubl-settings-datetime + + + + + True + False + 32 + com.ublinux.ubl-settings-datetime + 5 + + + + + + diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index f7db74a..285a28c 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -147,7 +147,7 @@ void MainWindow::lacalization() { cbDhcp->append(str_manual); cbDhcp->append(str_disabled); lblDateTimeSetting->set_text(current_date_time); - lblHead->set_text(setting_date_time); + lblHead->set_text(str_date_time); lblTime->set_text(str_time); lblData->set_text(str_date); lblTimeZone->set_text(str_time_zone); diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index f055c4b..6145e91 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -192,7 +192,8 @@ 255 True False - Date and time settings + Date and Time + 0.20999999344348907 @@ -564,26 +565,6 @@ 4 - - - -1 - True - True - Date -Format: DD.MM.YYYY - 5 - 5 - 5 - 5 - 5 - 5 - - - True - True - 5 - - True @@ -610,6 +591,26 @@ Format: DD.MM.YYYY 5 + + + -1 + True + True + Date +Format: DD.MM.YYYY + 5 + 5 + 5 + 5 + 5 + 5 + + + True + True + 5 + + False @@ -987,6 +988,18 @@ Format: DD.MM.YYYY 4 + + + 5 + True + False + + + False + True + 5 + + True @@ -1006,18 +1019,6 @@ Format: DD.MM.YYYY 5 - - - 5 - True - False - - - False - True - 5 - - True From 5a9458ce9b14082b7924a6daaef440d330ff23d6 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 17 May 2023 17:16:34 +0600 Subject: [PATCH 07/11] fix --- #ubl-settings-datetime.glade# | 1636 --------------------------------- ubl-settings-datetime.glade | 2 +- 2 files changed, 1 insertion(+), 1637 deletions(-) delete mode 100644 #ubl-settings-datetime.glade# diff --git a/#ubl-settings-datetime.glade# b/#ubl-settings-datetime.glade# deleted file mode 100644 index 96c2b7d..0000000 --- a/#ubl-settings-datetime.glade# +++ /dev/null @@ -1,1636 +0,0 @@ - - - - - - False - Внимание! - com.ublinux.ubl-settings-datetime - dialog - - - True - False - vertical - - - True - False - 5 - 5 - 5 - 5 - - - True - False - 5 - 5 - 5 - 5 - 5 - 50 - gtk-dialog-warning - - - True - True - 0 - - - - - 160 - True - False - start - center - 5 - 5 - Enter DHCP ! - - - True - True - 1 - - - - - False - True - 1 - - - - - OK - True - True - True - 5 - 5 - 5 - 5 - 3 - 3 - - - False - True - 1 - - - - - - - False - False - True - center - com.ublinux.ubl-settings-datetime - dialog - True - True - ubl-settings-datetime - 1.0 - Copyright © 2022 - 2023, UBSoft LLC - Setting the date and time - https://ublinux.ru/ - Project Home Page - Это приложение распространяется без каких-либо гарантий. -Подробнее в <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License, версии 2 или позднее</a>. - UBGroup - UBGroup - com.ublinux.ubl-settings-datetime - True - gpl-2-0 - - - True - False - vertical - 2 - - - False - end - - - False - False - 1 - - - - - - - - - - True - False - True - - - True - False - 5 - 5 - 5 - 5 - 2 - ubl-settings-datetime - - - - - - - - - - True - False - - - 90 - True - False - 5 - 5 - 5 - 5 - 5 - 5 - 69 - com.ublinux.ubl-settings-datetime - - - False - True - 0 - - - - - True - False - - - True - False - - - True - False - vertical - - - 255 - True - False - Date and Time - 0.25 - - - - - - - True - True - 0 - - - - - False - True - 0 - - - - - True - True - 0 - - - - - True - False - - - False - True - 1 - - - - - True - True - 1 - - - - - True - False - False - False - 4 - - - True - False - Load global configuration - - - - - - True - False - Load local configuration - - - - - - True - False - False - False - 4 - - - True - False - Help - - - - - - True - False - About - - - - - - True - False - False - False - 4 - - - True - False - Save configuration - - - - - - True - False - Save to global configuration - - - - - - True - False - Save to local configuration - - - - - - 659 - False - com.ublinux.ubl-settings-datetime - - - True - False - vertical - - - True - False - vertical - - - True - False - - - True - False - 5 - 5 - 5 - 5 - 5 - 5 - 25 - 1 - - - False - True - 0 - - - - - True - False - start - 5 - 5 - 5 - 5 - 5 - 5 - - - - - - - True - True - 1 - - - - - False - True - 0 - - - - - True - False - vertical - - - 81 - True - False - - - True - False - start - - - -1 - - - - - False - True - 0 - - - - - False - True - 1 - - - - - True - False - vertical - - - True - False - vertical - - - True - False - 5 - 5 - 5 - 5 - 0.019999999552965164 - in - - - True - False - 5 - 5 - 5 - vertical - - - True - False - - - True - False - - - 0 - True - False - 5 - 5 - 5 - 5 - 5 - 5 - Time: - True - 0 - - - False - True - 0 - - - - - True - True - 5 - 5 - 5 - 5 - 5 - 5 - 2 - 0.099999999776482579 - True - - - False - True - 1 - - - - - True - False - : - - - False - True - 2 - - - - - True - True - 5 - 5 - 5 - 5 - 5 - 5 - 2 - True - - - False - True - 3 - - - - - False - True - 0 - - - - - 20 - True - False - 5 - 5 - 5 - 5 - 5 - 5 - Date: - True - 0 - - - False - True - 4 - - - - - True - True - True - Интерактивный выбор даты - 5 - 10 - 5 - 10 - 5 - 5 - - - True - False - x-office-calendar - - - - - False - True - 5 - - - - - -1 - True - True - Date -Format: DD.MM.YYYY - 5 - 5 - 5 - 5 - 5 - 5 - - - True - True - 5 - - - - - False - True - 1 - - - - - True - False - - - 0 - True - True - True - 7 - 5 - 7 - 5 - 5 - 5 - - - True - False - center - center - - - True - False - 5 - 5 - 5 - 5 - media-playlist-repeat - - - False - True - 0 - - - - - True - False - center - center - Sync by - - - False - True - 1 - - - - - - - True - True - 0 - - - - - True - False - - - False - True - 1 - - - - - True - False - - - False - True - 2 - - - - - True - True - True - 5 - 10 - 5 - 10 - 5 - 5 - - - True - False - center - center - Synchronize hardware time - - - - - True - True - 3 - - - - - False - True - 3 - - - - - - - True - False - Current date and time - - - - - False - True - 0 - - - - - False - True - 1 - - - - - True - False - vertical - - - True - False - 5 - 5 - 5 - 5 - 0.019999999552965164 - in - - - True - False - 5 - 5 - 5 - vertical - - - True - False - - - True - False - 5 - 5 - 5 - 5 - 5 - 5 - - - False - True - 1 - - - - - True - True - Enter the name of the ntp server or its ip address. When entering multiple addresses, separate them with spaces. - center - 5 - 10 - 5 - 10 - 5 - 5 - - - True - True - 3 - - - - - False - True - 1 - - - - - - - True - False - Synchronize via NTP - - - - - False - True - 0 - - - - - False - True - 2 - - - - - True - False - 5 - 5 - 5 - 5 - 5 - 0.019999999552965164 - in - - - True - False - vertical - - - True - False - - - True - False - start - 8 - 5 - 8 - 5 - 5 - 13 - Synchronize hardware time: - - - False - True - 0 - - - - - True - False - 10 - 5 - 5 - 10 - 5 - 10 - False - False - - - True - True - 2 - - - - - False - True - 0 - - - - - True - False - - - True - False - - - False - True - 1 - - - - - True - False - 8 - 5 - 8 - 5 - 5 - 13 - Region: - 0 - - - False - True - 2 - - - - - True - False - 5 - 5 - 5 - 5 - 5 - 10 - False - False - - - True - True - 3 - - - - - True - False - 5 - 5 - 5 - 5 - 5 - 13 - Area: - 0 - - - False - True - 4 - - - - - 5 - True - False - - - False - True - 5 - - - - - True - False - 5 - 5 - 5 - 5 - 5 - 10 - False - False - - - True - True - 5 - - - - - True - False - - - False - True - 7 - - - - - False - True - 1 - - - - - - - True - False - Time Zone - - - - - False - True - 3 - - - - - False - True - 2 - - - - - False - True - 0 - - - - - - - True - False - True - - - True - False - start - 5 - 5 - 5 - 5 - 1 - False - ubl-settings-datetime - - - - - - - - True - False - 5 - 5 - 5 - 5 - 32 - com.ublinux.ubl-settings-datetime - - - - - True - False - - - True - True - False - True - True - menu - none - - - True - False - - - True - False - 5 - 5 - 5 - 5 - Load - - - False - True - 0 - - - - - True - False - pan-down-symbolic - - - False - True - 1 - - - - - - - False - True - 0 - - - - - - 1 - - - - - True - False - - - True - True - False - True - True - menu2 - none - - - True - False - - - True - False - 5 - 5 - 5 - 5 - Save - - - - False - True - 0 - - - - - True - False - pan-down-symbolic - - - False - True - 1 - - - - - - - False - True - 0 - - - - - True - True - False - True - True - menu1 - none - - - True - False - open-menu-symbolic - - - - - False - True - 1 - - - - - - end - 3 - - - - - - - both - True - - - - - - - both - True - - - - - - - 240 - 185 - False - btnChooseDate - bottom - none - - - True - True - 10 - 10 - 10 - 10 - 10 - 10 - 2023 - 1 - 10 - - - - - False - start - False - - - True - False - vertical - - - True - False - - - True - False - center - start - 20 - 20 - 20 - 20 - 20 - 20 - dialog-warning-symbolic - 5 - - - False - True - 1 - - - - - True - False - center - center - 10 - 25 - 10 - 25 - 20 - 20 - Enter DHCP ! - True - 0 - - - True - True - 2 - - - - - True - True - 0 - - - - - Close - True - True - True - 5 - 5 - 5 - 5 - 5 - 5 - - - False - True - 2 - - - - - - - True - False - Attention - True - - - True - False - 32 - com.ublinux.ubl-settings-datetime - 5 - - - - - - - False - start - start - False - 450 - 250 - dialog-question-symbolic - - - True - False - vertical - - - True - False - - - True - False - start - 20 - 20 - dialog-question-symbolic - 5 - - - False - True - 0 - - - - - True - False - vertical - - - True - False - start - 10 - 5 - Would you like to read documentation in the Web? - True - 0 - - - - - - - False - True - 0 - - - - - True - False - start - start - 10 - 10 - You will be redirected to documentation website where documentation is translated and supported by community. - True - 0 - - - - True - True - 1 - - - - - Always redirect to online documentation - True - True - False - end - 10 - True - - - - False - True - 2 - - - - - - True - True - 1 - - - - - - True - True - 0 - - - - - True - False - 5 - 5 - 5 - 5 - 5 - 5 - 30 - True - - - Cancel - True - True - True - - - - True - True - 0 - - - - - Read Online - True - True - True - - - - True - True - 1 - - - - - False - True - 1 - - - - - - - True - False - True - - - True - False - ubl-settings-datetime - - - - - - - - True - False - 32 - dialog-question-symbolic - - - - - - - 800 - 600 - False - True - True - com.ublinux.ubl-settings-datetime - center - - - - - - True - False - True - - - True - False - ubl-settings-datetime - - - - - True - False - 32 - com.ublinux.ubl-settings-datetime - 5 - - - - - - diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index 6145e91..96c2b7d 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -193,7 +193,7 @@ True False Date and Time - 0.20999999344348907 + 0.25 From 3f8afbd560d7b347641c6af8a34cd7428297c371 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 17 May 2023 18:02:48 +0600 Subject: [PATCH 08/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 2 +- ubl-settings-datetime.glade | 2 +- ubl-settings-datetime_ru.po | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 285a28c..88ff657 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -130,7 +130,7 @@ void MainWindow::lacalization() { tm *ltm = localtime(&now); unsigned int year = 1900+ ltm->tm_year; string str_authors = string(copyright) + to_string(year); - aboutWindows->set_program_name(name_app); + aboutWindows->set_program_name(app_name); aboutWindows->set_copyright(str_authors); aboutWindows->set_comments(str_date_time); aboutWindows->set_website(website); diff --git a/ubl-settings-datetime.glade b/ubl-settings-datetime.glade index 96c2b7d..a947538 100644 --- a/ubl-settings-datetime.glade +++ b/ubl-settings-datetime.glade @@ -96,7 +96,7 @@ ubl-settings-datetime 1.0 Copyright © 2022 - 2023, UBSoft LLC - Setting the date and time + Date and Time https://ublinux.ru/ Project Home Page Это приложение распространяется без каких-либо гарантий. diff --git a/ubl-settings-datetime_ru.po b/ubl-settings-datetime_ru.po index d25c7fd..02323fc 100644 --- a/ubl-settings-datetime_ru.po +++ b/ubl-settings-datetime_ru.po @@ -2097,17 +2097,12 @@ msgid "" msgstr "" "https://wiki.ublinux.ru/ru/Программное_обеспечение/Программы_и_утилиты/Все/" -#: source/ubl-settings-datetime.cc:174 -#, fuzzy -msgid "ubl-settings-bootloader" -msgstr "О программе Загрузка системы" - #: source/ubl-settings-datetime.h:67 source/ubl-settings-datetime.h:66 #: source/ubl-settings-datetime.cc:131 source/ubl-settings-datetime.cc:155 #: source/ubl-settings-datetime.cc:156 source/ubl-settings-datetime.cc:151 #: source/ubl-settings-datetime.cc:146 msgid "ubl-settings-datetime" -msgstr "Настройка даты и времени" +msgstr "Дата и время" #: source/ubl-settings-datetime.h:87 source/ubl-settings-datetime.h:86 #: source/ubl-settings-datetime.cc:1714 source/ubl-settings-datetime.cc:1651 From 274bbea1fb672aec00e71e740f94a88e012f6105 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Thu, 18 May 2023 09:26:42 +0600 Subject: [PATCH 09/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B2=20about?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubl-settings-datetime_ru.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubl-settings-datetime_ru.po b/ubl-settings-datetime_ru.po index 02323fc..5fe669d 100644 --- a/ubl-settings-datetime_ru.po +++ b/ubl-settings-datetime_ru.po @@ -78,7 +78,7 @@ msgstr "О программе" #: source/ubl-settings-datetime.h:71 source/ubl-settings-datetime.h:70 #: source/ubl-settings-datetime.cc:137 msgid "About ubl-settings-datetime" -msgstr "О программе Настройка даты и времени" +msgstr "О программе Дата и время" msgid "Accra" msgstr "Аккра" From f315cc8ba59b8f3ed31ec60d0cb7076743d6f7e1 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Thu, 18 May 2023 11:36:04 +0600 Subject: [PATCH 10/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=D1=8B=20?= =?UTF-8?q?=D0=B2=20=D0=BE=D0=BA=D0=BD=D0=B5=20=D0=B2=D1=8B=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=20=D0=B1=D1=80=D0=B0=D1=83=D0=B7=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.h | 2 +- ubl-settings-datetime_ru.po | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-datetime.h b/source/ubl-settings-datetime.h index 90bb0fa..6425c94 100644 --- a/source/ubl-settings-datetime.h +++ b/source/ubl-settings-datetime.h @@ -91,7 +91,7 @@ #define always_redirect _("Always redirect") #define nothing_save _("Nothing to save!") #define read_documentation_web _("Would you like to read documentation in the Web?") -#define redirected_documentation _("You will be redirected to documentation site, where user help pages are ""translated and supported by community.") +#define redirected_documentation _("You will be redirected to documentation website where documentation is\n""translated and supported by community.") #define str_help_h _("Setting up the date and time for UBLinux\n\n""Usage: ubl-settings-datetime [OPTIONS...]\n""Options:\n"" -h, --help Show this help\n"" -V, --version Show package version\n"" --lock-datetime Lock date and time changes\n"" --lock-timezone Lock time zone changes\n"" --lock-ntp-mode Lock NTP mode selection\n"" --lock-ntp-edit Lock editing NTP servers\n"" --lock-sync-hwclock Lock sync hwclock mode selection\n"" --lock-save Lock saving local and global configuration\n"" --lock-save-local Lock save global configuration\n"" --lock-save-global Lock load global configuration\n"" --lock-load-global Lock load global configuration\n") #define str_version _("ubl-settings-datetime version: ") #define local_read_error _("Local configuration reading error") diff --git a/ubl-settings-datetime_ru.po b/ubl-settings-datetime_ru.po index 5fe669d..0812ab1 100644 --- a/ubl-settings-datetime_ru.po +++ b/ubl-settings-datetime_ru.po @@ -2058,10 +2058,10 @@ msgstr "Ереван" #: source/ubl-settings-datetime.h:85 source/ubl-settings-datetime.h:84 #: source/ubl-settings-datetime.cc:169 msgid "" -"You will be redirected to documentation site, where user help pages are " +"You will be redirected to documentation website where documentation is\n" "translated and supported by community." msgstr "" -"Вы будете перенаправлены на сайт с документацией где страницы помощи " +"Вы будете перенаправлены на сайт с документацией где страницы помощи\n" "переводятся и поддерживаются сообществом." msgid "Yukon" From 3a69082dcf14b8508f0fe3408cce492e9466eb9d Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Thu, 18 May 2023 11:41:58 +0600 Subject: [PATCH 11/11] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20pot=20=D1=84=D0=B0=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubl-settings-datetime.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubl-settings-datetime.pot b/ubl-settings-datetime.pot index 2110e3a..a570d35 100644 --- a/ubl-settings-datetime.pot +++ b/ubl-settings-datetime.pot @@ -2030,7 +2030,7 @@ msgstr "" #: source/ubl-settings-datetime.h:85 source/ubl-settings-datetime.h:84 #: source/ubl-settings-datetime.cc:169 msgid "" -"You will be redirected to documentation site, where user help pages are " +"You will be redirected to documentation website where documentation is\n" "translated and supported by community." msgstr ""