From 87a1e6157a286958fead33e57e84b7ad171ebda4 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 10 May 2015 13:11:11 +0200 Subject: [PATCH] make: generate English .pot file via xgettext Needs the optional gettext-tools package to run. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 725c4a299..25a976a28 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,10 @@ health: # check test script output and advertise a failure... [ "`${.CURDIR}/src/etc/rc.php_test_run`" == "FCGI-PASSED PASSED" ] +translate: + find src | xargs xgettext -L PHP --from-code=UTF-8 -F \ + -o src/share/locale/en/LC_MESSAGES/OPNsense.pot + clean: git reset --hard HEAD && git clean -xdqf .