From ec7433313f4fcfe0de7c0206e404e5b84bfd1efb Mon Sep 17 00:00:00 2001 From: John Dennis Date: Fri, 19 Feb 2010 09:31:56 -0500 Subject: strip .po file suffix in translation statistics The goal is to get the statistics to line up in columns and not exceed an 80 character line which might cause wrapping. Removing .po suffix from the translation name gives us 3 extra characters. Formatting problems were observed when bn_IN.po was added. --- install/po/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install') diff --git a/install/po/Makefile.in b/install/po/Makefile.in index 4b6587374..4ba95ca76 100644 --- a/install/po/Makefile.in +++ b/install/po/Makefile.in @@ -218,16 +218,16 @@ msg-stats: for po_file in $(po_files); do \ $(MSGCMP) $$po_file $(DOMAIN).pot 2>&1 | \ $(AWK) -v po_file=$$po_file -v pot_count=$$pot_count -v pot_file=$(DOMAIN).pot \ - 'BEGIN {po_untranslated=0; undefined=0;} \ + 'BEGIN {po_untranslated=0; undefined=0; \ + po_name = gensub(/.po$$/, "", 1, po_file)} \ /this message is untranslated/ {po_untranslated++} \ /this message is used but not defined/ {undefined++} \ END {untranslated = po_untranslated+undefined; \ translated = pot_count - untranslated; \ ratio = sprintf("%d/%d", translated, pot_count); \ printf "%-7s %8s %5.1f%% %4d po untranslated, %4d missing, %4d untranslated\n", \ - po_file ":", ratio, translated/pot_count*100.0, po_untranslated, undefined, untranslated;}'; \ + po_name ":", ratio, translated/pot_count*100.0, po_untranslated, undefined, untranslated;}'; \ done - install: $(mo_files) @for lang in $(languages); do \ dstdir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ -- cgit