[Libreoffice] [REVIEW: 3-4] possible missing translations

David Tardon dtardon at redhat.com
Thu Jan 12 00:29:44 PST 2012


commit 196885980bbb51562264cb5aad9a3e01133d1d7d fixes a situation where
some translated strings may be missing from installation because of a
bug in one of our tools. I would like to see it in 3.4 .


The fast_merge.pl script creates hierarchy of localize.sdf files (one
per source directory) from sdf files containing all translations for a
language. It reads from the source files by chunks, always all lines
that contain translations for one source file. If the first two source
files in the input sdfs are from different directories, the translations
for the first are lost, because the localize.sdf is created in the
directory of the second file.

It seems that the order of the source files in the input sdfs is random
(but they are grouped per directory), which suggests they are created
by crawling the directory structure in translations/source. This makes
the bug system specific.

See https://bugzilla.redhat.com/show_bug.cgi?id=771108 as an example.
Here the top translations evidently came from
framework/source/classes/resource.src and
framework/source/services/fwk_services.src and translations from the
former were lost.

Note: Miklos tried to fix it before, but unfortunately his fix was not
complete and I reverted it.


More information about the LibreOffice mailing list