summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2004-01-21 17:57:36 +0000
committerPablo Saratxaga <pablo@mandriva.com>2004-01-21 17:57:36 +0000
commit8708d7170afae3b02d6c578694ccc47f37946cb2 (patch)
treea271092c171f6172a822e770cae6f2e236da8a47 /po/Makefile
parent1cf474b0c603ad034145b92e29f4d37b15f84498 (diff)
downloadcontrol-center-8708d7170afae3b02d6c578694ccc47f37946cb2.tar
control-center-8708d7170afae3b02d6c578694ccc47f37946cb2.tar.gz
control-center-8708d7170afae3b02d6c578694ccc47f37946cb2.tar.bz2
control-center-8708d7170afae3b02d6c578694ccc47f37946cb2.tar.xz
control-center-8708d7170afae3b02d6c578694ccc47f37946cb2.zip
Now uses perl_checker to create the pot file
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 \