13 lines
429 B
Makefile
13 lines
429 B
Makefile
|
.PHONY: po mo
|
||
|
|
||
|
po:
|
||
|
xgettext -Lpython --output=messages.pot main.py lang.kv
|
||
|
msgmerge --update --no-fuzzy-matching --backup=off po/en.po messages.pot
|
||
|
msgmerge --update --no-fuzzy-matching --backup=off po/fr.po messages.pot
|
||
|
|
||
|
mo:
|
||
|
mkdir -p data/locales/en/LC_MESSAGES
|
||
|
mkdir -p data/locales/fr/LC_MESSAGES
|
||
|
msgfmt -c -o data/locales/en/LC_MESSAGES/langapp.mo po/en.po
|
||
|
msgfmt -c -o data/locales/fr/LC_MESSAGES/langapp.mo po/fr.po
|