diff options
author | Antonio Xu <antonio.xu@sun.com> | 2005-04-07 14:04:44 +0800 |
---|---|---|
committer | Antonio Xu <anto@src.gnome.org> | 2005-04-07 14:04:44 +0800 |
commit | bb04d01d10caf278941ae3edf88e9913aeac4c3b (patch) | |
tree | f1a33b6768efef2d094c773eb878bf51182215c3 /shell/e-shell-importer.c | |
parent | f4810d14e2f9c43d70b88695eb98d646532d017e (diff) | |
download | gsoc2013-evolution-bb04d01d10caf278941ae3edf88e9913aeac4c3b.tar.gz 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/e-shell-importer.c')
-rw-r--r-- | shell/e-shell-importer.c | 18 |
1 files changed, 12 insertions, 6 deletions
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; } |