build from weblate

OBS-URL: https://build.opensuse.org/package/show/YaST:Head/yast2-trans?expand=0&rev=232
This commit is contained in:
Karl Eichwalder
2016-09-29 09:35:59 +00:00
committed by Git OBS Bridge
parent 660e6f5bed
commit b0aeff55ee
79 changed files with 665 additions and 444 deletions

36
po-stats Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
export LC_ALL=C; export LANG=C
sed -e 's/.*\.po://' -e 's:,:,\
:g' \
| awk '\
BEGIN{
FS = " ";
all = trans = untrans = fuzzy = 0;
}
# 113 translated messages, 481 fuzzy translations, 605 untranslated messages.
/[[:blank:]]translated/ {
trans += $1;
next
}
/[[:blank:]]untranslated/ {
untrans += $1;
next
}
/[[:blank:]]fuzzy/ {
fuzzy += $1;
next
}
END{
# The statistics.
format = "%13-s: %5d\n"
printf(format, "Translated", trans) ;
printf(format, "Fuzzy", fuzzy);
printf(format, "Untranslated", untrans);
print "--------------------";
all = trans + fuzzy + untrans
printf("%12s : %5d\n", " All strings", all);
printf("%.0f %% are translated\n", 100 / all * trans);
}'