Generalize the messages marked for translation. Fixes #68712
authorSivaiah Nallagatla <snallagatla@novell.com>
Fri, 28 Jan 2005 08:50:18 +0000 (08:50 +0000)
committerSivaiah Nallagatla <siva@src.gnome.org>
Fri, 28 Jan 2005 08:50:18 +0000 (08:50 +0000)
2005-01-28  Sivaiah Nallagatla <snallagatla@novell.com>

        * libebook/e-book.c (e_book_cancel)
        (do_open) (e_book_load_uri) (fetch_corba_book)
        (e_book_get_self) (e_book_set_default_source) :
        Generalize the messages marked for
        translation. Fixes #68712

addressbook/ChangeLog
addressbook/libebook/e-book.c

index 22c3ab1..8642d96 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-28  Sivaiah Nallagatla <snallagatla@novell.com>
+
+       * libebook/e-book.c (e_book_cancel)
+       (do_open) (e_book_load_uri) (fetch_corba_book)
+       (e_book_get_self) (e_book_set_default_source) :
+       Generalize the messages marked for
+       translation. Fixes #68712
+       
 2005-01-27  Christophe Fergeau  <teuf@gnome.org>
 
        * libebook/e-contact.c (e_contact_pretty_name):
index a0024c3..70f123e 100644 (file)
@@ -2387,7 +2387,7 @@ e_book_cancel (EBook   *book,
        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;
        }
 
@@ -2422,7 +2422,7 @@ e_book_cancel (EBook   *book,
        }
        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;
        }
 
@@ -2521,7 +2521,7 @@ do_open (gboolean sync,
                        /* 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) {
@@ -3063,7 +3063,7 @@ fetch_corba_book (EBook       *book,
        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;
        }
 
@@ -3071,7 +3071,7 @@ fetch_corba_book (EBook       *book,
        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;
        }
 
@@ -3083,7 +3083,7 @@ fetch_corba_book (EBook       *book,
        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",
@@ -3329,7 +3329,7 @@ e_book_get_self (EContact **contact, EBook **book, GError **error)
                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;
        }
 
@@ -3440,7 +3440,7 @@ e_book_set_default_source (ESource *source, GError **error)
        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;
        }