#NEWLINE# def load_directory( directory , locale = config . get ( 'locale' ) ) : #NEWLINE# #INDENT# for f in os . listdir ( directory ) : #NEWLINE# #INDENT# path = os . path . join ( directory , f ) #NEWLINE# if ( os . path . isfile ( path ) and path . endswith ( config . get ( 'file_format' ) ) ) : #NEWLINE# #INDENT# if ( ( '{locale}' in config . get ( 'filename_format' ) ) and ( not ( locale in f ) ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# load_translation_file ( f , directory , locale )