eric6/Project/ProjectTranslationsBrowser.py

changeset 8222
5994b80b8760
parent 8217
385f60c94548
child 8228
772103b14c18
equal deleted inserted replaced
8221:0572a215bd2f 8222:5994b80b8760
709 for itm in itmList: 709 for itm in itmList:
710 if isinstance(itm, ProjectBrowserSimpleDirectoryItem): 710 if isinstance(itm, ProjectBrowserSimpleDirectoryItem):
711 dname = self.project.getRelativePath(itm.dirName()) 711 dname = self.project.getRelativePath(itm.dirName())
712 trfiles = sorted(self.project.pdata["TRANSLATIONS"][:]) 712 trfiles = sorted(self.project.pdata["TRANSLATIONS"][:])
713 for trfile in trfiles: 713 for trfile in trfiles:
714 if trfile.startswith(dname): 714 if (
715 if trfile not in fileNames: 715 trfile.startswith(dname) and
716 fileNames.append( 716 trfile not in fileNames
717 os.path.join(self.project.ppath, trfile)) 717 ):
718 fileNames.append(
719 os.path.join(self.project.ppath, trfile))
718 else: 720 else:
719 fn = itm.fileName() 721 fn = itm.fileName()
720 if fn not in fileNames: 722 if fn not in fileNames:
721 fileNames.append(os.path.join(self.project.ppath, fn)) 723 fileNames.append(os.path.join(self.project.ppath, fn))
722 else: 724 else:

eric ide

mercurial