summaryrefslogtreecommitdiff
path: root/bin/pystitch-gettext
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-07-27 07:28:20 +0200
committerGitHub <noreply@github.com>2025-07-27 07:28:20 +0200
commit731ac2868e30dbccf5771abf79564d8bab1156c2 (patch)
tree29f3de6e7694b8ce1cac19756e4f143fd29e8bcd /bin/pystitch-gettext
parent4dd03c18acbec4c44943c224ea9b66e262e9fd76 (diff)
rename pyembroidery to pystitch (#3889)
... and remove it as a submodule (use pip to install)
Diffstat (limited to 'bin/pystitch-gettext')
-rwxr-xr-xbin/pystitch-gettext10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/pystitch-gettext b/bin/pystitch-gettext
new file mode 100755
index 00000000..06871527
--- /dev/null
+++ b/bin/pystitch-gettext
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import pystitch
+
+
+# generate fake python code containing the descriptions of pystitch formats
+# as gettext calls so that pybabel will extract them into messages.po
+for format in pystitch.supported_formats():
+ print("# L10N description for pystitch file format: %s" % format['extension'])
+ print("_(%s)" % repr(format['description']))