[evolution-patches] Make folder treeview internationalization work
- From: Christian Neumair <chris gnome-de org>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Make folder treeview internationalization work
- Date: Tue, 01 Jun 2004 23:08:40 +0200
This patch makes the folder treeview internationalization work properly
for stock folders. Screenshots attached.
regs,
Chris
Index: mail/em-folder-tree-model.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-tree-model.c,v
retrieving revision 1.53
diff -u -r1.53 em-folder-tree-model.c
--- mail/em-folder-tree-model.c 28 May 2004 17:04:18 -0000 1.53
+++ mail/em-folder-tree-model.c 1 Jun 2004 20:52:56 -0000
@@ -420,6 +459,7 @@
gboolean load = FALSE;
struct _CamelFolder *folder;
gboolean emitted = FALSE;
+ gboolean do_i18n = FALSE;
if (!fully_loaded)
load = fi->child == NULL && !(fi->flags & (CAMEL_FOLDER_NOCHILDREN | CAMEL_FOLDER_NOINFERIORS));
@@ -450,9 +490,15 @@
}
camel_object_unref(folder);
}
+
+ if (!strcmp (fi->name, N_("Inbox")) ||
+ !strcmp (fi->name, N_("Outbox")) ||
+ !strcmp (fi->name, N_("Drafts")) ||
+ !strcmp (fi->name, N_("Sent")))
+ do_i18n = TRUE;
gtk_tree_store_set ((GtkTreeStore *) model, iter,
- COL_STRING_DISPLAY_NAME, fi->name,
+ COL_STRING_DISPLAY_NAME, do_i18n ? _(fi->name) : fi->name,
COL_POINTER_CAMEL_STORE, si->store,
COL_STRING_FULL_NAME, fi->full_name,
COL_STRING_URI, fi->uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]