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 >
Wrap
Text File
|
2011-07-08
|
327b
|
19 lines
#!/usr/bin/env python
from xml.dom import minidom
import sys
doc = minidom.parse(sys.argv[1])
filters = doc.getElementsByTagName('pattern')
print "char * stringlst = ["
for filter in filters:
id = filter.getAttribute('id')
stockid = filter.getAttribute('inkscape:stockid')
print "N_(\"" + stockid + "\"),"
print "];"