home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Inkscape / Inkscape-0.48.2-1-win32.exe / share / patterns / i18n.py next >
Text File  |  2011-07-08  |  327b  |  19 lines

  1. #!/usr/bin/env python
  2.  
  3. from xml.dom import minidom
  4. import sys
  5.  
  6. doc = minidom.parse(sys.argv[1])
  7.  
  8. filters = doc.getElementsByTagName('pattern')
  9.  
  10. print "char * stringlst = ["
  11.  
  12. for filter in filters:
  13.     id = filter.getAttribute('id')
  14.     stockid = filter.getAttribute('inkscape:stockid')
  15.  
  16.     print "N_(\"" + stockid + "\"),"
  17.  
  18. print "];"
  19.