summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-10-13 22:44:13 +0200
committerGitHub <noreply@github.com>2021-10-13 22:44:13 +0200
commita908eed7a1206bbf94b61a14f61617e4d586cc69 (patch)
tree178717e34fb071a17580381ea903a5d7b20b0a22
parent07c2d26dd6e137507f0fd778f488e72decae4daf (diff)
remove src-folder before pybabel extract (#1390)
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a19564e..e75308d3 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ messages.po: inx
sed -i 's/charset=CHARSET/charset=UTF-8/g' messages-inx.po
bin/pyembroidery-gettext > pyembroidery-format-descriptions.py
bin/inkstitch-fonts-gettext > inkstitch-fonts-metadata.py
+ # After the inx files are finished building, we don't need the src/ folder anymore.
+ # We don't want babel to grab possible translation strings from that folder, so let's remove it
+ rm -rf src/
pybabel extract -o messages-babel.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments -k N_ -k '$$gettext' .
rm pyembroidery-format-descriptions.py inkstitch-fonts-metadata.py
cd electron && yarn --link-duplicates --pure-lockfile