summaryrefslogtreecommitdiffstats
path: root/install/po/Makefile.in
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2010-02-19 09:31:56 -0500
committerRob Crittenden <rcritten@redhat.com>2010-02-19 14:57:30 -0500
commitec7433313f4fcfe0de7c0206e404e5b84bfd1efb (patch)
tree901582ca24e83413abb22a8374f1d221d372c2f4 /install/po/Makefile.in
parent25d555f9c480c5b96da1b85d6256b143bb21e825 (diff)
downloadfreeipa-ec7433313f4fcfe0de7c0206e404e5b84bfd1efb.tar.gz
freeipa-ec7433313f4fcfe0de7c0206e404e5b84bfd1efb.tar.xz
freeipa-ec7433313f4fcfe0de7c0206e404e5b84bfd1efb.zip
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.
Diffstat (limited to 'install/po/Makefile.in')
-rw-r--r--install/po/Makefile.in6
1 files changed, 3 insertions, 3 deletions
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; \