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: |