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 341194 - Purge-Dialog not translated
Purge-Dialog not translated
Status: RESOLVED DUPLICATE of bug 408579
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 377068 377853 (view as bug list)
Depends on: 342702
Blocks: 236276
 
 
Reported: 2006-05-09 21:50 UTC by Sebastien Bacher
Modified: 2009-11-26 19:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
proposed patch by dholbach (1.72 KB, patch)
2006-07-18 10:41 UTC, André Klapper
reviewed Details | Review

Description Sebastien Bacher 2006-05-09 21:50:12 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/evolution/+bug/43785

"If you try to purge a folder (Ctrl+E), you get a confirm dialog. Even as Evolution is called to be fully translated to German, these dialog is still English..."
Comment 1 André Klapper 2006-05-10 00:34:09 UTC
hmm... i can reproduce this here with both german and zh_CN.utf8, though the string is translated in the po files.
strange.
Comment 2 Sebastien Bacher 2006-05-23 12:26:24 UTC
After some discussion on the #ubuntu-desktop it looks like the issue is due to the fact that the source strings use """ where the code (e-util/e-error.c,) get the string parsed by libxml first, so the gettext call is made on a string with " instead of " and that variant has no translation ... 
Comment 3 Sebastien Bacher 2006-05-23 12:27:21 UTC
$ grep "&quot" /usr/share/evolution/2.6/errors/* | wc -l
66

The issue is likely to be the same for those 66 strings actually
Comment 4 Daniel Holbach 2006-07-14 11:09:56 UTC
http://librarian.launchpad.net/2867135/21_hack_escape_quotes.patch is the proposed patch.
Comment 5 Danilo Segan 2006-07-18 10:26:05 UTC
Note that intltool won't (un)escape anything else either. So you may need to watch for &, <, > and similar as well. It's better to turn entity replacement
 off in the parser (may need to use ctxt-stuff in libxml2 for this, though).
Comment 6 Danilo Segan 2006-07-18 10:26:43 UTC
s/better/easier and safer/
Comment 7 André Klapper 2006-07-18 10:41:53 UTC
Created attachment 69101 [details] [review]
proposed patch by dholbach

adding the patch to bugzilla instead of a link, so it will be indexed at the patch overview page
Comment 8 Sebastien Bacher 2006-08-04 15:05:58 UTC
The patch has been written by Gary Coady <garycoady@ubuntu.com> and he describes it as a hack rather than a proper fix for it
Comment 9 André Klapper 2006-11-20 11:00:29 UTC
*** Bug 377068 has been marked as a duplicate of this bug. ***
Comment 10 Wouter Bolsterlee (uws) 2006-11-20 12:35:24 UTC
From bug #377068:

e-util/e-system.error is generated from e-system.error.xml using intltool which
should merge the translations into the source file. This does NOT work for some
obscure reason, resulting in untranslated messages in the generated
e-system.error file, and hence a non-localized error message in the interface.

and:

elin:/opt/gnome-2-16/src/evolution/e-util > rm e-system.error
rm: remove regular file `e-system.error'? y
elin:/opt/gnome-2-16/src/evolution/e-util > make
LC_ALL=C ../intltool-merge -x -u /tmp e-system.error.xml e-system.error
Merging translations into e-system.error.
CREATED e-system.error
make  all-am
make[1]: Entering directory `/opt/gnome-2-16/src/evolution/e-util'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/opt/gnome-2-16/src/evolution/e-util'
elin:/opt/gnome-2-16/src/evolution/e-util > cat e-system.error
<?xml version="1.0" encoding="UTF-8"?>
<error-list domain="system">

 <error type="error" id="ask-save-file-exists-overwrite"
default="GTK_RESPONSE_CANCEL">
  <title>Overwrite file?</title>
  <primary>File exists &quot;{0}&quot;.</primary>
  <secondary>Do you wish to overwrite it?</secondary>
  <button stock="gtk-cancel" response="GTK_RESPONSE_CANCEL"/>
  <button response="GTK_RESPONSE_OK" label="_Overwrite"></button>
 </error>

<!-- snip -->
</error-list>
Comment 11 André Klapper 2006-11-22 04:21:04 UTC
*** Bug 377853 has been marked as a duplicate of this bug. ***
Comment 12 Srinivasa Ragavan 2007-08-23 09:54:22 UTC
Im not sure about this. Comment #10 seems like a non-evolution issue to me. Though the patch seems to work around the unescaping part. This may work around the problem in evolution.
Comment 13 C de-Avillez 2008-03-07 10:29:36 UTC
srag, ping -- should we go ahead and bypass the issue (and take care of this unlocalised string)?
Comment 14 Milan Crha 2009-11-26 19:43:39 UTC
This had been fixed in other bug by replacing escaped characters in the error.xml file. See the bug itself for more information and any reference.

*** This bug has been marked as a duplicate of bug 408579 ***