[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: Remove empty translation catalogs from svn
From: Freek de Kruijf <freekdekruijf () kde ! nl>
Date: 2017-01-11 13:01:27
Message-ID: 1910225.YMQzSbyvxj () eik132 ! beelaertsict ! nl
[Download RAW message or body]
Op dinsdag 10 januari 2017 22:40:40 schreef Burkhard Lück:
> Hi translation teams,
>
> Scripty reports a lot of header errors in his daily logs, see e.g:
> https://logs.l10n.kde.org/170110.trunk_l10n-kf5
>
> Looking at the reason for these issue I found that we apparently have a lot
> of empty translation catalogs (zero translation, zero fuzzy, zero obsolete
> translations), they seem to be just pot files renamed to po without all
> necessary header entries.
>
> Some numbers for trunk kf5 generated using this bash script:
> emptycatalogs.sh:
> #!/bin/bash
>
> for i in $(find $1 -name *.po); do
> result=$(msgfmt -o /dev/null --statistics $i 2>&1)
> if echo $result | grep -q "^0 translated message"; then
> if echo $result | grep -qv "fuzzy"; then
> if $(cat $i | grep -q "#~ msgstr"); then
> obsoletestring=" but obsolete msgstr"
> else
> obsoletestring=""
> #uncomment next line to remove the useless catalog
> #svn rm $i
> fi
> echo $i $result $obsoletestring
> fi
> fi
> done
>
> (Seems I cannot attach a bash script to this mail, rejected with error
> "Your message has been rejected because it contained one or more
> attachments which do not comply with KDE.org email policies.")
>
> ~/src/l10n-kf5(trunk)$ find . -name *.po|wc
> 90080 90080 4535939
> ~/src/l10n-kf5(trunk)$ bash emptycatalogs.sh . >/tmp/emptytrunkkf5
> ~/src/l10n-kf5(trunk)$ cat /tmp/emptytrunkkf5|wc
> 4169 32792 448799
> 4,6 % of 90080
> ~/src/l10n-kf5(trunk)$ cat /tmp/emptytrunkkf5|grep obsolete | wc
> 1212 12120 150864
> 1,3 % of 90080
> ~/src/l10n-kf5(trunk)$ cat /tmp/emptytrunkkf5|grep -v obsolete | wc
> 2957 20672 297935
> 3,2 % of 90080
>
> From my pov I'd want to remove all catalogs with zero translation, zero
> fuzzy and zero obsolete translations in all six branches from svn repo,
> these catalogs are completely useless and scripty e.g. has to process 2957
> empty catalogs only in trunk kf5 for no reason
>
> comments?
Sounds reasonable.
--
vr.gr.
vertaler van KDE
Freek de Kruijf
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic