# HG changeset patch # User Andrey Skvortsov # Date 1498136794 -10800 # Node ID ba0dde7f047a213507eabaf6e7f77d0510fc4056 # Parent bbb2c38969caae9770da75fdb2379b16af7c11a9 set project name and character set in generated messages.pot diff -r bbb2c38969ca -r ba0dde7f047a i18n/mki18n.py --- a/i18n/mki18n.py Thu Jun 22 15:55:26 2017 +0300 +++ b/i18n/mki18n.py Thu Jun 22 16:06:34 2017 +0300 @@ -182,9 +182,13 @@ # -s : sort output by string content (easier to use when we need to merge several .po files) # --files-from=app.fil : The list of files is taken from the file: app.fil # --output= : specifies the name of the output file (using a .pot extension) - cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout + cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout + ' --package-name ' + applicationName if verbose: print cmd - os.system(cmd) + os.system(cmd) + + cmd = 'sed --in-place ' + fileout + ' --expression=s/CHARSET/UTF-8/' + if verbose: print cmd + os.system(cmd) XSD_STRING_MODEL = re.compile("]*\>") processCustomFiles(filelist, fileout, XSD_STRING_MODEL, 'Extra XSD strings')