parameters: (env, linguas_files = None)
return_statement: return linguas
docstring: Parse `LINGUAS` file and return list of extracted languages
docstring_summary: Parse `LINGUAS` file and return list of extracted languages
docstring_tokens: Parse LINGUAS file and return list of extracted languages
function: def _read_linguas_from_files(env, linguas_files = None):
    """ Parse `LINGUAS` file and return list of extracted languages """
    import SCons.Util
    import SCons.Environment
    global _re_comment
    global _re_lang
    if not SCons.Util.is_List(linguas_files) \
    and not SCons.Util.is_String(linguas_files) \
    and not isinstance(linguas_files, SCons.Node.FS.Base) \
    and linguas_files:
      # If, linguas_files==True or such, then read 'LINGUAS' file.
      linguas_files = [ 'LINGUAS' ]
    if linguas_files is None:
      return []  
    fnodes = env.arg2nodes(linguas_files)
    linguas = []
    for fnode in fnodes:
      contents =  _re_comment.sub("", fnode.get_text_contents())
      ls = [ l for l in _re_lang.findall(contents) if l ]
      linguas.extend(ls)
    return linguas
function_tokens: def _read_linguas_from_files ( env , linguas_files = None ) : import SCons . Util import SCons . Environment global _re_comment global _re_lang if not SCons . Util . is_List ( linguas_files ) and not SCons . Util . is_String ( linguas_files ) and not isinstance ( linguas_files , SCons . Node . FS . Base ) and linguas_files : # If, linguas_files==True or such, then read 'LINGUAS' file. linguas_files = [ 'LINGUAS' ] if linguas_files is None : return [ ] fnodes = env . arg2nodes ( linguas_files ) linguas = [ ] for fnode in fnodes : contents = _re_comment . sub ( "" , fnode . get_text_contents ( ) ) ls = [ l for l in _re_lang . findall ( contents ) if l ] linguas . extend ( ls ) return linguas