After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98861 - Version 0.23 doesn't ignore silent line breaks
Version 0.23 doesn't ignore silent line breaks
Status: RESOLVED OBSOLETE
Product: intltool
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: intltool maintainers
intltool maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-18 09:23 UTC by Michal Bukovjan
Modified: 2005-06-10 21:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The affected messages in the source (1.30 KB, text/plain)
2002-11-18 12:08 UTC, Christian Rose
Details

Description Michal Bukovjan 2002-11-18 09:23:58 UTC
After an update to intltool-0.23, we found out that it does not ignore
silent line breaks.

This breaks/makes fuzzy some translations on gnome-2-0 branch.

For examle, current gedit CVS code (gnome-2-0).

- have 100% translated with intltool-0.22
- update to intltool 0.23
- rerun intltool-update cs on the same code, now there are 4 fuzzies.

The fuzzies are the same strings, except it has to \n\n at the end. With
previous version, the \n\n were stripped.
Comment 1 Christian Rose 2002-11-18 12:07:59 UTC
I'll attach the messages that caused the sudden fuzzyness when
upgrading intltool. Note the additional newlines before </atkpropery>;
they are what caused the fuzziness, since they were no longer ignored
but treated as \n\n.
Comment 2 Christian Rose 2002-11-18 12:08:46 UTC
Created attachment 12371 [details]
The affected messages in the source
Comment 3 Christian Rose 2002-11-18 12:15:07 UTC
Ignore the strange characters in this, I was pasting this from a mail
and I'm pretty sure this is where those strange characters come from.
Comment 4 Kenneth Rohde Christiansen 2002-11-21 16:02:09 UTC
So should these be stripped for letting it show up translated? Or what
is the problem? If so I have to fix this :)
Comment 5 Gustavo Maciel Dias Vieira 2002-12-01 17:10:42 UTC
To me, the bug seems to be this:

Given the XML fragment:

<tag>text
</tag>

For this fragment intltool-0.22 generated the string "text" and
intltool-0.23 generated the string "text\n".

Now, forget the fuzziness, string freeze and all.

The question is: For what string is libglade2 (or whatever) asking
gettext a translation? To properly *display* the translated string for
the user, this string should match the one generated by intltool. Is
it "text" or "text\n"?
 
Comment 6 Kenneth Rohde Christiansen 2002-12-02 18:31:46 UTC
Can anyone check this? If glade wants them stripped, then so do we.
Comment 7 Kenneth Rohde Christiansen 2003-01-05 17:00:09 UTC
Can some of you translators check the correct think to do, so we can
fix this. Patch is always appreciated.
Comment 8 Kenneth Rohde Christiansen 2004-01-07 17:25:50 UTC
I am still waiting :-(
Comment 9 Kjartan Maraas 2004-09-01 23:05:55 UTC
Is this problem still here?
Comment 10 Danilo Segan 2004-09-02 09:18:14 UTC
Does anyone know how can this most easily be checked?
Comment 11 Rodney Dawes 2004-09-02 15:49:42 UTC
I am pretty sure that intltool will return "text" for the <tag>text\n</tag> case
above.
Comment 12 Danilo Segan 2004-09-03 07:33:38 UTC
Rodney: indeed, but I'm wondering what's actually *Glade* doing, and what's the
easiest way to check if it does it the same way?
Comment 13 Danilo Segan 2005-06-10 21:31:15 UTC
FWIW, I checked this, and it seems libglade actually cares about spaces, and
intltool-extract does as well in gettext/glade mode.

So, this seems to work ok, so this was probably fixed in the meantime.