Allows to translate and personalize the Play all text in the dvd menu
This commit is contained in:
parent
1f966019de
commit
2842a12644
5 changed files with 45 additions and 23 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
## History of versions ##
|
## History of versions ##
|
||||||
|
* version 4.8.7 (2017-01-29)
|
||||||
|
* Allows to translate the "Play all" text in the DVD menu
|
||||||
* version 4.8.6 (2016-12-14)
|
* version 4.8.6 (2016-12-14)
|
||||||
* Now ensures that the average bitrate is never smaller than the minimum bitrate
|
* Now ensures that the average bitrate is never smaller than the minimum bitrate
|
||||||
* Now the matroska and divx files have the right extension
|
* Now the matroska and divx files have the right extension
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- Generated with glade 3.18.3 -->
|
<!-- Generated with glade 3.20.0 -->
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.10"/>
|
<requires lib="gtk+" version="3.10"/>
|
||||||
<object class="GtkAdjustment" id="margin_bottom">
|
<object class="GtkAdjustment" id="margin_bottom">
|
||||||
|
|
@ -471,7 +471,6 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
</object>
|
</object>
|
||||||
|
|
@ -486,7 +485,6 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
<property name="group">left</property>
|
<property name="group">left</property>
|
||||||
|
|
@ -502,7 +500,6 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
<property name="group">left</property>
|
<property name="group">left</property>
|
||||||
|
|
@ -610,7 +607,6 @@
|
||||||
<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">Font:</property>
|
<property name="label" translatable="yes">Font:</property>
|
||||||
<property name="xalign">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
|
@ -648,7 +644,6 @@
|
||||||
<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">Unselected titles:</property>
|
<property name="label" translatable="yes">Unselected titles:</property>
|
||||||
<property name="xalign">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">0</property>
|
<property name="left_attach">0</property>
|
||||||
|
|
@ -660,7 +655,6 @@
|
||||||
<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">Shadows:</property>
|
<property name="label" translatable="yes">Shadows:</property>
|
||||||
<property name="xalign">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">0</property>
|
<property name="left_attach">0</property>
|
||||||
|
|
@ -672,7 +666,6 @@
|
||||||
<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">Selected title:</property>
|
<property name="label" translatable="yes">Selected title:</property>
|
||||||
<property name="xalign">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">2</property>
|
<property name="left_attach">2</property>
|
||||||
|
|
@ -684,7 +677,6 @@
|
||||||
<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">Background color:</property>
|
<property name="label" translatable="yes">Background color:</property>
|
||||||
<property name="xalign">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">2</property>
|
<property name="left_attach">2</property>
|
||||||
|
|
@ -785,13 +777,13 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="xalign">0</property>
|
<property name="halign">start</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">False</property>
|
||||||
<property name="position">0</property>
|
<property name="position">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
@ -801,7 +793,7 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="xalign">0</property>
|
<property name="halign">start</property>
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
<property name="group">menu_show_at_startup</property>
|
<property name="group">menu_show_at_startup</property>
|
||||||
|
|
@ -813,13 +805,35 @@
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="play_all_c">
|
<object class="GtkBox">
|
||||||
<property name="label" translatable="yes">Provide "Play All" option</property>
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="receives_default">False</property>
|
<child>
|
||||||
<property name="xalign">0</property>
|
<object class="GtkCheckButton" id="play_all_c">
|
||||||
<property name="draw_indicator">True</property>
|
<property name="label" translatable="yes">Provide "Play All" option</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="draw_indicator">True</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="playall_text">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -72,7 +72,7 @@ except:
|
||||||
setup(
|
setup(
|
||||||
name='devedeng',
|
name='devedeng',
|
||||||
|
|
||||||
version='4.8.6',
|
version='4.8.7',
|
||||||
|
|
||||||
description='A video DVD creator',
|
description='A video DVD creator',
|
||||||
long_description="A program that allows to create video DVDs",
|
long_description="A program that allows to create video DVDs",
|
||||||
|
|
|
||||||
|
|
@ -482,7 +482,7 @@ class avconv(devedeng.avbase.avbase):
|
||||||
|
|
||||||
if file_project.two_pass_encoding == True:
|
if file_project.two_pass_encoding == True:
|
||||||
self.command_var.append("-passlogfile")
|
self.command_var.append("-passlogfile")
|
||||||
self.command_var.append(output_file)
|
self.command_var.append(output_file + ".passlog")
|
||||||
self.command_var.append("-pass")
|
self.command_var.append("-pass")
|
||||||
if pass2:
|
if pass2:
|
||||||
self.command_var.append("2")
|
self.command_var.append("2")
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ class dvd_menu(devedeng.interface_manager.interface_manager):
|
||||||
|
|
||||||
self.add_text("title_text", None, self.update_preview)
|
self.add_text("title_text", None, self.update_preview)
|
||||||
|
|
||||||
|
self.add_text("playall_text", _("Play all"), self.update_preview)
|
||||||
|
|
||||||
self.add_group("position_horizontal", [
|
self.add_group("position_horizontal", [
|
||||||
"left", "center", "right"], "center", self.update_preview)
|
"left", "center", "right"], "center", self.update_preview)
|
||||||
self.add_group("at_startup", [
|
self.add_group("at_startup", [
|
||||||
|
|
@ -415,15 +417,19 @@ class dvd_menu(devedeng.interface_manager.interface_manager):
|
||||||
|
|
||||||
if (self.play_all_c):
|
if (self.play_all_c):
|
||||||
coordinates.append([xl, y - height, xr, y + height, "play_all"])
|
coordinates.append([xl, y - height, xr, y + height, "play_all"])
|
||||||
|
if self.playall_text == "":
|
||||||
|
playalltext = "Play all"
|
||||||
|
else:
|
||||||
|
playalltext = self.playall_text
|
||||||
if paint_background:
|
if paint_background:
|
||||||
self.paint_base(xl, xr, y, 0)
|
self.paint_base(xl, xr, y, 0)
|
||||||
self.write_text("Play All", "menu_entry", xl,
|
self.write_text(playalltext, "menu_entry", xl,
|
||||||
xr, y, self.position_horizontal)
|
xr, y, self.position_horizontal)
|
||||||
if paint_selected:
|
if paint_selected:
|
||||||
self.write_text("Play All", "menu_entry_selected",
|
self.write_text(playalltext, "menu_entry_selected",
|
||||||
xl, xr, y, self.position_horizontal)
|
xl, xr, y, self.position_horizontal)
|
||||||
if paint_activated:
|
if paint_activated:
|
||||||
self.write_text("Play All", "menu_entry_activated",
|
self.write_text(playalltext, "menu_entry_activated",
|
||||||
xl, xr, y, self.position_horizontal)
|
xl, xr, y, self.position_horizontal)
|
||||||
y += entry_height
|
y += entry_height
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue