From 9d9ef58760337c42819f702feb0c67b9af0f2988 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 1 Oct 2013 20:48:52 +0100 Subject: polkit: Make the polkit policy files translatable. --- po/Makefile | 11 ++++++++--- po/POTFILES.in | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 po/POTFILES.in (limited to 'po') diff --git a/po/Makefile b/po/Makefile index c294cc5..f11b883 100644 --- a/po/Makefile +++ b/po/Makefile @@ -31,9 +31,14 @@ clean: %.mo: %.po msgfmt -o $@ $< -$(POTFILE): $(PL_FILES) - perl_checker -q --generate-pot $@ $(PL_FILES) - +$(POTFILE): $(PL_FILES) POTFILES.in + intltool-update --gettext-package non-perl --pot + perl_checker -q --generate-pot .$@ $(PL_FILES) + msgcat -w 2048 --use-first .$@ non-perl.pot > $@ + rm -f non-perl.pot ..$@ .$@ + +POTFILES.in: + (cd .. ; /bin/ls -1 polkit/policy/*.policy.in; ) > POTFILES.in update_n_merge: $(PGOAL).pot merge diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..d3cda6d --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,3 @@ +polkit/policy/org.mageia.drakkeyboard.policy.in +polkit/policy/org.mageia.drakmouse.policy.in +polkit/policy/org.mageia.drakx11.policy.in -- cgit v1.2.1