1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-18 13:46:34 +02:00
24eme-signaturepdf/Makefile
2023-09-14 17:29:33 +02:00

32 lines
922 B
Makefile

.PHONY: test all
.DEFAULT_GOAL := all
all: update_trad
node_modules/jest/bin/jest.js:
npm install jest
node_modules/puppeteer:
npm install puppeteer
test: node_modules/jest/bin/jest.js node_modules/puppeteer
./node_modules/jest/bin/jest.js
update_trad:
# Extraction des phrases traductibles...
@xgettext --from-code=utf-8 --output=./locale/application.pot templates/*.php
# Mise a jour des fichiers .po...
@for lang in $$(find locale -mindepth 1 -maxdepth 1 -type d); do \
po_file="$$lang/LC_MESSAGES/application.po"; \
msgmerge --update -N "$$po_file" ./locale/application.pot; \
done
# Creation des fichiers .mo...
@for lang in $$(find locale -mindepth 1 -maxdepth 1 -type d); do \
po_file="$$lang/LC_MESSAGES/application.po"; \
rm -f "$$lang/LC_MESSAGES/application.mo"; \
msgfmt "$$po_file" --output-file="$$lang/LC_MESSAGES/application.mo"; \
done