From d5bcce12980925e4e78a5bb093c0d30e7a72fb4c Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Tue, 11 Dec 2007 20:48:06 +0000 Subject: [PATCH] #500026: Add configure argument for packagers to have correct package name reported on missing qt3-wizard. Because gnucash is a GTK+ application and HBCI setup wizard for aqbanking is a Qt stuff, most distribution split aqbanking packages to more sub-packages. This patch adds possibility to change string of package name displayed in the reported error without need of distro-specific patches breaking I18N. It could be done in compile time using --with-qt3-wizard-package=name. Patch by Stanislav Brabec . Signed-off-by: Christian Stimming BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16635 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 4 ++++ src/import-export/hbci/druid-hbci-initial.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index a9a43dc4bd..f824ea23e0 100644 --- a/configure.in +++ b/configure.in @@ -543,6 +543,10 @@ AC_ARG_ENABLE(qof, AC_ARG_WITH(qof, [ --with-qof=path prefix for Query Object Framework - QOF (auto)], [gnc_with_qof=$withval], [gnc_with_qof=yes]) +AC_ARG_WITH(qt3_wizard_package, + [ --with-qt3-wizard-package=name name of package containing qt3-wizard (aqbanking)], + [QT3_WIZARD_PACKAGE=$withval], [QT3_WIZARD_PACKAGE=aqbanking]) +AC_DEFINE_UNQUOTED([QT3_WIZARD_PACKAGE],["$QT3_WIZARD_PACKAGE"],[Name of package containing qt3-wizard.]) # GnuCash builds without deprecated QOF code so needs latest version. QOF_REQUIRED=0.6.4 diff --git a/src/import-export/hbci/druid-hbci-initial.c b/src/import-export/hbci/druid-hbci-initial.c index 1fbd5c4144..d6aec8c9b2 100644 --- a/src/import-export/hbci/druid-hbci-initial.c +++ b/src/import-export/hbci/druid-hbci-initial.c @@ -688,10 +688,10 @@ on_aqhbci_button (GtkButton *button, (info->window, _("The external program \"AqBanking Setup Wizard\" has not " "been found. \n\n" - "The aqbanking package should include the " + "The %s package should include the " "program \"qt3-wizard\". Please check your installation to " "ensure this program is present. On some distributions this " - "may require installing additional packages.")); + "may require installing additional packages."), QT3_WIZARD_PACKAGE); druid_disable_next_button(info); } g_free (backend_name);