#NEWLINE# def get_language( language_code ) : #NEWLINE# #INDENT# for tag in normalize_language_tag ( language_code ) : #NEWLINE# #INDENT# tag = tag . replace ( '-' , '_' ) #NEWLINE# if ( tag in _languages ) : #NEWLINE# #INDENT# return _languages [ tag ] #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# module = __import__ ( tag , globals ( ) , locals ( ) , level = 0 ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# module = __import__ ( tag , globals ( ) , locals ( ) , level = 1 ) #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# _languages [ module ] = module #NEWLINE# return module #NEWLINE# #UNINDENT# return None