aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-07-19 15:52:01 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-07-19 15:52:01 +0800
commite09fba5e09dccff6486fdab0b893303f0716c790 (patch)
tree440cf8f3ee12df634e1ea56996b1b519a9e99876
parent12b63ec4ab27fdfea36a419240dcaa29ae80a73e (diff)
downloadgsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar.gz
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar.bz2
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar.lz
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar.xz
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.tar.zst
gsoc2013-evolution-e09fba5e09dccff6486fdab0b893303f0716c790.zip
Patch by Arunprakash to add missed error messages and marking them
for translation. Fixes #310343. svn path=/trunk/; revision=29795
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 39f65dccaf..9aeb4e33b2 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-19 Arunprakash <arunp@novell.com>
+
+ * gui/widgets/eab-gui-util.c: Added two new entries in array
+ status_to_string for two left out values of EBookStatus. Fixes #310343.
+ (eab_error_dialog): Marked status_str for translation.
+
2005-07-15 Sushma Rai <rsushma@novell.com>
* gui/component/addressbook-migrate.c (migrate_contacts): unref query.
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 7c867ed516..6de89ccafd 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -65,7 +65,9 @@ static const char *status_to_string[] = {
/* E_BOOK_ERROR_TLS_NOT_AVAILABLE */ N_("TLS not Available"),
/* E_BOOK_ERROR_CORBA_EXCEPTION */ NULL,
/* E_BOOK_ERROR_NO_SUCH_SOURCE */ N_("No such source"),
- /* E_BOOK_ERROR_OTHER_ERROR */ N_("Other error")
+ /* E_BOOK_ERROR_OFFLINE_UNAVAILABLE */ N_("Not available in offline mode"),
+ /* E_BOOK_ERROR_OTHER_ERROR */ N_("Other error"),
+ /* E_BOOK_ERROR_INVALID_SERVER_VERSION */ N_("Invalid server version")
};
void
@@ -74,7 +76,7 @@ eab_error_dialog (const char *msg, EBookStatus status)
const char *status_str = status_to_string [status];
if (status_str)
- e_error_run (NULL, "addressbook:generic-error", msg, status_str, NULL);
+ e_error_run (NULL, "addressbook:generic-error", msg, _(status_str), NULL);
}
void