summaryrefslogtreecommitdiffstats
path: root/share/paint/i18n.py
blob: 1113f261741912bdf770db8fe249eebedd6d6e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3

from xml.dom import minidom
import sys

doc = minidom.parse(sys.argv[1])

filters = doc.getElementsByTagName('pattern')

sys.stdout.write("char * stringlst = [")

for filter in filters:
	id = filter.getAttribute('id')
	stockid = filter.getAttribute('inkscape:stockid')

	sys.stdout.write("N_(\"" + stockid + "\"),")

sys.stdout.write("];")