if (e_book_get_current_sync_op (book) == NULL) {
g_mutex_unlock (book->priv->mutex);
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_COULD_NOT_CANCEL,
- _("e_book_cancel: there is no current operation"));
+ _("%s: there is no current operation"), "e_book_cacnel");
return FALSE;
}
}
else {
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_COULD_NOT_CANCEL,
- _("e_book_cancel: couldn't cancel"));
+ _("%s: couldn't cancel"), "e_book_cancel");
rv = FALSE;
}
/* Cancelled */
book->priv->load_state = E_BOOK_SOURCE_NOT_LOADED;
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_CANCELLED,
- _("e_book_open: cancelled"));
+ _("%s: cancelled"), "e_book_open");
return FALSE;
}
else if (status == E_BOOK_ERROR_OK) {
uri = e_source_get_uri (source);
if (!uri) {
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_OTHER_ERROR,
- _("e_book_load_uri: Invalid source."));
+ _("%s: Invalid source."), "e_book_load_uri");
return FALSE;
}
factories = activate_factories_for_uri (book, uri);
if (!factories) {
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_PROTOCOL_NOT_SUPPORTED,
- _("e_book_load_uri: no factories available for uri `%s'"), uri);
+ _("%s: no factories available for uri `%s'"), "e_book_load_uri", uri);
return FALSE;
}
if (book->priv->listener == NULL) {
g_warning ("e_book_load_uri: Could not create EBookListener!\n");
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_OTHER_ERROR,
- _("e_book_load_uri: Could not create EBookListener"));
+ _("%s: Could not create EBookListener"), "e_book_load_uri");
return FALSE;
}
book->priv->listener_signal = g_signal_connect_object (book->priv->listener, "response",
g_object_unref (*book);
*book = NULL;
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_NO_SELF_CONTACT,
- _("e_book_get_self: there was no self contact uid stored in gconf"));
+ _("%s: there was no self contact uid stored in gconf"), "e_book_get_self");
return FALSE;
}
source = e_source_list_peek_source_by_uid (sources, uid);
if (!source) {
g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_NO_SUCH_SOURCE,
- _("e_book_set_default_source: there was no source for uid `%s' stored in gconf."), uid);
+ _("%s: there was no source for uid `%s' stored in gconf."), "e_book_set_default_source", uid);
g_object_unref (sources);
return FALSE;
}