[libreoffice-l10n] Invalid Entry in Po Files

Zolnai Tamás zolnaitamas2000 at gmail.com
Wed Jul 31 10:07:55 PDT 2013


2013/7/31 Andras Timar <timar74 at gmail.com>

> Hi Tadele,
>
> On Wed, Jul 31, 2013 at 5:44 PM, Tadele Assefa <milkyswd at gmail.com> wrote:
> > Meld Diff Viewer.  The difference I spotted appeared at the bottom of the
> > files with many more comments in my file than the Hungarian one. Can that
> > be a cause?
> >
>
> Yes, it is the cause. Remove those obsolete entries from the end of
> the file. As far as I remember, Tamas Zolnai fixed this misbehaviour
> in po parser in master and libreoffice-4-1. I guess you are compiling
> LibreOffice 4.0.x


Yes, I did and so comments at the end of the files doesn't make the parser
to skip strings, but warnings are still alive. It can be helpful to avoid
useless lines from git repository. So these warnings can appear in 4.1 too,
but strings are merged, as long as there are no other problem.
However as I see this is not true.

For example:
msgid "There are no pages to be printed. Please check your document for
ranges relevant to printing."
msgstr ""
"Attamantanno qoolla dino. Eeggatena bortajekki attamote hakkigeeshsha
buuxi."

If the translation doesn't include end line than it have to stand directly
behind msgstr, like this:
msgstr "Attamantanno qoolla dino. Eeggatena bortajekki attamote
hakkigeeshsha buuxi."

Other example (with the same problem):
"msgid "Click '%OK' to start %PRODUCTNAME %PRODUCTVERSION without
accessibility support, or click '%CANCEL' to exit %PRODUCTNAME
%PRODUCTVERSION."
msgstr ""
"Click '%OK' to start %PRODUCTNAME %PRODUCTVERSION without accessibility "
"support, or click '%CANCEL' to exit %PRODUCTNAME %PRODUCTVERSION.""

Andras, as I remember you said, you use msgcat to get this kind of result.
That's why LO po parser works this kind of po files.

Best regards,
Tamás
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130731/d6118a00/attachment.html>


More information about the LibreOffice mailing list