From 69fcd3292b06d938f7904f2a761d6a0e6a4c8ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoit=20Gr=C3=A9goire?= Date: Wed, 9 Oct 2002 04:31:19 +0000 Subject: [PATCH] * src/import-export/Account-matcher.c: Change "Account ID" text to "Full account ID" an make it translatable. * src/import-export/ofx/gnc-ofx-import.c: Use the new account name field of LibOFX to help the user identify the account. Starting now, until furter notice you need LibOFX CVS available at http://sourceforge.net/cvs/?group_id=61170 to build the ofx module. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7293 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 10 ++++++++++ src/import-export/Account-matcher.c | 2 +- src/import-export/ofx/gnc-ofx-import.c | 10 +++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99f4e93ca0..d8b5e926f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002-10-09 Benoit Grégoire + + * src/import-export/Account-matcher.c: Change "Account ID" text + to "Full account ID" and make it translateable. + * src/import-export/ofx/gnc-ofx-import.c: Use the new account + name field of LibOFX to help the user identify the account. + Starting now, until furter notice you need LibOFX CVS available + at http://sourceforge.net/cvs/?group_id=61170 to build the + ofx module. + 2002-10-08 Derek Atkins * books do not need to generate events * however they should generate destroy events diff --git a/src/import-export/Account-matcher.c b/src/import-export/Account-matcher.c index 7a0f3841f0..a5eddd6e19 100644 --- a/src/import-export/Account-matcher.c +++ b/src/import-export/Account-matcher.c @@ -246,7 +246,7 @@ Account * gnc_import_select_account(char * account_online_id_value, strncat(account_description_text, account_human_description, ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); strncat(account_description_text, "\n", ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); } - strncat(account_description_text, "(Account ID: ", ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); + strncat(account_description_text,_("(Full account ID: "), ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); strncat(account_description_text, account_online_id_value, ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); strncat(account_description_text, ")", ACCOUNT_DESCRIPTION_MAX_SIZE-strlen(account_description_text)); diff --git a/src/import-export/ofx/gnc-ofx-import.c b/src/import-export/ofx/gnc-ofx-import.c index 88d36c851d..a71a34ae6a 100644 --- a/src/import-export/ofx/gnc-ofx-import.c +++ b/src/import-export/ofx/gnc-ofx-import.c @@ -64,7 +64,6 @@ void gnc_file_ofx_import (void) extern int ofx_INFO_msg; extern int ofx_STATUS_msg; char *filenames[3]; - char file[255] = "/home/bock/pfe/scratch/stmtrs_spec201.xml"; char *selected_filename; ofx_PARSER_msg = false; @@ -77,7 +76,7 @@ void gnc_file_ofx_import (void) gnc_should_log(MOD_IMPORT, GNC_LOG_TRACE); DEBUG("gnc_file_ofx_import(): Begin...\n"); -selected_filename = gnc_file_dialog ("Select an OFX/QFX file to process", +selected_filename = gnc_file_dialog("Select an OFX/QFX file to process", NULL, NULL); @@ -100,6 +99,11 @@ int ofx_proc_status(struct OfxStatusData data) return 0; } +int ofx_proc_security(const struct OfxSecurityData data) +{ +return 0; +} + int ofx_proc_transaction(struct OfxTransactionData data) { char dest_string[255]; @@ -321,7 +325,7 @@ int ofx_proc_account(struct OfxAccountData data) } } - selected_account = gnc_import_select_account(data.account_id, 1, NULL, default_commodity, default_type); + selected_account = gnc_import_select_account(data.account_id, 1, data.account_name, default_commodity, default_type); } else {