summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile16
1 files changed, 4 insertions, 12 deletions
diff --git a/po/Makefile b/po/Makefile
index e41b2e86..f4a33e77 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -4,11 +4,11 @@ localedir = $(DESTDIR)/usr/share/locale
PGOAL = drakconf
# perl files to search translatable strings in
-PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,')
+PL_FILES = ../contributors.pl ../control-center ../drakconsole ../drakxconf \
+ ../gecko.pm ../menus_launcher.pl ../print_launcher.pl
# C-like files to search translatable strings in
#CFILES =
-PL_CFILES = $(PL_FILES:%=%_.c)
POFILES = $(shell ls *.po)
MOFILES = $(POFILES:%.po=%.mo)
LANGS = $(POFILES:%.po=%)
@@ -33,16 +33,8 @@ clean:
%.mo: %.po
msgfmt -o $@ $<
-$(PGOAL).pot: $(PL_CFILES) $(CFILES)
- xgettext -F -n --add-comments='-PO' --default-domain=$(PGOAL) \
- --keyword=_ --keyword=__ --keyword=N_ --keyword=N \
- --keyword=I_ --keyword=i18n \
- --language=C $(PL_CFILES) $(CFILES)
- mv $(PGOAL).po $@
- @rm -rf $(PL_CFILES)
-
-$(PL_CFILES): %_.c: %
- ./fake_c.pl $< > $@
+$(PGOAL).pot: $(PL_FILES)
+ perl_checker -q --generate-pot $(PGOAL).pot $(PL_FILES)
merge: $(PGOAL).pot
@for n in $(POFILES); do \