1005 else: |
1005 else: |
1006 E5MessageBox.information(self, |
1006 E5MessageBox.information(self, |
1007 self.trUtf8("Translation file release"), |
1007 self.trUtf8("Translation file release"), |
1008 self.trUtf8("The release of the translation files (*.qm)" |
1008 self.trUtf8("The release of the translation files (*.qm)" |
1009 " was successful.")) |
1009 " was successful.")) |
1010 if self.project.pdata["TRANSLATIONSBINPATH"]: |
1010 if self.project.pdata["TRANSLATIONSBINPATH"] and \ |
1011 target = os.path.join(self.project.ppath, |
1011 self.project.pdata["TRANSLATIONSBINPATH"][0]: |
1012 self.project.pdata["TRANSLATIONSBINPATH"][0]) |
1012 target = os.path.join( |
|
1013 self.project.ppath, |
|
1014 self.project.pdata["TRANSLATIONSBINPATH"][0]) |
1013 for langFile in self.project.pdata["TRANSLATIONS"][:]: |
1015 for langFile in self.project.pdata["TRANSLATIONS"][:]: |
1014 if langFile.endswith('.ts'): |
1016 if langFile.endswith('.ts'): |
1015 qmFile = os.path.join(self.project.ppath, |
1017 qmFile = os.path.join(self.project.ppath, |
1016 langFile.replace('.ts', '.qm')) |
1018 langFile.replace('.ts', '.qm')) |
1017 if os.path.exists(qmFile): |
1019 if os.path.exists(qmFile): |