From 2df5eed208b8f039e6f82031fd29c07f863a1ee7 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Mon, 13 Mar 2023 15:02:34 +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=BE=20=D0=BE=D0=BA=D0=BD=D0=BE=20=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 8 +++++++- ubl-settings-datetime_ru.po | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 0f3375b..c6b48b7 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -142,7 +142,12 @@ int MainWindow::check_root() { } void MainWindow::lacalization() { - aboutWindows->set_comments(_("Setting the date and time")); + time_t now = time(0); + tm *ltm = localtime(&now); + unsigned int year = 1900+ ltm->tm_year; + string str_authors = string(_("Copyright © UBSoft LLC, 2022 - ")) + to_string(year); + aboutWindows->set_copyright(str_authors); + aboutWindows->set_comments(_("Date and Time")); aboutWindows->set_website(_("https://wiki.ublinux.com")); aboutWindows->set_version(_(version_application.c_str())); aboutWindows->set_website_label(_("Project Home Page")); @@ -1023,6 +1028,7 @@ void MainWindow::append_region_zone(string region, string zone, Gtk::ComboBoxTex } } + string MainWindow::call(string cmd) { FILE *fp; int status; diff --git a/ubl-settings-datetime_ru.po b/ubl-settings-datetime_ru.po index be9efbf..a2a5d98 100644 --- a/ubl-settings-datetime_ru.po +++ b/ubl-settings-datetime_ru.po @@ -16,6 +16,9 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +msgid "Copyright © UBSoft LLC, 2022 - " +msgstr "Авторские права © ООО \"Юбисофт\", 2022 - " + msgid "Select the method of hardware time synchronization" msgstr "Выберите способ синхронизации аппаратного времени" @@ -1768,6 +1771,9 @@ msgstr "О программе" msgid "Help" msgstr "Справка" +msgid "Date and Time" +msgstr "Дата и Время" + msgid " : Hardware time" msgstr " : Аппаратного времени"