#NEWLINE# @ need_pot_file #NEWLINE# def update_po_file( self , locale ) : #NEWLINE# #INDENT# 'Update PO file from POT' #NEWLINE# update_file = self . get_po_file ( locale ) #NEWLINE# cmd = [ 'msgmerge' , '--sort-output' , '--update' , '--backup=off' ] #NEWLINE# cmd . extend ( [ '--directory' , self . po_path ] ) #NEWLINE# cmd . append ( update_file ) #NEWLINE# cmd . append ( self . pot_file ) #NEWLINE# ui . info ( ui . green , 'Updating' , ui . reset , ui . bold , os . path . relpath ( update_file , self . path ) ) #NEWLINE# qisys . command . call ( cmd , quiet = True )