diff options
| author | Viatrix | 2026-03-16 20:07:10 -0700 |
|---|---|---|
| committer | Viatrix | 2026-03-16 20:07:10 -0700 |
| commit | 83a15469296f86c636257000fc7fef187465b89e (patch) | |
| tree | 182eb4899803440bb65d7b7f9eec3a4141481793 /Makefile | |
| parent | b7c5d7b4060baf845eb06e642a1fe96fb073ba0e (diff) | |
Makefile and .pot preparing for translation.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a29892 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +zip: mo + zip - *.py *.inx locale/*/LC_MESSAGES/*.mo > imagemap.zip + +validate: inkscape.extension.rng + xmllint --noout --relaxng inkscape.extension.rng *.inx + +pot: inx.its + xgettext imagemap.inx --its=inx.its -o imagemap.pot + xgettext imagemap.py --package-name=inx.imagemap --copyright-holder=VIATRIX.COMPUTER -jo imagemap.pot + +mo: + for po in locale/*/imagemap.po; do \ + mkdir -p "$${po%/*}/LC_MESSAGES"; \ + msgfmt -o "$${po%/*}/LC_MESSAGES/imagemap.mo" $$po; \ + done + +inx.its: + wget https://gitlab.com/inkscape/translations/-/raw/master/its/inx.its + +inkscape.extension.rng: + wget https://gitlab.com/inkscape/extensions/-/raw/master/inkex/tester/inkscape.extension.rng |
