diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-12 16:05:27 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-12 16:11:06 +0100 |
commit | 9cbfa48073b47148a42b65c729423e873488c39c (patch) | |
tree | 07392e40822f14e523c2e17925aaa721156d7d5b /po | |
parent | 43a9cc31a1d26614f0d7af0915588fd7c121fcfa (diff) | |
download | userdrake-9cbfa48073b47148a42b65c729423e873488c39c.tar userdrake-9cbfa48073b47148a42b65c729423e873488c39c.tar.gz userdrake-9cbfa48073b47148a42b65c729423e873488c39c.tar.bz2 userdrake-9cbfa48073b47148a42b65c729423e873488c39c.tar.xz userdrake-9cbfa48073b47148a42b65c729423e873488c39c.zip |
Use polkit for authorisation (mga#11125)
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile | 21 | ||||
-rw-r--r-- | po/POTFILES.in | 2 |
2 files changed, 10 insertions, 13 deletions
diff --git a/po/Makefile b/po/Makefile index f9d5721..e773ff9 100644 --- a/po/Makefile +++ b/po/Makefile @@ -4,7 +4,7 @@ localedir = $(PREFIX)/usr/share/locale PGOAL = userdrake # perl files to search translatable strings in -PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,' ) +PL_FILES = ../userdrake ../USER/USER.pm # C-like files to search translatable strings in CFILES = ../USER/USER.xs @@ -23,20 +23,19 @@ install: all done clean: - rm -f *~ *.[oas] *.mo TAGS + rm -f *~ *.[oas] *.mo TAGS POTFILES.in %.mo: %.po msgfmt -o $@ $< -$(PGOAL).pot: POTFILES.in $(PL_FILES) $(CFILES) - xgettext -F -n --add-comments \ - --keyword=_ --keyword=__ --keyword=N_ --keyword=N \ - --keyword=gettext \ - --language=C -o placeholder.pot $(CFILES) - #touch placeholder.pot - perl_checker -q --generate-pot $(PGOAL)_tmp.pot $(PL_FILES) || rm -f $(PGOAL)_tmp.pot - [ ! -e $(PGOAL)_tmp.pot ] || msgcat --use-first placeholder.pot $(PGOAL)_tmp.pot > $@ - rm -f placeholder.pot $(PGOAL)_tmp.pot +$(PGOAL).pot: $(PL_FILES) $(CFILES) 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.in USER/*.xs; ) > POTFILES.in update_n_merge: $(PGOAL).pot merge diff --git a/po/POTFILES.in b/po/POTFILES.in deleted file mode 100644 index afce97b..0000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,2 +0,0 @@ -userdrake -USER/USER.pm |