diff options
Diffstat (limited to 'perl-install/share/po/Makefile')
-rw-r--r-- | perl-install/share/po/Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile index 07355143c..4088668cb 100644 --- a/perl-install/share/po/Makefile +++ b/perl-install/share/po/Makefile @@ -1,18 +1,18 @@ include ../../Makefile.config -PMSFILES = $(ALLPMS) ../move/move.pm ../move/tree/mdk_totem -PMSFILES_HERE = $(wildcard $(PMSFILES:%=../../%)) +PMSFILES = $(wildcard $(ALLPMS:%=../../%)) + +# temporarly don't include those po files +# (too low translation percentage) +POFILES = $(shell ls *.po|grep -v '\(ga.po\|is.po\|sl.po\)') -POFILES = $(wildcard *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) LOCALEDIR=$(DATADIR)/locale -all: help mofiles - -mofiles: $(MOFILES) +all: help $(MOFILES) help: @if [ ! -d doc ]; then \ @@ -34,24 +34,24 @@ $(POFILES): DrakX.pot if [ -e help-$@t ]; then perl -pe 's|^#~ ||' -i $@t ; msgmerge -C $@t help-$@t $< > $@; else msgmerge $@t $< > $@; fi rm $@t -DrakX.pot: $(PMSFILES_HERE) - cd ../.. ; perl_checker -q --generate-pot share/po/$@ $(PMSFILES) +DrakX.pot: $(PMSFILES) + perl_checker -q --generate-pot $@ $(PMSFILES) perl i18n_compssUsers 2>/dev/null >> $@ install: for l in $(LANGS); do \ - $(SUDO) install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ - $(SUDO) install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ + install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ + install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ done clean: @rm -rf drakx-help.xml .memdump doc empty.po tmp.* messages tmp.pot *.mo $(POFILES:%=%t) check: - @grep '[^\\]\$$' DrakX.pot && { echo 'bad translation strings (contains $$) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'; exit 1; } ||: + @grep -F '$$' DrakX.pot && { echo "bad translation strings (contains \$$) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"; exit 1; } ||: verif: - perl -ne '/^\s*#/ or $$i += my @l = /\b__?\(/g; END { print "$$i\n" }' $(PMSFILES_HERE) + perl -ne '/^\s*#/ or $$i += my @l = /\b__?\(/g; END { print "$$i\n" }' $(PMSFILES) perl -ne '$$i += my @l = /\.c:/g; END { print "$$i\n" }' DrakX.pot verif2: |