Translations in frameworks released tarballs

Harald Sitter sitter at kde.org
Wed Jul 9 21:19:28 UTC 2014


On Wed, Jul 9, 2014 at 8:32 PM, Albert Astals Cid <aacid at kde.org> wrote:
> El Dimecres, 9 de juliol de 2014, a les 22:25:29, Albert Astals Cid va
> escriure:
>> El Dimecres, 9 de juliol de 2014, a les 11:59:01, Harald Sitter va escriure:
>> > On Wed, Jul 9, 2014 at 11:27 AM, Alexander Potashev
>> >
>> > <aspotashev at gmail.com> wrote:
>> > > 2014-07-09 2:38 GMT+04:00 David Faure <faure at kde.org>:
>> > >> On Tuesday 08 July 2014 23:24:36 Christoph Feck wrote:
>> > >>> Is it possible to strip them before the archives are packed? Or can
>> > >>> they even be stripped in the repositories?
>> > >>
>> > >> Good question. If kde-i18n-doc says "better not strip in the
>> > >> repositories",
>> > >> then I can make the stripping a part of the release scripts.
>> > >
>> > > Hi David,
>> > >
>> > > I would say "better not strip in the repositories". It might be my
>> > > personal feeling, a fear to forget and lose data, but there might be
>> > > workflows broken if you strip obsolete messages. Example: someone
>> > > removes a chunk of code and restores it next day. If you strip
>> > > obsoletes in between, then translations for the restored code will be
>> > > lost. Otherwise msgmerge would put them back as fuzzy messages and
>> > > then translators only need to unfuzzy them which is easy.
>> > >
>> > > Even if we decide to strip obsolete messages automatically (daily?),
>> > > someone might commit a new translation file with some obsolete
>> > > messages on the tagging/release day and then you still find obsoletes
>> > > in the release tarballs.
>> >
>> > FWIW, the releaseme script does stripping at tarball creation time and
>> > has done so for many years, it seems the best safeguard against
>> > garbage in the tar (and btw, these also ultimately end up in the .mo,
>> > unless gettext was changed to not include them).
>>
>> Are you sure they end up in the .mo? I'd be pretty surprised about this, i'm
>> almost 99.96% sure it doesn't happen.
>
> As a matter of fact, i just tried and doesn't happen, can you please tell me
> what you tried?

I might be entirely wrong.

While the original commit explicitly comments that this is the case
http://quickgit.kde.org/?p=releaseme.git&a=commitdiff&h=1858b03990f1e40938200bcc8e06fce44a007f23&hp=529eace5deb4a1c034a8a7e97b84b05598214aa5

I just looked at old Kubuntu build logs of Amarok 2.3 (which would be
the release series that prompted the addition of stripping) and there
is no drop to be observed at all. So either the assement was wrong or
it was distribution specific problem. Since it was so long ago I
couldn't possibly remember what we did to find the obsolte strings in
the mo.

HS


More information about the Kde-frameworks-devel mailing list