openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00323
[Branch ~openshot.code/openshot/main] Rev 626: Fixing "Create New Title" dialog to correctly translate into the user's default locale. It was o...
------------------------------------------------------------
revno: 626
fixes bug: https://launchpad.net/bugs/924439
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2012-01-31 12:57:45 -0600
message:
Fixing "Create New Title" dialog to correctly translate into the user's default locale. It was only showing up in English, as well as a few related error messages.
modified:
openshot/windows/Titles.py
--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main
Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/Titles.py'
--- openshot/windows/Titles.py 2012-01-02 00:51:31 +0000
+++ openshot/windows/Titles.py 2012-01-31 18:57:45 +0000
@@ -164,6 +164,9 @@
def on_btnCreate_clicked(self,widget):
+ # get translation method
+ _ = self._
+
#prompt the user for a file name
self.filename = self.setTitleName()
if self.filename == "":
@@ -213,7 +216,10 @@
def setTitleName(self):
- base_name = project_path = os.path.join(self.project.folder, "thumbnail")
+ # get translation method
+ _ = self._
+
+ base_name = project_path = os.path.join(self.project.folder, "thumbnail")
#base this on a message dialog
name_dialog = gtk.MessageDialog(
@@ -509,7 +515,10 @@
def writeToFile(self, xmldoc):
'''writes a new svg file containing the user edited data'''
- project_path = os.path.join(self.project.folder, "thumbnail")
+ project_path = os.path.join(self.project.folder, "thumbnail")
+
+ # get translation method
+ _ = self._
if not self.filename.endswith("svg"):
self.filename = self.filename + ".svg"