#NEWLINE# def apply( self ) : #NEWLINE# #INDENT# language = languages . get_language ( self . document . settings . language_code , self . document . reporter ) #NEWLINE# for node in self . document . traverse ( nodes . Admonition ) : #NEWLINE# #INDENT# node_name = node . __class__ . __name__ #NEWLINE# node [ 'classes' ] . append ( node_name ) #NEWLINE# if ( not isinstance ( node , nodes . admonition ) ) : #NEWLINE# #INDENT# admonition = nodes . admonition ( node . rawsource , * node . children , ** node . attributes ) #NEWLINE# title = nodes . title ( '' , language . labels [ node_name ] ) #NEWLINE# admonition . insert ( 0 , title ) #NEWLINE# node . replace_self ( self )