-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
18 lines (16 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: po mo
po:
xgettext -Lpython --output=src/resources/il8n/messages.pot src/*.py src/peachyprinter.kv test/infrastructure_test/langtoolstest.py src/infrastructure/setting_mapper.py src/ui/*.kv src/ui/*.py
msgmerge --update --no-fuzzy-matching --backup=off src/resources/il8n/po/en_GB.po src/resources/il8n/messages.pot
msgmerge --update --no-fuzzy-matching --backup=off src/resources/il8n/po/en_US.po src/resources/il8n/messages.pot
msgmerge --update --no-fuzzy-matching --backup=off src/resources/il8n/po/tlh.po src/resources/il8n/messages.pot
msgmerge --update --no-fuzzy-matching --backup=off src/resources/il8n/po/dev.po src/resources/il8n/messages.pot
mo:
mkdir -p src/resources/il8n/locales/en_GB/LC_MESSAGES
mkdir -p src/resources/il8n/locales/en_US/LC_MESSAGES
mkdir -p src/resources/il8n/locales/tlh/LC_MESSAGES
mkdir -p src/resources/il8n/locales/dev/LC_MESSAGES
msgfmt -c -o src/resources/il8n/locales/en_GB/LC_MESSAGES/peachyprinter.mo src/resources/il8n/po/en_GB.po
msgfmt -c -o src/resources/il8n/locales/en_US/LC_MESSAGES/peachyprinter.mo src/resources/il8n/po/en_US.po
msgfmt -c -o src/resources/il8n/locales/tlh/LC_MESSAGES/peachyprinter.mo src/resources/il8n/po/tlh.po
msgfmt -c -o src/resources/il8n/locales/dev/LC_MESSAGES/peachyprinter.mo src/resources/il8n/po/dev.po