equal
deleted
inserted
replaced
180 # The following switches are used: |
180 # The following switches are used: |
181 # |
181 # |
182 # -s : sort output by string content (easier to use when we need to merge several .po files) |
182 # -s : sort output by string content (easier to use when we need to merge several .po files) |
183 # --files-from=app.fil : The list of files is taken from the file: app.fil |
183 # --files-from=app.fil : The list of files is taken from the file: app.fil |
184 # --output= : specifies the name of the output file (using a .pot extension) |
184 # --output= : specifies the name of the output file (using a .pot extension) |
185 cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout |
185 cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout + ' --package-name ' + applicationName |
186 if verbose: print cmd |
186 if verbose: print cmd |
187 os.system(cmd) |
187 os.system(cmd) |
|
188 |
|
189 cmd = 'sed --in-place ' + fileout + ' --expression=s/CHARSET/UTF-8/' |
|
190 if verbose: print cmd |
|
191 os.system(cmd) |
188 |
192 |
189 XSD_STRING_MODEL = re.compile("<xsd\:(?:element|attribute) name=\"([^\"]*)\"[^\>]*\>") |
193 XSD_STRING_MODEL = re.compile("<xsd\:(?:element|attribute) name=\"([^\"]*)\"[^\>]*\>") |
190 processCustomFiles(filelist, fileout, XSD_STRING_MODEL, 'Extra XSD strings') |
194 processCustomFiles(filelist, fileout, XSD_STRING_MODEL, 'Extra XSD strings') |
191 |
195 |
192 XML_TC6_STRING_MODEL = re.compile("<documentation>\s*<xhtml\:p><!\[CDATA\[([^\]]*)\]\]></xhtml\:p>\s*</documentation>", re.MULTILINE | re.DOTALL) |
196 XML_TC6_STRING_MODEL = re.compile("<documentation>\s*<xhtml\:p><!\[CDATA\[([^\]]*)\]\]></xhtml\:p>\s*</documentation>", re.MULTILINE | re.DOTALL) |