#NEWLINE# def generate_gettext_rules( self , outfile ) : #NEWLINE# #INDENT# rule = 'rule GEN_POT\n' #NEWLINE# command = ( " command = xgettext --package-name=$PACKAGENAME -p $OUTDIR -f $FILELIST -D '%s' -k_ -o $OUTFILE\n" % self . environment . get_source_dir ( ) ) #NEWLINE# desc = ' description = Creating pot file for package $PACKAGENAME.\n' #NEWLINE# outfile . write ( rule ) #NEWLINE# outfile . write ( command ) #NEWLINE# outfile . write ( desc ) #NEWLINE# outfile . write ( '\n' ) #NEWLINE# rule = 'rule GEN_GMO\n' #NEWLINE# command = ' command = msgfmt $INFILE -o $OUTFILE\n' #NEWLINE# desc = ' description = Generating gmo file $OUTFILE\n' #NEWLINE# outfile . write ( rule ) #NEWLINE# outfile . write ( desc ) #NEWLINE# outfile . write ( desc ) #NEWLINE# outfile . write ( '\n' )