aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorAntonio Xu <antonio.xu@sun.com>2005-04-07 14:04:44 +0800
committerAntonio Xu <anto@src.gnome.org>2005-04-07 14:04:44 +0800
commitbb04d01d10caf278941ae3edf88e9913aeac4c3b (patch)
treef1a33b6768efef2d094c773eb878bf51182215c3 /shell
parentf4810d14e2f9c43d70b88695eb98d646532d017e (diff)
downloadgsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.gz
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.bz2
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.lz
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.xz
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.zst
gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.zip
Commit Yong Sun's patch which was reviewed by NotZed
2005-04-07 Antonio Xu <antonio.xu@sun.com> Commit Yong Sun's patch which was reviewed by NotZed svn path=/trunk/; revision=29176
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-importer.c18
2 files changed, 17 insertions, 6 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index bd0f87d7c4..f0a8a3d375 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-06 Yong Sun <Yong.Sun@Sun.COM>
+
+ * e-shell-importer.c: (get_name_from_component_info):
+ Return the localized name of the supported file type.
+
2005-03-21 JP Rosevear <jpr@novell.com>
Fixes #73066
diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c
index b8f9fd019c..9e4b2c5d96 100644
--- a/shell/e-shell-importer.c
+++ b/shell/e-shell-importer.c
@@ -318,14 +318,20 @@ free_iid_list (GList *list)
static const char *
get_name_from_component_info (const Bonobo_ServerInfo *info)
{
- Bonobo_ActivationProperty *property;
- const char *name;
+ const char *name = NULL;
- property = bonobo_server_info_prop_find ((Bonobo_ServerInfo *) info, "evolution:menu_name");
- if (property == NULL || property->v._d != Bonobo_ACTIVATION_P_STRING)
- return NULL;
+ GSList *language_list = NULL;
+ const GList *l = gnome_i18n_get_language_list("LC_MESSAGES");
- name = property->v._u.value_string;
+ /* copy this piece of code from e-shell-settings-dialog.c:load_pages () */
+ for (language_list=NULL;l;l=l->next)
+ language_list = g_slist_append(language_list, l->data);
+
+ name = bonobo_server_info_prop_lookup ((Bonobo_ServerInfo *) info,
+ "evolution:menu_name",
+ language_list);
+
+ g_slist_free (language_list);
return name;
}