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

pull/76/head
Igor Belitskiy 3 years ago
parent 6f3df24a92
commit 6e26dca9b3

@ -195,11 +195,6 @@ void MainWindow::add_CSS() {
boxButton_css->add_class("bkimButton"); boxButton_css->add_class("bkimButton");
boxSave_css->add_class("bkimButton"); boxSave_css->add_class("bkimButton");
headerBar_css->add_class("bkimHeadBar"); headerBar_css->add_class("bkimHeadBar");
//Glib::RefPtr<Gtk::StyleContext> w = this->get_style_context();
//w->add_class("bkim");
} }

@ -52,6 +52,7 @@ inline void ubl_make_plugs(Gtk::Widget *LeftWidget, Gtk::Widget *RightWidget, in
} else } else
gtk_container_add(GTK_CONTAINER(plug),GTK_WIDGET(toplug)); gtk_container_add(GTK_CONTAINER(plug),GTK_WIDGET(toplug));
gtk_widget_show(GTK_WIDGET(plug)); gtk_widget_show(GTK_WIDGET(plug));
gtk_style_context_add_class(gtk_widget_get_style_context(plug),"bkimButtonPlug");
} }
if (right_plug_id>0&&RightWidget){ if (right_plug_id>0&&RightWidget){
GtkWidget *plug=gtk_plug_new(right_plug_id); GtkWidget *plug=gtk_plug_new(right_plug_id);
@ -64,6 +65,8 @@ inline void ubl_make_plugs(Gtk::Widget *LeftWidget, Gtk::Widget *RightWidget, in
} else } else
gtk_container_add(GTK_CONTAINER(plug),GTK_WIDGET(toplug)); gtk_container_add(GTK_CONTAINER(plug),GTK_WIDGET(toplug));
gtk_widget_show(GTK_WIDGET(plug)); gtk_widget_show(GTK_WIDGET(plug));
gtk_style_context_add_class(gtk_widget_get_style_context(plug),"bkimButtonPlug");
} }
} }
#endif #endif

@ -78,4 +78,9 @@
.bkimButton{ .bkimButton{
background-color: transparent; background-color: transparent;
opacity:1.0; opacity:1.0;
}
.bkimButtonPlug{
background-color: transparent;
color: rgb(0, 0, 0);
opacity:1.0;
} }

@ -56,10 +56,10 @@
<property name="reserve-toggle-size">False</property> <property name="reserve-toggle-size">False</property>
<property name="rect-anchor-dy">4</property> <property name="rect-anchor-dy">4</property>
<child> <child>
<object class="GtkMenuItem" id="btnDonwlodLocal"> <object class="GtkMenuItem" id="btnDonwlolGlob">
<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">Download local</property> <property name="label" translatable="yes">Load global configuration</property>
<property name="use-underline">True</property> <property name="use-underline">True</property>
<style> <style>
<class name="menuitemtop"/> <class name="menuitemtop"/>
@ -67,10 +67,10 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkMenuItem" id="btnDonwlolGlob"> <object class="GtkMenuItem" id="btnDonwlodLocal">
<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">Download global</property> <property name="label" translatable="yes">Load local configuration</property>
<property name="use-underline">True</property> <property name="use-underline">True</property>
<style> <style>
<class name="menuitembottom"/> <class name="menuitembottom"/>
@ -125,10 +125,10 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkMenuItem" id="btnSaveLocal"> <object class="GtkMenuItem" id="btnSaveGlob">
<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">Save to local configuration</property> <property name="label" translatable="yes">Save global configuration</property>
<property name="use-underline">True</property> <property name="use-underline">True</property>
<style> <style>
<class name="menuitemmiddle"/> <class name="menuitemmiddle"/>
@ -136,10 +136,10 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkMenuItem" id="btnSaveGlob"> <object class="GtkMenuItem" id="btnSaveLocal">
<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">Save to Global configuration</property> <property name="label" translatable="yes">Save local configuration</property>
<property name="use-underline">True</property> <property name="use-underline">True</property>
<style> <style>
<class name="menuitembottom"/> <class name="menuitembottom"/>

@ -1664,19 +1664,19 @@ msgid "Save"
msgstr "Сохранить" msgstr "Сохранить"
msgid "Save to global and local configuration" msgid "Save to global and local configuration"
msgstr "Сохранить в глобальную и локальную конфигурацию" msgstr "Сохранить глобальную и локальную конфигурацию"
msgid "Save to Global configuration" msgid "Save global configuration"
msgstr "Сохранить в глобальную конфигурацию" msgstr "Сохранить глобальную конфигурацию"
msgid "Save to local configuration" msgid "Save local configuration"
msgstr "Сохранить в локальную конфигурацию" msgstr "Сохранить локальную конфигурацию"
msgid "Download global" msgid "Load global configuration"
msgstr "Загрузить глобально" msgstr "Загрузить глобальную конфигурацию"
msgid "Download local" msgid "Load local configuration"
msgstr "Загрузить локально" msgstr "Загрузить локальную конфигурацию"
msgid "Disabled" msgid "Disabled"
msgstr "Отключено" msgstr "Отключено"

Loading…
Cancel
Save