Eduard Bloch <[EMAIL PROTECTED]> (07/11/2004): > Yeah, I abused debian/po location in the hope to get more translations, > but I did not consider the need of POTFILES.ini. If somebody wants to > see this implemented right, send patches.
Here is how to fix the abuse (please note that I'm not an experienced packager, so please check everything carefully): move debian/po to po remove po/templates.pot and po/update-and-compile.sh check and use the Makefile attached check and apply the diff to your debian/rules check if everything is ok I hope it helps. Regards, -- Thomas Huriaux
DOMAIN=pppoeconf
POFILES=$(wildcard *.po)
MOFILES=$(patsubst %.po,%.mo,$(POFILES))
LINGUAS=$(basename $(POFILES))
MAINDIR=..
GETTEXTFILES=$(MAINDIR)/pppoeconf
POTFILE=$(DOMAIN).pot
DESTDIR=/
%.mo: %.po
msgfmt --statistics -o $@ $<
%.po: $(DOMAIN).pot
msgmerge -U $*.po $(DOMAIN).pot
$(DOMAIN).pot: $(GETTEXTFILES)
$(shell xgettext -L Shell -o $(DOMAIN).pot $(GETTEXTFILES))
update-po:
-for lang in $(LINGUAS); do\
msgmerge -U $$lang.po $(DOMAIN).pot; \
done
install: $(MOFILES)
-for lang in $(LINGUAS); do\
install -d $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/; \
install -m 644 $$lang.mo
$(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
done
all: update-po $(MOFILES)
clean:
- rm *.mo *~
.PHONY: update-po
--- rules.orig 2005-09-22 18:57:05.000000000 +0200
+++ rules 2005-09-22 18:58:44.000000000 +0200
@@ -21,7 +21,7 @@
dh_testdir
# Add here commands to compile the package.
- cd debian/po ; sh update-and-compile.sh
+ cd po; $(MAKE)
touch build-stamp
@@ -31,7 +31,7 @@
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
- cd debian/po ; sh update-and-compile.sh clean
+ cd po; $(MAKE) update-po clean
dh_clean
@@ -51,7 +51,7 @@
install -m 755 pppoeconf $(CURDIR)/debian/pppoeconf/usr/sbin/
#install -m 700 -d $(CURDIR)/debian/pppoeconf/etc/ppp/ip-up.d
install -m 644 debian/pppoeconf.xpm
$(CURDIR)/debian/pppoeconf/usr/share/pixmaps/
- cp -a debian/po/usr $(CURDIR)/debian/pppoeconf/
+ cd po; $(MAKE) install DESTDIR=$(CURDIR)/debian/pppoeconf/
# Build architecture-independent files here.
binary-indep: build install
signature.asc
Description: Digital signature

