diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 3 | ||||
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 52f2eb7ff7..a307bc965c 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -6,6 +6,9 @@ * gui/e-cal-list-view.c: Use gstdio wrappers. + * gui/e-cal-model-tasks.c: Use e_util_utf8_strcasecmp() to do + proper comparison of translated (UTF-8) strings. + 2005-12-15 Srinivasa Ragavan <sragavan@novell.com> ** Fixes bug #324094 diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 5b0adca17e..fd27f2d7b3 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -26,6 +26,7 @@ #include <string.h> #include <gtk/gtkmessagedialog.h> #include <libgnome/gnome-i18n.h> +#include <libedataserver/e-util.h> #include "calendar-config.h" #include "e-cal-model-tasks.h" #include "e-cell-date-edit-text.h" @@ -650,15 +651,15 @@ set_status (ECalModelComponent *comp_data, const char *value) prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_STATUS_PROPERTY); /* an empty string is the same as 'None' */ - if (!value[0] || !g_strcasecmp (value, _("None"))) + if (!value[0] || !e_util_utf8_strcasecmp (value, _("None"))) status = ICAL_STATUS_NONE; - else if (!g_strcasecmp (value, _("Not Started"))) + else if (!e_util_utf8_strcasecmp (value, _("Not Started"))) status = ICAL_STATUS_NEEDSACTION; - else if (!g_strcasecmp (value, _("In Progress"))) + else if (!e_util_utf8_strcasecmp (value, _("In Progress"))) status = ICAL_STATUS_INPROCESS; - else if (!g_strcasecmp (value, _("Completed"))) + else if (!e_util_utf8_strcasecmp (value, _("Completed"))) status = ICAL_STATUS_COMPLETED; - else if (!g_strcasecmp (value, _("Cancelled"))) + else if (!e_util_utf8_strcasecmp (value, _("Cancelled"))) status = ICAL_STATUS_CANCELLED; else { g_warning ("Invalid status: %s\n", value); |