def getTranslatorFileTypeTuples():
 importPluginFileNames = getImportPluginFileNames()
 fileTypeTuples = []
 for importPluginFileName in importPluginFileNames:
  fileTypeTitle = (importPluginFileName.upper() + ' files')
  fileType = (fileTypeTitle, ('*.' + importPluginFileName))
  fileTypeTuples.append(fileType)
 fileTypeTuples.sort()
 return fileTypeTuples

def getTranslatorFileTypeTuples ( ) : importPluginFileNames = getImportPluginFileNames ( ) fileTypeTuples = [ ] for importPluginFileName in importPluginFileNames : fileTypeTitle = ( importPluginFileName . upper ( ) + ' files' ) fileType = ( fileTypeTitle , ( '*.' + importPluginFileName ) ) fileTypeTuples . append ( fileType ) fileTypeTuples . sort ( ) return fileTypeTuples
get the file types from the translators in the import plugins folder .