From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- share/paint/i18n.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 share/paint/i18n.py (limited to 'share/paint/i18n.py') diff --git a/share/paint/i18n.py b/share/paint/i18n.py new file mode 100755 index 0000000..1113f26 --- /dev/null +++ b/share/paint/i18n.py @@ -0,0 +1,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("];") -- cgit v1.2.3