Commit 9897ad51 authored by Alexandru Băluț's avatar Alexandru Băluț

tabsmanager: Use the same config sections under all locales

Using translated strings for config section names leads to encoding
problems.

The config sections are only for advanced users, having them always in
Eenglish should not be a problem.

Fixes #2157
parent ee106069
Pipeline #4963 passed with stage
in 25 minutes and 31 seconds
......@@ -238,9 +238,9 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
self.main_tabs = BaseTabs(self.app)
self.medialibrary = MediaLibraryWidget(self.app)
self.effectlist = EffectListWidget(self.app)
self.main_tabs.append_page(
self.main_tabs.append_page("Media Library",
self.medialibrary, Gtk.Label(label=_("Media Library")))
self.main_tabs.append_page(
self.main_tabs.append_page("Effect Library",
self.effectlist, Gtk.Label(label=_("Effect Library")))
self.medialibrary.connect('play', self._mediaLibraryPlayCb)
self.medialibrary.show()
......@@ -251,11 +251,11 @@ class MainWindow(Gtk.ApplicationWindow, Loggable):
self.clipconfig = ClipProperties(self.app)
self.trans_list = TransitionsListWidget(self.app)
self.title_editor = TitleEditor(self.app)
self.context_tabs.append_page(
self.context_tabs.append_page("Clip",
self.clipconfig, Gtk.Label(label=_("Clip")))
self.context_tabs.append_page(
self.context_tabs.append_page("Transition",
self.trans_list, Gtk.Label(label=_("Transition")))
self.context_tabs.append_page(
self.context_tabs.append_page("Title",
self.title_editor.widget, Gtk.Label(label=_("Title")))
# Show by default the Title tab, as the Clip and Transition tabs
# are useful only when a clip or transition is selected, but
......
......@@ -45,8 +45,7 @@ class BaseTabs(Gtk.Notebook, Loggable):
notebook_widget_settings.props.gtk_dnd_drag_threshold = 1
# pylint: disable=arguments-differ
def append_page(self, child, label):
child_name = label.get_text()
def append_page(self, child_name, child, label):
Gtk.Notebook.append_page(self, child, label)
self._set_child_properties(child, label)
label.show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment