Logo Search packages:      
Sourcecode: inkscape version File versions

i18n.py

#!/usr/bin/env python

from xml.dom import minidom
import sys

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

filters = doc.getElementsByTagName('filter')

print "char * stringlst = ["

for filter in filters:
      label = filter.getAttribute('inkscape:label')
      menu = filter.getAttribute('inkscape:menu')
      desc = filter.getAttribute('inkscape:menu-tooltip')

      print "N_(\"" + label + "\"), N_(\"" + menu + "\"), N_(\"" + desc + "\"),"

print "];"

Generated by  Doxygen 1.6.0   Back to index