aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-01 03:03:12 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-01 03:03:12 +0800
commitfee5916b60c605ff5086d8fdc2a85c5ea21351f6 (patch)
tree4feaede1cf070448a32bd0ab846908e47747ceb7 /addressbook/gui/component
parentcd5ff486fb02451645f8b4b39608edca2da5e4a2 (diff)
downloadgsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.tar.gz
gsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.tar.zst
gsoc2013-evolution-fee5916b60c605ff5086d8fdc2a85c5ea21351f6.zip
Merge revisions 37108:37199 from trunk.
svn path=/branches/kill-bonobo/; revision=37200
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/e-book-shell-module.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/addressbook/gui/component/e-book-shell-module.c b/addressbook/gui/component/e-book-shell-module.c
index 139f55ffd4..9903c762fd 100644
--- a/addressbook/gui/component/e-book-shell-module.c
+++ b/addressbook/gui/component/e-book-shell-module.c
@@ -74,6 +74,7 @@ book_module_ensure_sources (EShellModule *shell_module)
ESource *personal;
GSList *groups, *iter;
const gchar *data_dir;
+ const gchar *name;
gchar *base_uri;
gchar *filename;
@@ -120,10 +121,15 @@ book_module_ensure_sources (EShellModule *shell_module)
on_ldap_servers = source_group;
}
+ name = _("On This Computer");
+
if (on_this_computer != NULL) {
GSList *sources;
const gchar *group_base_uri;
+ /* Force the group name to the current locale. */
+ e_source_group_set_name (on_this_computer, name);
+
sources = e_source_group_peek_sources (on_this_computer);
group_base_uri = e_source_group_peek_base_uri (on_this_computer);
@@ -159,34 +165,38 @@ book_module_ensure_sources (EShellModule *shell_module)
} else {
ESourceGroup *source_group;
- const gchar *name;
- name = _("On This Computer");
source_group = e_source_group_new (name, base_uri);
e_source_list_add_group (source_list, source_group, -1);
g_object_unref (source_group);
}
+ name = _("Personal");
+
if (personal == NULL) {
ESource *source;
- const gchar *name;
/* Create the default Personal address book. */
- name = _("Personal");
source = e_source_new (name, PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, source, -1);
e_source_set_property (source, "completion", "true");
g_object_unref (source);
+ } else {
+ /* Force the source name to the current locale. */
+ e_source_set_name (personal, name);
}
+ name = _("On LDAP Servers");
+
if (on_ldap_servers == NULL) {
ESourceGroup *source_group;
- const gchar *name;
- name = _("On LDAP Servers");
source_group = e_source_group_new (name, LDAP_BASE_URI);
e_source_list_add_group (source_list, source_group, -1);
g_object_unref (source_group);
+ } else {
+ /* Force the source name to the current locale. */
+ e_source_set_name (on_ldap_servers, name);
}
g_free (base_uri);