aboutsummaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-20 23:33:49 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-20 23:33:49 +0000
commit6e86c4a4722c6d0f9395d967092112934bc43b57 (patch)
treec8a4757d70489aee0341389eff6eb10aa40fc4a4 /po/Makefile
parent431227efbf05672acb642c91b163ed3a85553684 (diff)
downloadrpmdrake-6e86c4a4722c6d0f9395d967092112934bc43b57.tar
rpmdrake-6e86c4a4722c6d0f9395d967092112934bc43b57.tar.gz
rpmdrake-6e86c4a4722c6d0f9395d967092112934bc43b57.tar.bz2
rpmdrake-6e86c4a4722c6d0f9395d967092112934bc43b57.tar.xz
rpmdrake-6e86c4a4722c6d0f9395d967092112934bc43b57.zip
use perl_checker rather than fake_c to generate pot,
seems like fake_c is missing some strings since some time :( i don't msgmerge from the pot file of rpmdrake for 9.0 because it seems to make some rightful translations fuzzy, and for some translations such as de.po who kept the missing strings as "other", it's worse, so translators should open the new po, try msgmerge by hand with the po from the SRPM of the 9.0 and see if it's better for them.. much sorry for all this additional work :(
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/po/Makefile b/po/Makefile
index bf265175..11cf9608 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -3,10 +3,7 @@ PGOAL = rpmdrake
# perl files to search translatable strings in
PL_FILES = ../rpmdrake ../edit-urpm-sources.pl ../rpmdrake.pm
-# 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=%)
@@ -24,9 +21,6 @@ all: $(PGOAL).pot $(MOFILES)
@if [ -z "`echo $(IGNOREPOMS) | grep $<`" ]; then cat $< "$<"m >> "$<"f; else cp $< "$<"f; fi
msgfmt -o $@ "$<"f
-$(PL_CFILES): %_.c: %
- ../grpmi/po/fake_c.pl $< > $@
-
merge: $(PGOAL).pot
@for n in $(POFILES); do \
echo "Merging $$n"; \
@@ -35,12 +29,10 @@ merge: $(PGOAL).pot
./get_from_compssusers.pl "$$n" > "$$n"m; \
done
-$(PGOAL).pot: $(PL_CFILES) $(CFILES)
- INTLTOOL_EXTRACT=./intltool-extract ./intltool-update --gettext-package rpmdrake --pot
- xgettext -j -F -n --add-comments='-PO' \
- --keyword=_ --keyword=__ --keyword=N_ --keyword=N \
- --language=C -o $@ $(PL_CFILES) $(CFILES)
- @rm -rf $(PL_CFILES)
+$(PGOAL).pot: $(PL_FILES)
+ INTLTOOL_EXTRACT=./intltool-extract ./intltool-update --gettext-package desktopstuff --pot
+ perl_checker -q --generate-pot rpmdrake_tmp.pot $(PL_FILES)
+ msgcat rpmdrake_tmp.pot desktopstuff.pot > $@
install:
for l in $(LANGS); do \
@@ -49,5 +41,5 @@ install:
done
clean:
- @rm -rf *.mo *.pof $(POFILES:%=%t) $(PL_CFILES) $(PGOAL).pot
+ @rm -rf *.mo *.pof $(POFILES:%=%t) $(PL_CFILES) $(PGOAL).pot desktopstuff.pot rpmdrake_tmp.pot