[Xfce-i18n] Warning: many xfce .po files have been corrupted on Transifex.com

Kevin Brubeck Unhammer unhammer at fsfe.org
Wed Sep 18 19:04:30 CEST 2013


Pjotr Vertaalt <pjotrvertaalt at gmail.com> writes:

> When you download a .po file from Transifex.com and you open it with a
> text editor like Gedit, you see that many files have been partly
> corrupted. Probably because of the transfer of the .po files to
> Transifex.com, some time ago.
>
> The corruption is visible for line breaks: many of those have simply
> disappeared. Take for example this msgid from ORAGE:
>
> #: ../src/appointment.c:2836
> msgid ""
> "These shorthand commands take effect immediately:\n"
> " <D> inserts current date in local date format\n"
> " <T> inserts time and\n"
> " <DT> inserts date and time.\n"
> "\n"
> "These are converted only later when they are seen:\n"
> " <&Ynnnn> is translated to current year minus nnnn.\n"
> "(This can be used for example in birthday reminders to tell how old
> the person will be.)"
>
> In the Dutch .po file, the msgstr has become:
>
> msgstr "Deze steno-opdrachten hebben direct effect:\n <D> voegt
> huidige datum in, in plaatselijke datumopmaak\n <T> voegt tijd in en\n
> <DT> voegt datum en tijd in.\n\nDeze worden pas later omgezet, wanneer
> ze worden gezien:\n <&Ynnnn> wordt vertaald naar huidig jaar minus
> nnnn.\nDit kan bijvoorbeeld worden gebruikt bij
> verjaardagsherinneringen om te melden hoe oud de persoon zal worden.)"
>
> Note that the translated string has become completely garbled by the
> disappearance of the line breaks....

See https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

The line breaks \n are still in the string in the example you give.
What's missing is the breaks in the po file string, but these make no
difference to what's shown to the user.

That is, 

msgstr "foo"
"bar"

and 

msgstr "foobar"

are equivalent (and neither will print a newline to the user).

-- 
Kevin Brubeck Unhammer

Sent from my emacs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce-i18n/attachments/20130918/6dd0d3a1/attachment.sig>


More information about the Xfce-i18n mailing list