From 479e75883911fc03b2b7d09d69f48faf0f3812eb Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 25 May 2004 14:57:04 +0000 Subject: Generate the addressbook-errors.xml.h file and install the xml file and 2004-05-25 Jeffrey Stedfast * Makefile.am: Generate the addressbook-errors.xml.h file and install the xml file and all that jazz. * addressbook-errors.xml: New error xml file. * gui/widgets/e-addressbook-view.c (backend_died): Use e_error_run(). * gui/widgets/eab-gui-util.c (eab_error_dialog): Use e_error_run(). (eab_load_error_dialog): Same. (eab_search_result_dialog): Same. (eab_prompt_save_dialog): Same. (save_it): Same. * gui/contact-editor/e-contact-editor.c (categories_clicked): Use e_error_run(). (e_contact_editor_is_valid): Same. (save_contact): Same. * gui/component/addressbook-view.c (delete_addressbook_cb): Use e_error_run(). * gui/component/addressbook-config.c (addressbook_ldap_init): Use e_error_run(). (addressbook_ldap_auth): Same. (addressbook_root_dse_query): Same. (do_ldap_root_dse_query): Same. (do_schema_query): Same. svn path=/trunk/; revision=26077 --- addressbook/ChangeLog | 32 +++++ addressbook/Makefile.am | 18 ++- addressbook/addressbook-errors.xml | 81 +++++++++++ addressbook/addressbook-errors.xml.h | 55 ++++++++ addressbook/gui/component/addressbook-config.c | 71 +++------- addressbook/gui/component/addressbook-view.c | 15 +- addressbook/gui/contact-editor/e-contact-editor.c | 48 ++----- addressbook/gui/widgets/e-addressbook-view.c | 10 +- addressbook/gui/widgets/eab-gui-util.c | 160 ++++++---------------- 9 files changed, 261 insertions(+), 229 deletions(-) create mode 100644 addressbook/addressbook-errors.xml create mode 100644 addressbook/addressbook-errors.xml.h (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 9848001dfc..a9eef79892 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,35 @@ +2004-05-25 Jeffrey Stedfast + + * Makefile.am: Generate the addressbook-errors.xml.h file and + install the xml file and all that jazz. + + * addressbook-errors.xml: New error xml file. + + * gui/widgets/e-addressbook-view.c (backend_died): Use + e_error_run(). + + * gui/widgets/eab-gui-util.c (eab_error_dialog): Use + e_error_run(). + (eab_load_error_dialog): Same. + (eab_search_result_dialog): Same. + (eab_prompt_save_dialog): Same. + (save_it): Same. + + * gui/contact-editor/e-contact-editor.c (categories_clicked): Use + e_error_run(). + (e_contact_editor_is_valid): Same. + (save_contact): Same. + + * gui/component/addressbook-view.c (delete_addressbook_cb): Use + e_error_run(). + + * gui/component/addressbook-config.c (addressbook_ldap_init): Use + e_error_run(). + (addressbook_ldap_auth): Same. + (addressbook_root_dse_query): Same. + (do_ldap_root_dse_query): Same. + (do_schema_query): Same. + 2004-05-24 Chris Toshok * Makefile.am (SUBDIRS): add tools back to the build. diff --git a/addressbook/Makefile.am b/addressbook/Makefile.am index d307057f02..4fde08a4a9 100644 --- a/addressbook/Makefile.am +++ b/addressbook/Makefile.am @@ -5,5 +5,19 @@ endif SUBDIRS = \ util printing gui importers tools $(CONDUIT_SUBDIR) -EXTRA_DIST = \ - ChangeLog.pre-1-4 +error_DATA = addressbook-errors.xml +error_i18n = $(error_DATA:.xml=.xml.h) +errordir = $(privdatadir)/errors +%.xml.h: %.xml + $(top_builddir)/e-util/e-error-tool $^ + +EXTRA_DIST = \ + ChangeLog.pre-1-4 \ + $(error_DATA) + +dist-hook: + cd $(distdir); rm -f $(BUILT_SOURCES) + +BUILT_SOURCES = $(error_i18n) + +CLEANFILES = $(BUILT_SOURCES) diff --git a/addressbook/addressbook-errors.xml b/addressbook/addressbook-errors.xml new file mode 100644 index 0000000000..b574eeb086 --- /dev/null +++ b/addressbook/addressbook-errors.xml @@ -0,0 +1,81 @@ + + + + + This addressbook could not be opened. + This addressbook server might unreachable or the server name may be misspelled or your network connection could be down. + + + + Failed to authenticate with LDAP server. + Check to make sure your password is spelled correctly and that you are using a supported login method. Remember that many passwords are case sensitive; your caps lock might be on. + + + + This addressbook server does not have any suggested search bases. + This LDAP server may use an older version of LDAP, which does not support this functionality or it may be misconfigured. Ask your administrator for supported search bases. + + + + This server does not support LDAPv3 schema information. + + + + Could not get schema information for LDAP server. + + + + LDAP server did not respond with valid schema information. + + + + Could not remove addressbook. + {0} + + + + Category editor not available. + + + + {0} + {1} + + + + Unable to open addressbook + Error loading addressbook. + {0} + + + + Unable to perform search. + {0} + + + + Would you like to save your changes? + You have made modifications to this contact. Do you want to save these changes? +