212 # --output= : specifies the name of the output file (using a .pot extension) |
212 # --output= : specifies the name of the output file (using a .pot extension) |
213 cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout + ' --package-name ' + applicationName |
213 cmd = 'xgettext -s --no-wrap --language=Python --files-from=' + filelist + ' --output=' + fileout + ' --package-name ' + applicationName |
214 verbosePrint(verbose, cmd) |
214 verbosePrint(verbose, cmd) |
215 os.system(cmd) |
215 os.system(cmd) |
216 |
216 |
217 XSD_STRING_MODEL = re.compile("<xsd\:(?:element|attribute) name=\"([^\"]*)\"[^\>]*\>") |
217 XSD_STRING_MODEL = re.compile(r"<xsd\:(?:element|attribute) name=\"([^\"]*)\"[^\>]*\>") |
218 processCustomFiles(filelist, fileout, XSD_STRING_MODEL, 'Extra XSD strings') |
218 processCustomFiles(filelist, fileout, XSD_STRING_MODEL, 'Extra XSD strings') |
219 |
219 |
220 XML_TC6_STRING_MODEL = re.compile("<documentation>\s*<xhtml\:p><!\[CDATA\[([^\]]*)\]\]></xhtml\:p>\s*</documentation>", re.MULTILINE | re.DOTALL) |
220 XML_TC6_STRING_MODEL = re.compile(r"<documentation>\s*<xhtml\:p><!\[CDATA\[([^\]]*)\]\]></xhtml\:p>\s*</documentation>", re.MULTILINE | re.DOTALL) |
221 processCustomFiles(filelist, fileout, XML_TC6_STRING_MODEL, 'Extra TC6 documentation strings') |
221 processCustomFiles(filelist, fileout, XML_TC6_STRING_MODEL, 'Extra TC6 documentation strings') |
222 |
222 |
223 # generate messages.po |
223 # generate messages.po |
224 cmd = 'msginit --no-wrap --no-translator -i %s -l en_US.UTF-8 -o messages.po' % (fileout) |
224 cmd = 'msginit --no-wrap --no-translator -i %s -l en_US.UTF-8 -o messages.po' % (fileout) |
225 verbosePrint(verbose, cmd) |
225 verbosePrint(verbose, cmd) |