mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2003-05-26 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-settings.c: Fix pref page define to the proper page, should fix the problem of all prefs being ignored. Also make strings in the lookup code translatable so that the matching won't be lost when changing language. * src/import-export/generic-import.scm: Add note not to forget to change the c file as well when changing preference page. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8404 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
bd050a5a6d
commit
cf063fc35b
@ -1,3 +1,8 @@
|
||||
2003-05-26 Benoit Grégoire <bock@step.polymtl.ca>
|
||||
|
||||
* src/import-export/import-settings.c: Fix pref page define to the proper page, should fix the problem of all prefs being ignored. Also make strings in the lookup code translatable so that the matching won't be lost when changing language.
|
||||
* src/import-export/generic-import.scm: Add note not to forget to change the c file as well when changing preference page.
|
||||
|
||||
2003-05-25 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/report/report-gnome/dialog-view-column.c:
|
||||
|
@ -5,6 +5,10 @@
|
||||
;; Copyright (c) 2002 Benoit Grégoire <bock@step.polymtl.ca>
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;;
|
||||
; If you ever move the prefs from one page to another, DON'T forget to change MATCHER_PREF_PAGE in import-settings.c !!!!!!!
|
||||
;;
|
||||
|
||||
;; Register Preferences
|
||||
;(gnc:register-configuration-option
|
||||
; (gnc:make-simple-boolean-option
|
||||
|
@ -29,7 +29,8 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "dialog-utils.h"
|
||||
#include "global-options.h"
|
||||
#include "import-settings.h"
|
||||
|
||||
@ -38,7 +39,7 @@
|
||||
* If you modify the value of any of these, you must do the same in *
|
||||
* generic-import.scm *
|
||||
\********************************************************************/
|
||||
#define MATCHER_PREF_PAGE "Transaction Matcher"
|
||||
#define MATCHER_PREF_PAGE _("Online Banking & Importing")
|
||||
|
||||
/** Transaction who's best match probability is equal or higher than
|
||||
this will reconcile their best match by default */
|
||||
@ -46,7 +47,7 @@
|
||||
/** Transaction who's best match probability is below or equal to
|
||||
this will be added as new by default */
|
||||
#define DEFAULT_ADD_THRESHOLD 3
|
||||
/** Transaction's match probability must be at least this much to be
|
||||
/** Transaction's match probability must be at least this much to be
|
||||
displayed in the match list. Dont set this to 0 except for
|
||||
debugging purposes, otherwise all transactions of every accounts
|
||||
will be shown in the list */
|
||||
@ -64,7 +65,7 @@ static const int DEFAULT_ACTION_CLEAR_ENABLED = TRUE;
|
||||
\********************************************************************/
|
||||
|
||||
struct _genimportsettings {
|
||||
|
||||
|
||||
gboolean action_skip_enabled;
|
||||
gboolean action_edit_enabled;
|
||||
gboolean action_add_enabled;
|
||||
@ -101,26 +102,26 @@ gnc_import_Settings_new (void)
|
||||
|
||||
settings->action_skip_enabled =
|
||||
gnc_lookup_boolean_option(MATCHER_PREF_PAGE,
|
||||
"Enable SKIP transaction action",
|
||||
_("Enable SKIP transaction action"),
|
||||
DEFAULT_ACTION_SKIP_ENABLED);
|
||||
settings->action_edit_enabled =
|
||||
gnc_lookup_boolean_option(MATCHER_PREF_PAGE,
|
||||
"Enable EDIT match action",
|
||||
_("Enable EDIT match action"),
|
||||
DEFAULT_ACTION_EDIT_ENABLED);
|
||||
settings->action_add_enabled=DEFAULT_ACTION_ADD_ENABLED;
|
||||
settings->action_clear_enabled=DEFAULT_ACTION_CLEAR_ENABLED;
|
||||
settings->clear_threshold=gnc_lookup_number_option(MATCHER_PREF_PAGE,
|
||||
"Auto-CLEAR threshold",
|
||||
_("Auto-CLEAR threshold"),
|
||||
DEFAULT_CLEAR_THRESHOLD);
|
||||
settings->add_threshold=gnc_lookup_number_option(MATCHER_PREF_PAGE,
|
||||
"Auto-ADD threshold",
|
||||
_("Auto-ADD threshold"),
|
||||
DEFAULT_ADD_THRESHOLD);
|
||||
settings->display_threshold =
|
||||
gnc_lookup_number_option(MATCHER_PREF_PAGE,"Match display threshold",
|
||||
gnc_lookup_number_option(MATCHER_PREF_PAGE,_("Match display threshold"),
|
||||
DEFAULT_DISPLAY_THRESHOLD);
|
||||
|
||||
settings->fuzzy_amount =
|
||||
gnc_lookup_number_option(MATCHER_PREF_PAGE,"Commercial ATM fees threshold",
|
||||
gnc_lookup_number_option(MATCHER_PREF_PAGE,_("Commercial ATM fees threshold"),
|
||||
DEFAULT_ATM_FEE_THRESHOLD);
|
||||
|
||||
return settings;
|
||||
|
Loading…
Reference in New Issue
Block a user