#NEWLINE# def postprocess_messages( self , msgs ) : #NEWLINE# #INDENT# '\n        Postprocess messages generated by xgettext GNU gettext utility.\n\n        Transform paths as if these messages were generated from original\n        translatable files rather than from preprocessed versions.\n        ' #NEWLINE# if ( not msgs . is_templatized ) : #NEWLINE# #INDENT# return msgs #NEWLINE# #UNINDENT# if ( os . name == 'nt' ) : #NEWLINE# #INDENT# old = ( '#: ' + self . work_path ) #NEWLINE# new = ( '#: ' + self . path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# old = ( '#: ' + self . work_path [ 2 : ] ) #NEWLINE# new = ( '#: ' + self . path [ 2 : ] ) #NEWLINE# #UNINDENT# return msgs . replace ( old , new )