From 4801096f6186fe7d3ff06544ab7fb0e635131524 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 16 Feb 2002 00:58:22 +0000 Subject: Ack, strip off the leading '/' char and also only translate if it is a 2002-02-15 Jeffrey Stedfast * mail-account-gui.c (basename_from_uri): Ack, strip off the leading '/' char and also only translate if it is a file: uri, imap folders and other external folders will be named by the user so no need to translate those. svn path=/trunk/; revision=15750 --- mail/ChangeLog | 4 +++- mail/mail-account-gui.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 562d3af8c6..13dad8c05a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,7 +1,9 @@ 2002-02-15 Jeffrey Stedfast * mail-account-gui.c (basename_from_uri): Ack, strip off the - leading '/' char. + leading '/' char and also only translate if it is a file: uri, + imap folders and other external folders will be named by the user + so no need to translate those. * mail-display.c (do_attachment_header): Don't display a down-arrow if the attachment is undisplayable. Fixes bug #6919. diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 092c8c5a99..a6fe52eaf1 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -829,7 +829,10 @@ basename_from_uri (const char *uri) g_assert (base != NULL); /* translate the basename: fixes bug #7160 */ - return g_strdup (_(base + 1)); + if (!strncmp (uri, "file:", 5)) + return g_strdup (_(base + 1)); + else + return g_strdup (base + 1); } static void -- cgit v1.2.3