From 921aa25a351f605e54d0d8085eea031fafc1cab2 Mon Sep 17 00:00:00 2001 From: Zbigniew Chyla Date: Fri, 24 Aug 2001 18:22:42 +0000 Subject: Convert names of the default group and shortcuts to UTF-8. 2001-08-23 Zbigniew Chyla * e-shortcuts.c (e_shortcuts_add_default_group): Convert names of the default group and shortcuts to UTF-8. svn path=/trunk/; revision=12441 --- shell/e-shortcuts.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'shell/e-shortcuts.c') diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c index c6c94c461a..914601a46b 100644 --- a/shell/e-shortcuts.c +++ b/shell/e-shortcuts.c @@ -1034,18 +1034,32 @@ e_shortcuts_update_shortcut (EShortcuts *shortcuts, void e_shortcuts_add_default_group (EShortcuts *shortcuts) { + char *utf; + g_return_if_fail (shortcuts != NULL); g_return_if_fail (E_IS_SHORTCUTS (shortcuts)); - e_shortcuts_add_group (shortcuts, -1, _("Shortcuts")); + utf = e_utf8_from_locale_string (_("Shortcuts")); + e_shortcuts_add_group (shortcuts, -1, utf); + g_free (utf); /* FIXME: Inbox shortcut should point to something else for people who won't care about using /Local Folders/Inbox */ - e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/summary", _("Summary"), 0, "summary"); - e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Inbox", _("Inbox"), 0, "mail"); - e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Calendar", _("Calendar"), 0, "calendar"); - e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Tasks", _("Tasks"), 0, "tasks"); - e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Contacts", _("Contacts"), 0, "contacts"); + utf = e_utf8_from_locale_string (_("Summary")); + e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/summary", utf, 0, "summary"); + g_free (utf); + utf = e_utf8_from_locale_string (_("Inbox")); + e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Inbox", utf, 0, "mail"); + g_free (utf); + utf = e_utf8_from_locale_string (_("Calendar")); + e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Calendar", utf, 0, "calendar"); + g_free (utf); + utf = e_utf8_from_locale_string (_("Tasks")); + e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Tasks", utf, 0, "tasks"); + g_free (utf); + utf = e_utf8_from_locale_string (_("Contacts")); + e_shortcuts_add_shortcut (shortcuts, 0, -1, "evolution:/local/Contacts", utf, 0, "contacts"); + g_free (utf); } void -- cgit v1.2.3