From bb04d01d10caf278941ae3edf88e9913aeac4c3b Mon Sep 17 00:00:00 2001 From: Antonio Xu Date: Thu, 7 Apr 2005 06:04:44 +0000 Subject: Commit Yong Sun's patch which was reviewed by NotZed 2005-04-07 Antonio Xu Commit Yong Sun's patch which was reviewed by NotZed svn path=/trunk/; revision=29176 --- shell/e-shell-importer.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'shell/e-shell-importer.c') 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; } -- cgit v1.2.3