Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * 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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
40fc52b322
commit
4801096f61
@ -1,7 +1,9 @@
|
||||
2002-02-15 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* 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.
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user