[Freeipa-devel] [PATCH] strip .po file suffix in translation statistics

John Dennis jdennis at redhat.com
Fri Feb 19 14:41:55 UTC 2010


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.

Instead of:

ipa.pot has 133 messages
bn_IN.po:   14/133  10.5%  106 po untranslated,   13 missing,  119 
untranslated
id.po:   107/133  80.5%   13 po untranslated,   13 missing,   26 
untranslated
kn.po:     4/133   3.0%  116 po untranslated,   13 missing,  129 
untranslated
pl.po:   120/133  90.2%    0 po untranslated,   13 missing,   13 
untranslated
[jdennis at jdennis po]$ make msg-stats

the statistics now read:

ipa.pot has 133 messages
bn_IN:    14/133  10.5%  106 po untranslated,   13 missing,  119 
untranslated
id:      107/133  80.5%   13 po untranslated,   13 missing,   26 
untranslated
kn:        4/133   3.0%  116 po untranslated,   13 missing,  129 
untranslated
pl:      120/133  90.2%    0 po untranslated,   13 missing,   13 
untranslated


-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-strip-.po-file-suffix-in-translation-statistics.patch
Type: text/x-patch
Size: 1973 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100219/dc6c4968/attachment.bin>


More information about the Freeipa-devel mailing list