diff options
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile | 15 | ||||
-rw-r--r-- | po/POTFILES.in | 6 |
2 files changed, 10 insertions, 11 deletions
diff --git a/po/Makefile b/po/Makefile index 0db50a50..243f5497 100644 --- a/po/Makefile +++ b/po/Makefile @@ -3,10 +3,9 @@ localedir = $(PREFIX)/usr/share/locale PGOAL = mgaonline -PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,' ) +PL_FILES = ../mga*.pm ../mgaupdate ../mgaapplet ../mgaapplet-config POFILES = $(shell ls *.po) -PL_CFILES = $(PL_FILES:%=%_.c) POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) @@ -22,13 +21,19 @@ install: all done clean: - rm -f *~ *.[oas] *.mo TAGS $(PL_CFILES) + rm -f *~ *.[oas] *.mo TAGS POTFILES.in %.mo: %.po msgfmt -o $@ $< -$(PGOAL).pot: $(PL_FILES) $(CFILES) - perl_checker -q --generate-pot $(PGOAL).pot $(PL_FILES) +$(PGOAL).pot: $(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.in; ) > POTFILES.in update_n_merge: $(PGOAL).pot merge diff --git a/po/POTFILES.in b/po/POTFILES.in deleted file mode 100644 index 72e4262d..00000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,6 +0,0 @@ -mgaupdate -mgaapplet-config -mgaapplet -mgaapplet_gui.pm -mgaapplet_urpm.pm -mgaonline.pm |