diff options
author | Milan Crha <mcrha@redhat.com> | 2009-01-22 03:30:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-01-22 03:30:36 +0800 |
commit | 4b2e8a5ec5ac91f0209a83587c8b81787fff9875 (patch) | |
tree | 81e74ee894b2479e49ed64cb0e2bdc2d98a24bee /calendar/gui/tasks-component.c | |
parent | cd893ae5616862e9ecb725408fcadb64c486d823 (diff) | |
download | gsoc2013-evolution-4b2e8a5ec5ac91f0209a83587c8b81787fff9875.tar.gz gsoc2013-evolution-4b2e8a5ec5ac91f0209a83587c8b81787fff9875.tar.zst gsoc2013-evolution-4b2e8a5ec5ac91f0209a83587c8b81787fff9875.zip |
** Fix for bug #362754
2009-01-21 Milan Crha <mcrha@redhat.com>
** Fix for bug #362754
* addressbook/gui/component/addressbook-component.c: (ensure_sources):
* calendar/gui/tasks-component.c: (ensure_sources):
* calendar/gui/memos-component.c: (ensure_sources):
* calendar/gui/calendar-component.c: (ensure_sources):
Ensure to show default groups and sources with actual
localized name, not the one it was stored last time.
svn path=/trunk/; revision=37117
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r-- | calendar/gui/tasks-component.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 823b4ffa11..9300068796 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -189,6 +189,9 @@ ensure_sources (TasksComponent *component) and too late to prevent user seeing "Can not Open ... because of invalid uri" error.*/ e_source_list_sync (source_list,NULL); } + + /* ensure the group name is in current locale, not read from configuration */ + e_source_group_set_name (on_this_computer, _("On This Computer")); } else { /* create the local source group */ @@ -198,7 +201,10 @@ ensure_sources (TasksComponent *component) on_this_computer = group; } - if (!personal_source) { + if (personal_source) { + /* ensure the source name is in current locale, not read from configuration */ + e_source_set_name (personal_source, _("Personal")); + } else { GSList *tasks_selected; /* Create the default Person addressbook */ ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI); @@ -232,6 +238,9 @@ ensure_sources (TasksComponent *component) e_source_list_add_group (source_list, group, -1); on_the_web = group; + } else { + /* ensure the group name is in current locale, not read from configuration */ + e_source_group_set_name (on_the_web, _("On The Web")); } component->priv->source_list = source_list; |