Hi,

On Mon, Sep 04, 2017 at 06:31:54AM +0200, Rene Engelhard wrote:
> On Mon, Sep 04, 2017 at 02:13:25AM +0300, Lior Kaplan wrote:
> >    Translation of Albanian is currently at 60-65%, would be nice to have a
> >    l10n package as upstream already provides them....
> 
> Hmm. 60-65% is quite low. Normally I'd put the threshold at 80-90%...
> I'd more consider it a bug upstream ships it, thenaagain they probably build 
> with all languages? (Don't see any --with-lang in

Oh, my. This is hilarious.

I wrote a quick and dirty script to check the locales[1]:

Even stuff we have in the packages right now is bad.

Even ar and he and hi and... Is he really so bad?

Even oc is better than them...

ab: 30882 strings, 29608 of 30882
ab: no help translations
ab: 5% translated, 95% untranslated
af: 30882 strings, 14879 of 30882
af: no help translations
af: 52% translated, 48% untranslated
am: 76796 strings, 868 of 76796
am: 99% translated, 1% untranslated
an: 30882 strings, 23230 of 30882
an: no help translations
an: 25% translated, 75% untranslated
ar: 76811 strings, 47820 of 76811
ar: 38% translated, 62% untranslated
as: 30879 strings, 9679 of 30879
as: no help translations
as: 69% translated, 31% untranslated
ast: 76811 strings, 18764 of 76811
ast: 76% translated, 24% untranslated
az: 30882 strings, 30041 of 30882
az: no help translations
az: 3% translated, 97% untranslated
be: 30882 strings, 2470 of 30882
be: no help translations
be: 93% translated, 7% untranslated
bg: 76811 strings, 3823 of 76811
bg: 96% translated, 4% untranslated
bn: 76811 strings, 26782 of 76811
bn: 66% translated, 34% untranslated
bn-IN: 76805 strings, 19473 of 76805
bn-IN: 75% translated, 25% untranslated
bo: 76795 strings, 31941 of 76795
bo: 59% translated, 41% untranslated
br: 30877 strings, 3218 of 30877
br: no help translations
br: 90% translated, 10% untranslated
brx: 30867 strings, 17153 of 30867
brx: no help translations
brx: 45% translated, 55% untranslated
bs: 76810 strings, 34054 of 76810
bs: 56% translated, 44% untranslated
ca: 76809 strings, 4354 of 76809
ca: 95% translated, 5% untranslated
ca-valencia: 76809 strings, 9948 of 76809
ca-valencia: 88% translated, 12% untranslated
cs: 76810 strings, 3693 of 76810
cs: 96% translated, 4% untranslated
cy: 30882 strings, 514 of 30882
cy: no help translations
cy: 99% translated, 1% untranslated
da: 76809 strings, 570 of 76809
da: 100% translated, 0% untranslated
de: 76830 strings, 570 of 76830
de: 100% translated, 0% untranslated
dgo: 30846 strings, 11952 of 30846
dgo: no help translations
dgo: 62% translated, 38% untranslated
dz: 76805 strings, 27330 of 76805
dz: 65% translated, 35% untranslated
el: 76811 strings, 570 of 76811
el: 100% translated, 0% untranslated
en-GB: 76811 strings, 570 of 76811
en-GB: 100% translated, 0% untranslated
en-ZA: 76811 strings, 22075 of 76811
en-ZA: 72% translated, 28% untranslated
eo: 76811 strings, 21338 of 76811
eo: 73% translated, 27% untranslated
es: 76811 strings, 988 of 76811
es: 99% translated, 1% untranslated
et: 76811 strings, 5910 of 76811
et: 93% translated, 7% untranslated
eu: 76810 strings, 1129 of 76810
eu: 99% translated, 1% untranslated
fa: 30853 strings, 17490 of 30853
fa: no help translations
fa: 44% translated, 56% untranslated
fi: 76811 strings, 12301 of 76811
fi: 84% translated, 16% untranslated
fr: 76811 strings, 569 of 76811
fr: 100% translated, 0% untranslated
ga: 30882 strings, 6636 of 30882
ga: no help translations
ga: 79% translated, 21% untranslated
gd: 30882 strings, 516 of 30882
gd: no help translations
gd: 99% translated, 1% untranslated
gl: 76806 strings, 10628 of 76806
gl: 87% translated, 13% untranslated
gu: 76806 strings, 22340 of 76806
gu: 71% translated, 29% untranslated
gug: 30875 strings, 7983 of 30875
gug: no help translations
gug: 75% translated, 25% untranslated
he: 76811 strings, 27572 of 76811
he: 65% translated, 35% untranslated
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <-- he
hi: 76803 strings, 44924 of 76803
hi: 42% translated, 58% untranslated
hr: 76811 strings, 33834 of 76811
hr: 56% translated, 44% untranslated
hsb: 30877 strings, 736 of 30877
hsb: no help translations
hsb: 98% translated, 2% untranslated
hu: 76811 strings, 3109 of 76811
hu: 96% translated, 4% untranslated
hu-Hung: 31675 strings, 31556 of 31675
hu-Hung: no help translations
hu-Hung: 1% translated, 99% untranslated
id: 76811 strings, 22167 of 76811
id: 72% translated, 28% untranslated
is: 76811 strings, 28534 of 76811
is: 63% translated, 37% untranslated
it: 76811 strings, 570 of 76811
it: 100% translated, 0% untranslated
ja: 76810 strings, 8250 of 76810
ja: 90% translated, 10% untranslated
jv: 30882 strings, 29499 of 30882
jv: no help translations
jv: 5% translated, 95% untranslated
ka: 76798 strings, 45351 of 76798
ka: 41% translated, 59% untranslated
kk: 30882 strings, 515 of 30882
kk: no help translations
kk: 99% translated, 1% untranslated
kl: 30882 strings, 30102 of 30882
kl: no help translations
kl: 3% translated, 97% untranslated
km: 76809 strings, 12175 of 76809
km: 85% translated, 15% untranslated
kmr-Latn: 30862 strings, 16571 of 30862
kmr-Latn: no help translations
kmr-Latn: 47% translated, 53% untranslated
kn: 30878 strings, 7496 of 30878
kn: no help translations
kn: 76% translated, 24% untranslated
ko: 76804 strings, 13577 of 76804
ko: 83% translated, 17% untranslated
kok: 30865 strings, 14700 of 30865
kok: no help translations
kok: 53% translated, 47% untranslated
ks: 30859 strings, 17228 of 30859
ks: no help translations
ks: 45% translated, 55% untranslated
ky: 30882 strings, 30812 of 30882
ky: no help translations
ky: 1% translated, 99% untranslated
lb: 30880 strings, 25343 of 30880
lb: no help translations
lb: 18% translated, 82% untranslated
lo: 76807 strings, 63973 of 76807
lo: 17% translated, 83% untranslated
lt: 76811 strings, 46228 of 76811
lt: 40% translated, 60% untranslated
lv: 76811 strings, 26293 of 76811
lv: 66% translated, 34% untranslated
mai: 30871 strings, 16820 of 30871
mai: no help translations
mai: 46% translated, 54% untranslated
mk: 76808 strings, 24905 of 76808
mk: 68% translated, 32% untranslated
ml: 30874 strings, 10300 of 30874
ml: no help translations
ml: 67% translated, 33% untranslated
mn: 30866 strings, 14366 of 30866
mn: no help translations
mn: 54% translated, 46% untranslated
mni: 30867 strings, 14108 of 30867
mni: no help translations
mni: 55% translated, 45% untranslated
mr: 30881 strings, 7747 of 30881
mr: no help translations
mr: 75% translated, 25% untranslated
my: 30852 strings, 13606 of 30852
my: no help translations
my: 56% translated, 44% untranslated
nb: 76797 strings, 10629 of 76797
nb: 87% translated, 13% untranslated
ne: 76802 strings, 25101 of 76802
ne: 68% translated, 32% untranslated
nl: 76807 strings, 1426 of 76807
nl: 99% translated, 1% untranslated
nn: 76809 strings, 572 of 76809
nn: 100% translated, 0% untranslated
nr: 30873 strings, 18425 of 30873
nr: no help translations
nr: 41% translated, 59% untranslated
nso: 30876 strings, 16524 of 30876
nso: no help translations
nso: 47% translated, 53% untranslated
oc: 30856 strings, 2789 of 30856
oc: no help translations
oc: 91% translated, 9% untranslated
om: 76809 strings, 22282 of 76809
om: 71% translated, 29% untranslated
or: 30872 strings, 8207 of 30872
or: no help translations
or: 74% translated, 26% untranslated
pa-IN: 30876 strings, 11989 of 30876
pa-IN: no help translations
pa-IN: 62% translated, 38% untranslated
pl: 76811 strings, 3190 of 76811
pl: 96% translated, 4% untranslated
pt: 76828 strings, 2057 of 76828
pt: 98% translated, 2% untranslated
pt-BR: 76805 strings, 570 of 76805
pt-BR: 100% translated, 0% untranslated
ro: 76808 strings, 47867 of 76808
ro: 38% translated, 62% untranslated
ru: 76811 strings, 6836 of 76811
ru: 92% translated, 8% untranslated
rw: 30881 strings, 15862 of 30881
rw: no help translations
rw: 49% translated, 51% untranslated
sah: 30882 strings, 30808 of 30882
sah: no help translations
sah: 1% translated, 99% untranslated
sa-IN: 30872 strings, 11854 of 30872
sa-IN: no help translations
sa-IN: 62% translated, 38% untranslated
sat: 30869 strings, 9826 of 30869
sat: no help translations
sat: 69% translated, 31% untranslated
sd: 30871 strings, 11059 of 30871
sd: no help translations
sd: 65% translated, 35% untranslated
si: 76801 strings, 46113 of 76801
si: 40% translated, 60% untranslated
sid: 76809 strings, 22434 of 76809
sid: 71% translated, 29% untranslated
sk: 76811 strings, 14480 of 76811
sk: 82% translated, 18% untranslated
sl: 76821 strings, 574 of 76821
sl: 100% translated, 0% untranslated
sq: 76810 strings, 44055 of 76810
sq: 43% translated, 57% untranslated
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  <<-- this bugs wish
sr: 30311 strings, 7802 of 30311
sr: no help translations
sr: 75% translated, 25% untranslated
sr-Latn: 30311 strings, 9642 of 30311
sr-Latn: no help translations
sr-Latn: 69% translated, 31% untranslated
ss: 30881 strings, 18158 of 30881
ss: no help translations
ss: 42% translated, 58% untranslated
st: 30879 strings, 18367 of 30879
st: no help translations
st: 41% translated, 59% untranslated
sv: 76811 strings, 8052 of 76811
sv: 90% translated, 10% untranslated
sw-TZ: 30881 strings, 16219 of 30881
sw-TZ: no help translations
sw-TZ: 48% translated, 52% untranslated
szl: 30882 strings, 30771 of 30882
szl: no help translations
szl: 1% translated, 99% untranslated
ta: 76807 strings, 34439 of 76807
ta: 56% translated, 44% untranslated
te: 30871 strings, 9965 of 30871
te: no help translations
te: 68% translated, 32% untranslated
tg: 76810 strings, 42643 of 76810
tg: 45% translated, 55% untranslated
th: 30882 strings, 11949 of 30882
th: no help translations
th: 62% translated, 38% untranslated
ti: 30882 strings, 30723 of 30882
ti: no help translations
ti: 1% translated, 99% untranslated
tn: 30876 strings, 20681 of 30876
tn: no help translations
tn: 34% translated, 66% untranslated
tr: 76805 strings, 977 of 76805
tr: 99% translated, 1% untranslated
ts: 30826 strings, 18355 of 30826
ts: no help translations
ts: 41% translated, 59% untranslated
tt: 30882 strings, 23885 of 30882
tt: no help translations
tt: 23% translated, 77% untranslated
ug: 76805 strings, 42504 of 76805
ug: 45% translated, 55% untranslated
uk: 76811 strings, 15793 of 76811
uk: 80% translated, 20% untranslated
ur: 30882 strings, 29754 of 30882
ur: no help translations
ur: 4% translated, 96% untranslated
uz: 30880 strings, 17711 of 30880
uz: no help translations
uz: 43% translated, 57% untranslated
ve: 30882 strings, 18295 of 30882
ve: no help translations
ve: 41% translated, 59% untranslated
vec: 30880 strings, 1051 of 30880
vec: no help translations
vec: 97% translated, 3% untranslated
vi: 76767 strings, 21902 of 76767
vi: 72% translated, 28% untranslated
xh: 30877 strings, 18220 of 30877
xh: no help translations
xh: 41% translated, 59% untranslated
zh-CN: 76811 strings, 5645 of 76811
zh-CN: 93% translated, 7% untranslated
zh-TW: 76811 strings, 9057 of 76811
zh-TW: 89% translated, 11% untranslated
zu: 30877 strings, 17462 of 30877
zu: no help translations
zu: 44% translated, 56% untranslated
am be bg br ca ca-valencia cs cy da de el en-GB es et eu fi fr gd gl hsb hu it 
ja kk km ko nb nl nn oc pl pt pt-BR ru sk sl sv tr vec zh-CN zh-TW

The last line would be with the >= 80% criteria applied....
 
Regards,

Rene

[1]
for i in `ls -1`; do
        a=$(grep msgid `find $i -name "*.po"` | wc -l)
        b=$(grep msgstr `find $i -name "*.po"` | wc -l)
        c=$(grep msgstr\ \"\" `find $i -name "*.po"` | wc -l)
        p=$((100*$c/$b))
        echo "$i: $a strings, $c of $b"
        if test $a -lt 50000; then
                echo "$i: no help translations"
        fi
        echo "$i: $((100-$p))% translated, $p% untranslated"

        if test $p -lt 20; then
                langs="$langs $i"
        fi
done

echo $langs

Reply via email to