Bugfix in SQL backend and an intl. fix

Matthew Vanecek mevanecek@yahoo.com
23 Nov 2002 14:06:43 -0600


--=-n93JjUtOHnqgnmaTJQbe
Content-Type: multipart/mixed; boundary="=-j2oIDlWwo330fnw1CbPr"


--=-j2oIDlWwo330fnw1CbPr
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Please apply the attached patch to CVS.  It fixes a bug where I left out
an argument in the SQL backend, and a couple of minor
internationalization fixes.  Very minor, but the bugs prevent
PostgresBackend.c from compiling.

Thanks,
--=20
Matthew Vanecek
perl -e 'print $i=3Dpack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
***************************************************************************=
*****
For 93 million miles, there is nothing between the sun and my shadow except=
 me.
I'm always getting in the way of something...

--=-j2oIDlWwo330fnw1CbPr
Content-Type: application/DEFANGED-0; name="bugs_diff.DEFANGED-0"; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="bugs_diff.DEFANGED-0"

? intl/gettext.h
? intl/libgettext.h
Index: ChangeLog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1180
diff -u -r1.1180 ChangeLog
--- ChangeLog	23 Nov 2002 10:53:09 -0000	1.1180
+++ ChangeLog	23 Nov 2002 19:37:02 -0000
@@ -1,3 +1,13 @@
+2002-11-23  Matthew Vanecek <mevanecek@yahoo.com>
+	* src/engine/Account.c (xaccAccountCommitEdit): Internationalize
+	the PWARN_GUI() string 	argument.
+
+	* src/backend/postgres/PostgresBackend.c: Added messages.h to support
+	string internationalization.
+=09
+	* src/backend/postgres/PostgresBackend.c (pgend_session_begin):=20
+	an xaccBackendSetMessage() call was missing the Backend argument.
+=09
 2002-11-23  David Hampton  <hampton@employees.org>
=20
 	* src/import-export/qif-import/qif-merge-groups.scm: Add a new
Index: src/backend/postgres/PostgresBackend.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvs/cvsroot/gnucash/src/backend/postgres/PostgresBackend.c,v
retrieving revision 1.38
diff -u -r1.38 PostgresBackend.c
--- src/backend/postgres/PostgresBackend.c	17 Nov 2002 21:31:47 -0000	1.38
+++ src/backend/postgres/PostgresBackend.c	23 Nov 2002 19:37:11 -0000
@@ -64,6 +64,7 @@
 #include "events.h"
 #include "gncquery.h"
 #include "kvp-sql.h"
+#include "messages.h"
 #include "PostgresBackend.h"
 #include "price.h"
 #include "txn.h"
@@ -1842,7 +1843,7 @@
              PWARN ("the following message should be shown in a gui");
              PWARN ("unknown mode %s, will use multi-user mode",
                     start ? start : "(null)");
-             xaccBackendSetMessage(_("Unknown database access mode '%s'. U=
sing default mode: multi-user."),
+             xaccBackendSetMessage((Backend *)be, _("Unknown database acce=
ss mode '%s'. Using default mode: multi-user."),
 			           start ? start : "(null)");
              be->session_mode =3D MODE_EVENT;
          }=20
Index: src/engine/Account.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvs/cvsroot/gnucash/src/engine/Account.c,v
retrieving revision 1.215
diff -u -r1.215 Account.c
--- src/engine/Account.c	17 Nov 2002 21:31:53 -0000	1.215
+++ src/engine/Account.c	23 Nov 2002 19:37:17 -0000
@@ -483,7 +483,7 @@
       err =3D xaccBackendGetMessage(be);
       /* g_strdup here, because err needs to be g_freed if from Backend */
       err =3D err ? err : g_strdup(_("Error message not available"));
-      PWARN_GUI("Error occurred while saving Account:\n%d: %s",
+      PWARN_GUI(_("Error occurred while saving Account:\n%d: %s"),
 		      xaccBackendGetError(be), err);
=20=09=20=20=20=20
       /* push error back onto the stack */

--=-j2oIDlWwo330fnw1CbPr--
--=-n93JjUtOHnqgnmaTJQbe
Content-Type: application/DEFANGED-1; name="signature_asc.DEFANGED-1"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA939/SOMmiB1jXEBsRAuzMAJ4+O4TISBiVWCh1QZpqnGs8ITTauACeP1Cq
d/JLcmYL+bMx0QOnrB9EtHg=
=8YKz
-----END PGP SIGNATURE-----

--=-n93JjUtOHnqgnmaTJQbe--