Project/ProjectTranslationsBrowser.py

branch
5_3_x
changeset 3027
879c9e237986
parent 2728
2d1140b6f1e2
child 3163
9f50365a0870
equal deleted inserted replaced
2977:e238e600b2a8 3027:879c9e237986
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):

eric ide

mercurial