Cross Reference: i18n.py
xref
: /
inkscape
/
share
/
patterns
/
i18n.py
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
i18n.py revision b91e3a5be74845295e56e11795e7f34e70978a15
#!/
usr
/
bin
/
env
python
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
(
"];"
)