Fixed an issue in the project translations browser. 5_3_x

Thu, 17 Oct 2013 10:12:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 17 Oct 2013 10:12:33 +0200
branch
5_3_x
changeset 3027
879c9e237986
parent 2977
e238e600b2a8
child 3045
246a9fcead25

Fixed an issue in the project translations browser.

Project/ProjectTranslationsBrowser.py file | annotate | diff | comparison | revisions
diff -r e238e600b2a8 -r 879c9e237986 Project/ProjectTranslationsBrowser.py
--- a/Project/ProjectTranslationsBrowser.py	Tue Oct 01 18:20:46 2013 +0200
+++ b/Project/ProjectTranslationsBrowser.py	Thu Oct 17 10:12:33 2013 +0200
@@ -1007,9 +1007,11 @@
                     self.trUtf8("Translation file release"),
                     self.trUtf8("The release of the translation files (*.qm)"
                         " was successful."))
-            if self.project.pdata["TRANSLATIONSBINPATH"]:
-                target = os.path.join(self.project.ppath,
-                                      self.project.pdata["TRANSLATIONSBINPATH"][0])
+            if self.project.pdata["TRANSLATIONSBINPATH"] and \
+                    self.project.pdata["TRANSLATIONSBINPATH"][0]:
+                target = os.path.join(
+                    self.project.ppath,
+                    self.project.pdata["TRANSLATIONSBINPATH"][0])
                 for langFile in self.project.pdata["TRANSLATIONS"][:]:
                     if langFile.endswith('.ts'):
                         qmFile = os.path.join(self.project.ppath,

eric ide

mercurial