aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-22 03:30:36 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-22 03:30:36 +0800
commit4b2e8a5ec5ac91f0209a83587c8b81787fff9875 (patch)
tree81e74ee894b2479e49ed64cb0e2bdc2d98a24bee
parentcd893ae5616862e9ecb725408fcadb64c486d823 (diff)
downloadgsoc2013-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
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/component/addressbook-component.c13
-rw-r--r--calendar/ChangeLog10
-rw-r--r--calendar/gui/calendar-component.c30
-rw-r--r--calendar/gui/memos-component.c15
-rw-r--r--calendar/gui/tasks-component.c11
6 files changed, 75 insertions, 12 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 2255936197..a47ad53c04 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-21 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #362754
+
+ * gui/component/addressbook-component.c: (ensure_sources):
+ Ensure to show default groups and sources with actual
+ localized name, not the one it was stored last time.
+
2009-01-11 Matthew Barnes <mbarnes@redhat.com>
* gui/widgets/eab-contact-display.c (eab_uri_popup_link_open),
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index bd522b97d3..13c386fbba 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -137,6 +137,9 @@ ensure_sources (AddressbookComponent *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 */
@@ -146,7 +149,10 @@ ensure_sources (AddressbookComponent *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 {
/* Create the default Person addressbook */
ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, source, -1);
@@ -157,7 +163,10 @@ ensure_sources (AddressbookComponent *component)
personal_source = source;
}
- if (!on_ldap_servers) {
+ if (on_ldap_servers) {
+ /* ensure the group name is in current locale, not read from configuration */
+ e_source_group_set_name (on_ldap_servers, _("On LDAP Servers"));
+ } else {
/* Create the LDAP source group */
group = e_source_group_new (_("On LDAP Servers"), LDAP_BASE_URI);
e_source_list_add_group (source_list, group, -1);
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 2b7f4ec612..8b39b3b09a 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,13 @@
+2009-01-21 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #362754
+
+ * gui/tasks-component.c: (ensure_sources):
+ * gui/memos-component.c: (ensure_sources):
+ * 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.
+
2009-01-21 Suman Manjunath <msuman@novell.com>
** Fix for bug #541209
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 0e1550b5f0..a3a9a8b345 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -238,6 +238,9 @@ ensure_sources (CalendarComponent *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 */
@@ -247,7 +250,10 @@ ensure_sources (CalendarComponent *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 {
char *primary_calendar = calendar_config_get_primary_calendar();
GSList *calendars_selected;
@@ -276,13 +282,17 @@ ensure_sources (CalendarComponent *component)
e_source_set_color_spec (personal_source, "#BECEDD");
}
- if (!on_the_web) {
+ if (on_the_web) {
+ /* ensure the group name is in current locale, not read from configuration */
+ e_source_group_set_name (on_the_web, _("On The Web"));
+ } else {
/* Create the On the web source group */
group = e_source_group_new (_("On The Web"), WEB_BASE_URI);
e_source_list_add_group (source_list, group, -1);
on_the_web = group;
}
+
if (contacts) {
GSList *sources = e_source_group_peek_sources (contacts);
if (sources) {
@@ -301,8 +311,10 @@ ensure_sources (CalendarComponent *component)
g_slist_free (l);
}
}
- }
- else {
+
+ /* ensure the group name is in current locale, not read from configuration */
+ e_source_group_set_name (contacts, _("Contacts"));
+ } else {
/* Create the contacts group */
group = e_source_group_new (_("Contacts"), CONTACTS_BASE_URI);
e_source_list_add_group (source_list, group, -1);
@@ -314,7 +326,10 @@ ensure_sources (CalendarComponent *component)
e_source_group_set_property (contacts, "create_source", "no");
g_free (create_source);
- if (!birthdays_source) {
+ if (birthdays_source) {
+ /* ensure the source name is in current locale, not read from configuration */
+ e_source_set_name (birthdays_source, _("Birthdays & Anniversaries"));
+ } else {
birthdays_source = e_source_new (_("Birthdays & Anniversaries"), "/");
e_source_group_add_source (contacts, birthdays_source, -1);
g_object_unref (birthdays_source);
@@ -326,7 +341,10 @@ ensure_sources (CalendarComponent *component)
if (e_source_peek_color_spec (birthdays_source) == NULL)
e_source_set_color_spec (birthdays_source, "#DDBECE");
- if (!weather) {
+ if (weather) {
+ /* ensure the group name is in current locale, not read from configuration */
+ e_source_group_set_name (weather, _("Weather"));
+ } else {
/* Create the weather group */
group = e_source_group_new (_("Weather"), WEATHER_BASE_URI);
e_source_list_add_group (source_list, group, -1);
diff --git a/calendar/gui/memos-component.c b/calendar/gui/memos-component.c
index fea1a53fff..02c1df50ff 100644
--- a/calendar/gui/memos-component.c
+++ b/calendar/gui/memos-component.c
@@ -193,6 +193,9 @@ ensure_sources (MemosComponent *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 */
@@ -202,7 +205,10 @@ ensure_sources (MemosComponent *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 *memos_selected;
/* Create the default Person addressbook */
ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
@@ -230,8 +236,11 @@ ensure_sources (MemosComponent *component)
personal_source = source;
}
- if (!on_the_web) {
- /* Create the LDAP source group */
+ if (on_the_web) {
+ /* ensure the group name is in current locale, not read from configuration */
+ e_source_group_set_name (on_the_web, _("On The Web"));
+ } else {
+ /* Create the source group */
group = e_source_group_new (_("On The Web"), WEB_BASE_URI);
e_source_list_add_group (source_list, group, -1);
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;
>2010-09-081-0/+1 * Use the USERS/GROUPS mechanismlth2010-08-121-0/+1 * - Add user/group shellinabox with uid/gid 139jadawin2010-07-051-0/+1 * Add 'saned' user/group the Right Way.stefan2010-06-281-0/+1 * Fix missing fields in previous commitjpaetzel2010-06-131-1/+1 * - Add activemq for new port net/activemqwen2010-06-121-0/+1 * Add net/freeswitch-core, part of a revamp to the freeswitch portsjpaetzel2010-06-121-0/+1 * - fix Text for meta1dinoex2010-06-041-1/+1 * - Update to 0.7.3pav2010-05-141-0/+1 * Change the home directory of p4admin to /nonexistent because it is not needed.rene2010-05-101-1/+1 * - Added user and group for Drizzle database serverglarkin2010-04-291-0/+1 * - Reserve kumofs uid/gid.kuriyama2010-04-261-0/+1 * - Update to v1.2.6abrix2010-04-241-1/+1 * Minbif aims to use the libpurple library from the Pidgin projectbeat2010-04-151-0/+1 * - Add user and group mfs for MooseFS portwen2010-04-071-0/+1 * - Fix malformed lines, per new portlint(1) checkpav2010-04-061-4/+4 * - reserver GID/UID 924 for upcomming mail/postpalsitetcu2010-03-131-0/+1 * Massive cleanup of the Munin ports:des2010-02-251-0/+1 * - Add user and group for audio/liquidsoapwen2010-02-011-0/+1 * - Update Wolfpack Empire to 4.3.23johans2009-12-281-0/+1 * - Reserve UID/GID 137 for audio/musicpdpav2009-12-071-0/+1 * - Prepare for add new port databases/mongodbwen2009-11-191-0/+1 * - Add 444 for callweaverpav2009-09-181-0/+1 * - Update to 0.8.5beat2009-09-181-0/+1 * - Add UID/GID:211 for devel/py-gitosisnivit2009-09-161-0/+1 * - Fix typo in directory name for undernet user.flz2009-09-111-2/+2 * Add haldaemon with UID/GID 560.flz2009-09-071-0/+1 * Add UID and GID forgotten while adding net-mgmt/noc.bsam2009-08-181-0/+1 * - unbound does not use `unbound' group anymore, but `daemmon' insteadsem2009-08-171-1/+1 * Remove entries for security/trans-proxy-tor and security/dns-proxy-torerwin2009-08-161-2/+0 * Add prosody entries to UIDs & GIDs.vanilla2009-08-051-0/+1 * Register user/group "redis" for the port "databases/redis".skv2009-07-281-0/+1 * - Unify path to nologin as /usr/sbin/nologin. This has been done at leastwxs2009-07-251-8/+8 * - Add fossy user/group for devel/fossology.alepulver2009-07-241-0/+1 * -Add transmission.mezz2009-06-201-1/+2 * - Add GID and UID for emulators/virtualbox.beat2009-06-181-0/+1 * - Add couchdb user and group.wxs2009-06-171-0/+1 * - Register net-mgmt/nefurafan2009-04-071-0/+1 * - Register uid and gid for mail/prayerrafan2009-03-171-0/+1 * Reflect the change of UID/GID of ejabberd.delphij2009-03-161-1/+1 * - Updated to 0.21glarkin2009-03-111-1/+1 * Rework on rc script for www/httptunnel.rafan2009-01-301-0/+1 * Register a fixed UID/GID for the user 'dhcpd' and use that instead of astefan2009-01-121-0/+1 * - Add UID and GID entries for net/rabbitmq.wxs2008-10-291-0/+1 * - Fixed logcheck script silent failure in previous commitglarkin2008-09-111-1/+1 * - Fixed left-over directory problemglarkin2008-09-091-0/+1 * - Update pgbouncer to 1.2.3mm2008-08-121-0/+1 * Reserve numbers for databases/frontbase user.edwin2008-06-131-0/+1 * Switch UIDs to master.passwd compatible format.flz2008-05-201-142/+142 * Style fix, $FreeBSD$ line is a comment, so add a leading '#'.flz2008-05-201-1/+1 * Reserve UID and GID for irc/bitlbee.brix2008-05-201-0/+1 * - Add entries for irc/undernet-ircubeech2008-05-011-0/+1 * - Reserve GID/UID 59 for dns/unboundsem2008-04-291-0/+1 * Reserve 814 for sysutils/puppet*pav2008-04-111-0/+1 * - Add GID and UID for www/openacs and www/openacs-dotlrnmm2008-04-031-0/+2 * - Add GID and UID for net/freeradius2mm2008-04-021-0/+1 * * Don't need p5-Digest-MD5; p5-libwww dependency takes care of that.koitsu2008-03-101-1/+1 * - Register UID for net/phpldapadmin, net/phpldapadmin098rafan2008-03-091-0/+1 * - Add GID and UID for net-im/openfiremiwi2008-03-081-0/+1 * Remove IGNORE; add UID 141 to ports/UIDs, and remove unnecessary Time::HiReskoitsu2008-02-191-0/+1 * - Sort UIDsmiwi2008-02-171-2/+2 * - add hobbit with id 280dinoex2008-01-281-0/+1 * - Reserve UID/GID 240 and 241 for aprsddb2008-01-241-0/+2 * Changes:miwi2008-01-211-0/+1 * Add 913 for _relayd.kuriyama2008-01-211-0/+1 * Inconsistent format of lines in /usr/ports/UIDsedwin2008-01-191-4/+4 * - Reserve uid/gid for net/iodine 0.4.1_1rafan2008-01-111-0/+1 * Unify nologin path to /usr/sbin/nologinedwin2007-09-301-75/+75 * Add _sj3 for japanese/sj3 with UID 912edwin2007-09-091-1/+2 * Add 911 for iserv (See PR ports/114017)edwin2007-09-071-0/+1 * Reserve a user and group ID for the stunnel daemon.roam2007-08-281-0/+1 * - Update to 1.28beech2007-06-281-0/+1 * - Move zabbix from UID 112 to 122 to avoid conflict with dccsat2007-06-221-0/+1 * - add MeTA1dinoex2007-06-101-5/+5 * - Update to 0.9.8miwi2007-05-301-0/+1 * Reserve a UID for pulse and a GID for pulse and pulse-access. These are neededmarcus2007-04-301-0/+1 * - Sorted otrs correctmiwi2007-04-211-1/+1 * Register UID and UID for mail/nullmailer.clive2007-04-211-1/+2 * - Add UID/GID for devel/otrsmiwi2007-04-111-0/+1 * - Use static gid/uid.stas2007-04-111-0/+1 * (second attempt)naddy2007-04-101-1/+1 * reserve _ntp UID/GID for OpenNTPDnaddy2007-04-101-0/+1 * - Give irc/hybserv a unique UID/GIDlaszlof2007-03-311-0/+1 * Register UID and GID for net-mgmt/netdisco.shaun2007-03-281-0/+1 * Correct a copy-paste problem when allocating the polkit UID, and use a uniquemarcus2007-03-241-0/+1 * Reserve UID and GID for net-mgmt/nav.des2007-03-131-0/+1 * Add GID and UID for OpenBSD spamd (mail/spamd).delphij2007-03-091-0/+1 * - change smx entries to "/usr/sbin/nologin"dinoex2007-02-171-5/+5 * - add smmspdinoex2007-02-171-0/+1 * - Reserve UID/GID 312 for sphinxpav2007-01-311-0/+1 * - Reserve UID/GID 181 for nagiospav2007-01-281-0/+1 * - Register UID/GID for pdns_recursorpav2007-01-191-0/+1 * - Add user/group for sysutils/fcronrafan2007-01-171-0/+1