Добавил локализацию

pull/16/head
Igor Belitskiy 3 years ago
parent 0819e68a89
commit f634d563d0

@ -0,0 +1,820 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkWindow" id="mess_dchp">
<property name="can-focus">False</property>
<property name="title" translatable="yes">Внимание!</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="pixel-size">50</property>
<property name="icon-name">gtk-dialog-warning</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblMessage">
<property name="width-request">160</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes">Введите DHCP !</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="btnMessClose">
<property name="label" translatable="yes">OK</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">3</property>
<property name="margin-bottom">3</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
<object class="GtkWindow" id="window">
<property name="can-focus">False</property>
<property name="title" translatable="yes" context="Settings the date and time" comments="Date and Time Settings">Настройки даты и времени</property>
<child>
<object class="GtkBox" id="id_plug">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="boxColor">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkImage">
<property name="width-request">90</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="pixel-size">69</property>
<property name="icon-name">ubl-settings-datetime</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblNtpServer1">
<property name="width-request">145</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">3</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Setting the date and time" comments="Setting the date and time">Настройка даты и времени</property>
<property name="wrap">True</property>
<property name="max-width-chars">28</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="size" value="12288"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="width-request">100</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">15</property>
<property name="margin-right">5</property>
<property name="margin-start">15</property>
<property name="margin-end">5</property>
<attributes>
<attribute name="background" value="#ffffffffffff"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="label-xalign">0.019999999552965164</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-start">5</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkLabel" id="lblTime">
<property name="width-request">145</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Time" comments="Time">Время</property>
<property name="wrap">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="numTimeHrs">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="width-chars">2</property>
<property name="progress-pulse-step">0.099999999776482579</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">:</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="numTimeMin">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="width-chars">2</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkLabel" id="lblData">
<property name="width-request">145</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Date" comments="Date">Дата</property>
<property name="wrap">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="txtDate">
<property name="width-request">221</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="tooltip-text" translatable="yes" context="Date of&#10;Format: DD.MM.YYYY" comments="Date of&#10;Format: DD.MM.YYYY">Дата
Формат: ДД.ММ.ГГГГ</property>
<property name="margin-left">5</property>
<property name="margin-right">14</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="btnChooseDate">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="tooltip-text" translatable="yes" context="Interactive date picker" comments="Interactive date picker">Интерактивный выбор даты</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="icon-name">x-office-calendar</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkLabel" id="lblTimeZone">
<property name="width-request">145</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="time zone" comments="time zone">Часовой пояс</property>
<property name="wrap">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblReg">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes" context="Region" comments="Region">Регион</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Region" comments="Region">Регион</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="cbRegion">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblZone">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="tooltip-text" translatable="yes" context="Zone" comments="Zone">Зона</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Zone" comments="Zone">Зона</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="cbZone">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="width-request">5</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
</packing>
</child>
<child>
<object class="GtkButton" id="btnUpdateDateTime">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="halign">end</property>
<property name="margin-right">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="icon-name">media-playlist-repeat</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblSynchronizeBtn">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Синхронизировать</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="lblDateTimeSetting">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes" context="Setting the date and time" comments="Setting the date and time">Настройка даты и времени</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="label-xalign">0.019999999552965164</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-start">5</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkCheckButton" id="cbxSynchronizeNtp">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes" context="Automatic time synchronization" comments="Automatic time synchronization">Автоматическая синхронизация времени</property>
<property name="margin-left">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="draw-indicator">True</property>
<child>
<object class="GtkLabel" id="lblSynchronizebChk">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes" context="Synchronize via NTP" comments="Synchronize via NTP">Синхронизировать через NTP</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="cbDhcp">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="txtNtpServer">
<property name="width-request">-1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="valign">center</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkLabel" id="lblTimeZoneGlob">
<property name="width-request">145</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Time zone" comments="Time zone">Часовой пояс</property>
<property name="wrap">True</property>
<property name="max-width-chars">28</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblRegGlob">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="label" translatable="yes" context="Region" comments="Region">Регион</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="cbRegionGlob">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="lblZone1Glob">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="label" translatable="yes" context="Zone" comments="Zone">Зона</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="cbZoneGlob">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="width-request">5</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">15</property>
<property name="margin-right">5</property>
<property name="margin-start">15</property>
<property name="margin-end">5</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="lblDateTimeSettingGlob">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes" context="Setting date and time in global configuration" comments="Setting date and time in global configuration">Настройка даты и времени в глобальной конфигурации</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
</child>
</object>
<object class="GtkPopover" id="popCalendar">
<property name="width-request">240</property>
<property name="height-request">185</property>
<property name="can-focus">False</property>
<property name="relative-to">btnChooseDate</property>
<property name="position">bottom</property>
<property name="constrain-to">none</property>
<child>
<object class="GtkCalendar" id="cldrDate">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="margin-left">10</property>
<property name="margin-right">10</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="year">2023</property>
<property name="month">1</property>
<property name="day">10</property>
</object>
</child>
</object>
</interface>

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-24 15:14+0000\n"
"POT-Creation-Date: 2023-01-25 12:51+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -21,61 +21,45 @@ msgstr ""
msgid "Внимание!"
msgstr ""
#: ubl-settings-datetime.glade:46
#: ubl-settings-datetime.glade:45
msgid "Введите DHCP !"
msgstr ""
#: ubl-settings-datetime.glade:63
#: ubl-settings-datetime.glade:62
msgid "OK"
msgstr ""
#. Date and Time Settings
#: ubl-settings-datetime.glade:85
#: ubl-settings-datetime.glade:84
msgctxt "Settings the date and time"
msgid "Настройки даты и времени"
msgstr ""
#: ubl-settings-datetime.glade:120
msgid "Изменить параметр NTPSERVERS"
msgstr ""
#. Setting the date and time
#: ubl-settings-datetime.glade:127 ubl-settings-datetime.glade:536
#: ubl-settings-datetime.glade:125 ubl-settings-datetime.glade:531
msgctxt "Setting the date and time"
msgid "Настройка даты и времени"
msgstr ""
#. Time
#: ubl-settings-datetime.glade:206
#: ubl-settings-datetime.glade:204
msgctxt "Time"
msgid "Время"
msgstr ""
#. Clock
#: ubl-settings-datetime.glade:220
msgctxt "Clock"
msgid "Часы"
msgstr ""
#: ubl-settings-datetime.glade:241
#: ubl-settings-datetime.glade:238
msgid ":"
msgstr ""
#. Minutes
#: ubl-settings-datetime.glade:253
msgctxt "Minutes"
msgid "Минуты"
msgstr ""
#. Date
#: ubl-settings-datetime.glade:291
#: ubl-settings-datetime.glade:287
msgctxt "Date"
msgid "Дата"
msgstr ""
#. Date of
#. Format: DD.MM.YYYY
#: ubl-settings-datetime.glade:306
#: ubl-settings-datetime.glade:302
msgctxt ""
"Date of\n"
"Format: DD.MM.YYYY"
@ -85,76 +69,55 @@ msgid ""
msgstr ""
#. Interactive date picker
#: ubl-settings-datetime.glade:325
#: ubl-settings-datetime.glade:321
msgctxt "Interactive date picker"
msgid "Интерактивный выбор даты"
msgstr ""
#. Change zone setting
#: ubl-settings-datetime.glade:362 ubl-settings-datetime.glade:658
msgctxt "Change zone setting"
msgid "Изменить параметр зоны"
msgstr ""
#. time zone
#: ubl-settings-datetime.glade:369
#: ubl-settings-datetime.glade:364
msgctxt "time zone"
msgid "Часовой пояс"
msgstr ""
#. Region
#: ubl-settings-datetime.glade:394 ubl-settings-datetime.glade:401
#: ubl-settings-datetime.glade:691 ubl-settings-datetime.glade:698
#: ubl-settings-datetime.glade:389 ubl-settings-datetime.glade:396
#: ubl-settings-datetime.glade:687
msgctxt "Region"
msgid "Регион"
msgstr ""
#. Zone
#: ubl-settings-datetime.glade:431 ubl-settings-datetime.glade:438
#: ubl-settings-datetime.glade:728 ubl-settings-datetime.glade:733
#: ubl-settings-datetime.glade:426 ubl-settings-datetime.glade:433
#: ubl-settings-datetime.glade:721
msgctxt "Zone"
msgid "Зона"
msgstr ""
#: ubl-settings-datetime.glade:506
#: ubl-settings-datetime.glade:501
msgid "Синхронизировать"
msgstr ""
#. Automatic time synchronization
#: ubl-settings-datetime.glade:585
#: ubl-settings-datetime.glade:580
msgctxt "Automatic time synchronization"
msgid "Автоматическая синхронизация времени"
msgstr ""
#: ubl-settings-datetime.glade:597
#. Synchronize via NTP
#: ubl-settings-datetime.glade:591
msgctxt "Synchronize via NTP"
msgid "Синхронизировать через NTP"
msgstr ""
#. Synchronization method
#: ubl-settings-datetime.glade:611
msgctxt "Synchronization method"
msgid "Способ синхронизации"
msgstr ""
#. Server input for date and time synchronization:
#. Local (DHCP) or arbitrary
#: ubl-settings-datetime.glade:626
msgctxt ""
"Server input for date and time synchronization:\n"
"Local (DHCP) or arbitrary"
msgid ""
"Ввод сервера для синхронизации даты и времени:\n"
"Локальный (DHCP) или произвольный"
msgstr ""
#. Time zone
#: ubl-settings-datetime.glade:665
#: ubl-settings-datetime.glade:655
msgctxt "Time zone"
msgid "Часовой пояс"
msgstr ""
#. Setting date and time in global configuration
#: ubl-settings-datetime.glade:788
#: ubl-settings-datetime.glade:776
msgctxt "Setting date and time in global configuration"
msgid "Настройка даты и времени в глобальной конфигурации"
msgstr ""

@ -1,7 +1,6 @@
#include <gtkmm/window.h>
#include <cstddef>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <gtkmm.h>
#include <ostream>
@ -11,14 +10,14 @@
#include <map>
#include <fstream>
#include <filesystem>
#include <libintl.h>
#include <locale.h>
#include <glibmm/i18n.h>
#include <stdio.h>
#include <gtkmm/plug.h>
#include <gtkmm/stock.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <iostream>
#include "ubl-settings-datetime.h"
int main(int argc, char* argv[]) {
string str_argv="";
@ -26,20 +25,15 @@ int main(int argc, char* argv[]) {
for (int i=1; i<argc; i++){
str_cmd_argv+= to_string(*argv[i]) + " ";
}
if (geteuid()!=0){
// string cmd = "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY " + path_app + app_name + " " + str_cmd_argv ;
string cmd = "pkexec " + app_name + " " + str_cmd_argv ;
system(cmd.c_str());
return 0;
}
setlocale(LC_ALL, "");
//bind_textdomain_codeset(app_name.c_str(), "UTF-8");
textdomain(app_name.c_str());
bindtextdomain(app_name.c_str(), path_locale.c_str());
bindtextdomain("ubl-settings-datetime", "/usr/share/locale/");
bind_textdomain_codeset("ubl-settings-datetime", "UTF-8");
textdomain("ubl-settings-datetime");
if (argc>1){
str_argv = argv[1];
}
@ -69,11 +63,8 @@ int main(int argc, char* argv[]) {
}
MainWindow* wnd = nullptr;
builder->get_widget_derived("window", wnd);
auto r = app->run(*wnd);
delete wnd;
return r;
}
@ -88,20 +79,12 @@ int main(int argc, char* argv[]) {
"Command line argument for socket ID communication.",
"No help available, sorry"
};
context.set_main_group(parser);
context.parse(argc, argv);
::Window socketID = parser.GetSocketID();
// Handle plug:
SettingsPlug plug{socketID, builder};
plug.show();
app->run(plug);
return 0;
}
}

@ -12,8 +12,7 @@
#include <map>
#include <fstream>
#include <filesystem>
#include <libintl.h>
#include <locale.h>
#include <glibmm/i18n.h>
#include <stdio.h>
#include <gtkmm/plug.h>
#include <gtkmm/stock.h>
@ -47,15 +46,13 @@ CmdArgParser::CmdArgParser(const std::string& p_name, const std::string& p_descr
add_entry(socketIDArg, m_socketID);
}
::Window CmdArgParser::GetSocketID() const
{
::Window CmdArgParser::GetSocketID() const {
return m_socketID;
}
MainWindow::MainWindow(BaseObjectType* obj, Glib::RefPtr<Gtk::Builder> const& builder)
: Gtk::ApplicationWindow(obj)
, builder{builder}
{
, builder{builder} {
this->settings();
}
@ -67,21 +64,23 @@ MainWindow::MainWindow(Glib::RefPtr<Gtk::Builder> const& builder) {
void MainWindow::settings(){
year=0, month=0, day=0;
this->get_builder();
this->lacalization();
_numTimeHrs->set_range(0,23);
_numTimeMin->set_range(0,59);
_numTimeHrs->set_increments(1.0,1.0);
_numTimeMin->set_increments(1.0,1.0);
this->lacalization();
this->get_config();
this->flag_block_gui();
this->event();
this->parse_text_date();
}
void MainWindow::lacalization(){
_txtDate->set_tooltip_text("Date of\nFormat: DD.MM.YYYY");
_lblSynchronizebChk->set_text(gettext("Synchronize via NTP"));
_cbDhcp->append(gettext("DHCP"));
_cbDhcp->append(gettext("Manually"));
_lblDateTimeSetting->set_text(gettext("Setting the date and time"));
_lblNtpServer1->set_text(gettext("Setting the date and time"));
_lblDateTimeSetting->set_text(gettext("Settings the date and time"));
_lblNtpServer1->set_text(gettext("Settings the date and time"));
_lblTime->set_text(gettext("Time"));
_lblData->set_text(gettext("Date"));
_lblTimeZone->set_text(gettext("Time zone"));
@ -90,11 +89,9 @@ void MainWindow::lacalization(){
_lblRegGlob->set_text(gettext("Region"));
_lblZone1Glob->set_text(gettext("Zone"));
_lblTimeZoneGlob->set_text(gettext("Time zone"));
_lblSynchronizebChk->set_text(gettext("Synchronize via NTP"));
_lblSynchronizeBtn->set_text(gettext("Sync by"));
_lblDateTimeSettingGlob->set_text(gettext("Setting date and time in global configuration"));
this->set_title(gettext("ubl-settings-datetime"));
_txtDate->set_tooltip_text("Date of\nFormat: DD.MM.YYYY");
_mess_dchp->set_title("Warning!");
}

@ -14,8 +14,7 @@
#include <map>
#include <fstream>
#include <filesystem>
#include <libintl.h>
#include <locale.h>
#include <glibmm/i18n.h>
#include <stdio.h>
#include <gtkmm/plug.h>
#include <gtkmm/stock.h>

@ -579,7 +579,6 @@
<property name="receives-default">False</property>
<property name="tooltip-text" translatable="yes" context="Automatic time synchronization" comments="Automatic time synchronization">Автоматическая синхронизация времени</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
@ -617,8 +616,6 @@
<property name="width-request">-1</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="tooltip-text" translatable="yes" context="Server input for date and time synchronization:&#10;Local (DHCP) or arbitrary" comments="Server input for date and time synchronization:&#10;Local (DHCP) or arbitrary">Ввод сервера для синхронизации даты и времени:
Локальный (DHCP) или произвольный</property>
<property name="valign">center</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>

@ -18,143 +18,71 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#: ubl-settings-datetime.glade:7
msgid "Warning!"
msgstr "Внимание!"
msgid "Manually"
msgstr "Вручную"
#: ubl-settings-datetime.glade:46
msgid "Enter DHCP !"
msgstr "Введите DHCP !"
#: ubl-settings-datetime.glade:63
msgid "OK"
msgstr "OK"
#. Date and Time Settings
#: ubl-settings-datetime.glade:85
msgctxt "Settings the date and time"
msgid "Date and time settings"
msgid "Settings the date and time"
msgstr "Настройки даты и времени"
#: ubl-settings-datetime.glade:120
msgid "Change the NTPSERVERS parameter"
msgstr "Изменить параметр NTPSERVERS"
#. Setting the date and time
#: ubl-settings-datetime.glade:127 ubl-settings-datetime.glade:536
msgctxt "ubl-settings-datetime"
msgid "ubl-settings-datetime"
msgstr "Настройки даты и времени"
#. Time
#: ubl-settings-datetime.glade:206
msgctxt "Time"
msgid "Time"
msgstr "Время"
#. Clock
#: ubl-settings-datetime.glade:220
msgctxt "Clock"
msgid "Clock"
msgstr "Часы"
#: ubl-settings-datetime.glade:241
msgid ":"
msgstr ":"
#. Minutes
#: ubl-settings-datetime.glade:253
msgctxt "Minutes"
msgid "Minutes"
msgstr "Минуты"
#. Date
#: ubl-settings-datetime.glade:291
msgctxt "Date"
msgid "Date"
msgstr "Дата"
#. Date of
#. Format: DD.MM.YYYY
#: ubl-settings-datetime.glade:306
msgctxt "Date of\nFormat: DD.MM.YYYY"
msgid "Date of\nFormat: DD.MM.YYYY"
msgstr "Дата\nФормат: ДД.ММ.ГГГГ"
#. Interactive date picker
#: ubl-settings-datetime.glade:325
msgctxt "Interactive date picker"
msgid "Interactive date picker"
msgstr "Интерактивный выбор даты"
#. Change zone setting
#: ubl-settings-datetime.glade:362 ubl-settings-datetime.glade:658
msgctxt "Change zone setting"
msgid "Change zone setting"
msgstr "Изменить параметр зоны"
#. Region
#: ubl-settings-datetime.glade:394 ubl-settings-datetime.glade:401
#: ubl-settings-datetime.glade:691 ubl-settings-datetime.glade:698
msgctxt "Region"
msgid "Region"
msgstr "Регион"
#. Zone
#: ubl-settings-datetime.glade:431 ubl-settings-datetime.glade:438
#: ubl-settings-datetime.glade:728 ubl-settings-datetime.glade:733
msgctxt "Zone"
msgid "Zone"
msgstr "Зона"
#: ubl-settings-datetime.glade:506
msgid "Sync by"
msgstr "Синхронизировать"
#. Automatic time synchronization
#: ubl-settings-datetime.glade:585
msgctxt "Automatic time synchronization"
msgid "Automatic time synchronization"
msgstr "Автоматическая синхронизация времени"
#: ubl-settings-datetime.glade:597
msgid "Synchronize via NTP"
msgstr "Синхронизировать через NTP"
#. Synchronization method
#: ubl-settings-datetime.glade:611
msgctxt "Synchronization method"
msgid "Synchronize via NTP"
msgstr "Способ синхронизации"
#. Server input for date and time synchronization:
#. Local (DHCP) or arbitrary
#: ubl-settings-datetime.glade:626
msgctxt ""
"Server input for date and time synchronization:\n"
"Local (DHCP) or arbitrary"
msgid ""
"Server input for date and time synchronization:\n"
"Local (DHCP) or arbitrary"
msgstr ""
"Ввод сервера для синхронизации даты и времени:\n"
"Локальный (DHCP) или произвольный"
#. Time zone
#: ubl-settings-datetime.glade:665
msgctxt "Time zone"
msgid "Time zone"
msgstr "Часовой пояс"
#. Setting date and time in global configuration
#: ubl-settings-datetime.glade:788
msgctxt "Setting date and time in global configuration"
msgid "Setting date and time in global configuration"
msgstr "Настройка даты и времени в глобальной конфигурации"
msgctxt "Incorrect date format"
msgid "Incorrect date format"
msgstr "Не верный формат даты"

Loading…
Cancel
Save