Change to the validator in the makefile of po dir
Hello,
Here is a patch to the makefile of dbootstrap/po dir, to check against too
long messages. It relies on comments to the translators of the good format,
and that could be improoved.
Can I commit it, or do you have any objections ?
Thanks, Mt.
Index: Makefile
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/utilities/dbootstrap/po/Makefile,v
retrieving revision 1.50
diff -u -r1.50 Makefile
--- Makefile 2002/03/16 15:04:39 1.50
+++ Makefile 2002/05/22 13:17:28
@@ -39,6 +39,20 @@
check-%: %.po
@echo -n "$<: "
@msgfmt -o /dev/null --statistics -c -v $<
+ @echo "Check for long messages..."
+ @pb=`grep -n --after-context=4 'keep this under one line' $< |\
+ sed 's/./\0 -> /81' | grep ' -> [^"]'`; \
+ if test "x$$pb" != "x"; then \
+ echo " Some messages must be less than 63 chars.";\
+ echo "$$pb;"; \
+ fi;\
+ pb=`grep -n --after-context=4 '^\#:.*main_menu.c:1[5-9][0-9]\|^\#:.*main_menu.c:2[0-2][0-9]' $< | \
+ grep '\"' | sed 's/./\0 -> /67' | grep ' -> [^"]'` ; \
+ if test "x$$pb" != "x"; then \
+ echo " Some messages seem to have to be less than 48 chars.";\
+ echo " (see lists.debian.org/debian-boot/2002/debian-boot-200204/msg00375.html)";\
+ echo "$$pb;"; \
+ fi
update-%: %.po $(PACKAGE).pot
cat=`basename $<`; \
Reply to: