'Return a list of strings corresponding to a module'

def get_strings_by_module(self, module):

    grp = self.grp
    d = grp.d
    if (module in d.keys()):
        fileList = d[module]
    else:
        current.log.warning(("Module    '%s'    doesn't    exist!" % module))
        return []
    modlist = grp.modlist
    strings = []
    sappend = strings.append
    R = TranslateReadFiles()
    findstr = R.findstr
    for f in fileList:
        if (f.endswith('.py') == True):
            tmpstr = findstr(f, 'ALL', modlist)
        elif ((f.endswith('.html') == True) or (f.endswith('.js') == True)):
            tmpstr = R.read_html_js(f)
        else:
            tmpstr = []
        for s in tmpstr:
            sappend((('%s:%s' % (f, str(s[0]))), s[1]))
    fileList = d['special']
    for f in fileList:
        if (f.endswith('.py') == True):
            tmpstr = findstr(f, module, modlist)
            for s in tmpstr:
                sappend((('%s:%s' % (f, str(s[0]))), s[1]))
    return strings
