@@ -650,7 +650,7 @@ can afford larger payments.
NOTE: For Payment Frequencies, PF, semi-monthly or less, i.e., PF == 12 or PF == 24,
-a 360 day calender year and 30 day month are used. For Payment Frequencies, PF,
+a 360 day calendar year and 30 day month are used. For Payment Frequencies, PF,
greater than semi-monthly, PF > 24, the actual number of days per year and per payment
period are used. The actual values are computed using the built-in 'jdn' function
@@ -949,10 +949,10 @@ saved in the variable, sofmt, and later restored.
Examples
-
+
-
+
diff --git a/src/doc/guid.txt b/src/doc/guid.txt
index 732d68a18a..5c28093ac4 100644
--- a/src/doc/guid.txt
+++ b/src/doc/guid.txt
@@ -33,7 +33,7 @@ One practical problem is that backup copies of files containing
GnuCash data will have the same GUID's as the 'live data'. Because
the user may have modified the object, if one looked at the backup
copy, one would find more-or-less the same object, but it might
-have different values (for the amount, the value, teh date, the
+have different values (for the amount, the value, the date, the
title, etc.) Thus, a single value for a GUID can be associated
with several different but similar 'objects'.
diff --git a/src/doc/lots.txt b/src/doc/lots.txt
index 4cc4c661fc..2fde5ce44c 100644
--- a/src/doc/lots.txt
+++ b/src/doc/lots.txt
@@ -380,10 +380,10 @@ Things not kept in sync:
The posted date is kept in sync using a data-constraint scheme.
If xaccTransactionSetDatePosted() is called, the date change is
accepted, and the split is marked date-dirty. When the transaction
-is commited (using xaccTransCommitEdit()), the date-dirty flag
+is committed (using xaccTransCommitEdit()), the date-dirty flag
is evaluated, and, if needed, the date changes are propagated/rolled
back on the appropriate gains splits. Currently, one can only change
-the date on the gains-source transaction; the date on teh
+the date on the gains-source transaction; the date on the
gains-recording split cannot be changed.
The value recorded by the gains transaction is updated whenever
@@ -397,14 +397,14 @@ dirty flags are used to track these.
If the amount of a plit changes, then the lot that its in becomes
potentially unbalanced. This requires the lot membership to be
recomputed; this in turn may require the split to be split into
-peices, or to be recombined into one from several pieces.
+pieces, or to be recombined into one from several pieces.
\section lotstodo TODO
- need to copy void status when source split date changes.
- its possible for the the price, as recorded by one split
to vary wildly from that in another split in the same
transaction. That's bad, prices should be normalized.
- Theres a routine to do this, xaccScrubSubSplitPrice()
+ There's a routine to do this, xaccScrubSubSplitPrice()
but its not currently used.
- write automated test cases to handle each situation.
diff --git a/src/doc/multicurrency-discussion.txt b/src/doc/multicurrency-discussion.txt
index 4e1dd563b3..4685a8cd4f 100644
--- a/src/doc/multicurrency-discussion.txt
+++ b/src/doc/multicurrency-discussion.txt
@@ -12,7 +12,7 @@
How are you printing balances right now?
I guess you plug a \a gnc-numeric into the html code.
If you do a s/\a gnc-numeric/\a gnc-monetary/
- ... then everything would be multi-currency compilant
+ ... then everything would be multi-currency compliant
Of course the \a gnc-monetary needs the actual currency specified.
Would that lead to problems?
Definition of \a gnc-monetary is in src/scm/gnc-numeric.scm
diff --git a/src/doc/python-bindings-doxygen.py b/src/doc/python-bindings-doxygen.py
index 579a06bcbd..c1a4f7b7ad 100644
--- a/src/doc/python-bindings-doxygen.py
+++ b/src/doc/python-bindings-doxygen.py
@@ -52,7 +52,7 @@
#
# @subsection swigworks What SWIG does
#
-# SWIG extracts informations from the c-sources and provides access to the structures
+# SWIG extracts information from the c-sources and provides access to the structures
# to python. It's work is controlled by interface files :
#
# @li gnucash_core.i
diff --git a/src/doc/qif.txt b/src/doc/qif.txt
index 8655c1d06b..dc14704cb6 100644
--- a/src/doc/qif.txt
+++ b/src/doc/qif.txt
@@ -164,7 +164,7 @@ gboolean qif_file_needs_account(QifFile file);
void qif_file_set_default_account(QifFile file, const char *acct_name);
/** Parse the qif file values; may require some callbacks to let the
- * user choose from ambigious data formats
+ * user choose from ambiguous data formats
* XXX: Is there a better way to callback from here?
* Do we need progress-bar info here?
*/
diff --git a/src/engine/Account.h b/src/engine/Account.h
index 44f1f0d836..a7c3c54ef2 100644
--- a/src/engine/Account.h
+++ b/src/engine/Account.h
@@ -784,7 +784,7 @@ gint gnc_account_get_current_depth (const Account *account);
/** Return the number of levels of descendants accounts below the
* specified account. The returned number does not include the
- * specifed account itself.
+ * specified account itself.
*
* @param account The account to query.
*
diff --git a/src/engine/README.query-api b/src/engine/README.query-api
index b2a7e898aa..32b1ba8cb9 100644
--- a/src/engine/README.query-api
+++ b/src/engine/README.query-api
@@ -114,7 +114,7 @@ predicate d, you will get (ad + bd + cd).
STRUCTURE OF A QUERY: A Query is a logical function of any number of
QueryTerms. A QueryTerm consists of a C function pointer (the
Predicate) and a PredicateData structure containing data passed to the
-predicate funtion. The PredicateData structure is a constant
+predicate function. The PredicateData structure is a constant
associated with the Term and is identical for every Split that is
tested.
@@ -158,7 +158,7 @@ PD_AMOUNT : match a numeric amount. Specify an amount (always
positive), a funds-flow direction (credit, debit, or either), and
"how", specifying the type of amount comparison to be used :
- AMT_MATCH_ATLEAST : split >= pd amount
+ AMT_MATCH_AT LEAST : split >= pd amount
AMT_MATCH_ATMOST : split >= pd amount
AMT_MATCH_EXACTLY : split == pd amount
diff --git a/src/engine/Recurrence.h b/src/engine/Recurrence.h
index 6affc7912f..8dae39d8f9 100644
--- a/src/engine/Recurrence.h
+++ b/src/engine/Recurrence.h
@@ -110,7 +110,7 @@ guint recurrenceGetMultiplier(const Recurrence *r);
GDate recurrenceGetDate(const Recurrence *r);
WeekendAdjust recurrenceGetWeekendAdjust(const Recurrence *r);
-/* Get the occurence immediately after refDate.
+/* Get the occurrence immediately after refDate.
*
* This function has strict and precise post-conditions:
*
@@ -133,7 +133,7 @@ void recurrenceNextInstance(const Recurrence *r, const GDate *refDate,
/* Zero-based. n == 1 gets the instance after the start date. */
void recurrenceNthInstance(const Recurrence *r, guint n, GDate *date);
-/* Get a time coresponding to the beginning (or end if 'end' is true)
+/* Get a time corresponding to the beginning (or end if 'end' is true)
of the nth instance of the recurrence. Also zero-based. */
time64 recurrenceGetPeriodTime(const Recurrence *r, guint n, gboolean end);
@@ -144,7 +144,7 @@ time64 recurrenceGetPeriodTime(const Recurrence *r, guint n, gboolean end);
gnc_numeric recurrenceGetAccountPeriodValue(const Recurrence *r,
Account *acct, guint n);
-/** @return the earliest of the next occurances -- a "composite" recurrence **/
+/** @return the earliest of the next occurrences -- a "composite" recurrence **/
void recurrenceListNextInstance(const GList *r, const GDate *refDate,
GDate *nextDate);
diff --git a/src/engine/Transaction.c b/src/engine/Transaction.c
index 881711857c..6804f53f7e 100644
--- a/src/engine/Transaction.c
+++ b/src/engine/Transaction.c
@@ -173,9 +173,9 @@ struct timeval
* which would generate a flurry of (needless) events, if they
* weren't saved up till the commit.
* 2) Technically, its incorrect to use transaction data
- * until the transaction is commited. The GUI element that
+ * until the transaction is committed. The GUI element that
* is changing the data can look at it, but all of the rest
- * of the GUI should ignore the data until its commited.
+ * of the GUI should ignore the data until its committed.
*/
const char *trans_notes_str = "notes";
diff --git a/src/engine/TransactionP.h b/src/engine/TransactionP.h
index bc9344251d..2864a59c79 100644
--- a/src/engine/TransactionP.h
+++ b/src/engine/TransactionP.h
@@ -153,11 +153,11 @@ QofBackend * xaccTransactionGetBackend (Transaction *trans);
/* The xaccEnable/DisableDataScrubbing() routines affect what
* happens during transaction commit. When scrubbing is enabled,
* then transactions are fixed up during transaction commit,
- * so that only consistent transactions are commited to the engine.
+ * so that only consistent transactions are committed to the engine.
* However, when data is being loaded from a backend (in particular,
* from the file backend), the data might not be consistent until
* its completely loaded. In particular, gains transactions might
- * be loaded at a different time than the transactions that casued
+ * be loaded at a different time than the transactions that caused
* the gains. Thus, scrubbing needs do be disabled during file
* load. These routines enable that.
*/
diff --git a/src/engine/cap-gains.c b/src/engine/cap-gains.c
index f89289b60b..fca52af614 100644
--- a/src/engine/cap-gains.c
+++ b/src/engine/cap-gains.c
@@ -276,7 +276,7 @@ xaccSplitAssignToLot (Split *split, GNCLot *lot)
* implemented accounting policies should be giving us splits
* that make lots larger. One a lot is open, the FIFO/LIFO
* policies should be working only to make the lot smaller.
- * We can remove teh warning emssage come the day we have
+ * We can remove the warning emssage come the day we have
* fancier policies.
*/
baln_is_positive = gnc_numeric_positive_p (baln);
diff --git a/src/engine/cap-gains.h b/src/engine/cap-gains.h
index 76792bd13f..b7c5e67229 100644
--- a/src/engine/cap-gains.h
+++ b/src/engine/cap-gains.h
@@ -99,7 +99,7 @@ gnc_numeric xaccSplitGetCapGains(Split *);
* indicated account is used in the trading of commodities.
* A 'trading' account will contain transactions whose
* transaction currency is not the same as the account
- * commodity. The existance of such transactions is
+ * commodity. The existence of such transactions is
* the very definition of a 'trade'. This routine returns
* TRUE if this is a trading account, else it returns
* FALSE.
diff --git a/src/engine/commodity-table.scm b/src/engine/commodity-table.scm
index 3f0f378ace..5d81a0a780 100644
--- a/src/engine/commodity-table.scm
+++ b/src/engine/commodity-table.scm
@@ -25,7 +25,7 @@
-(define GNC_COMMODITY_NS_CURRENCY "CURRENCY")
+(define GNC_COMMODITY_NS_CURRENCY (gettext "CURRENCY"))
;; If you change the C side, change this too.
(define GNC_COMMODITY_NS_AMEX "AMEX")
@@ -33,3 +33,5 @@
(define GNC_COMMODITY_NS_NASDAQ "NASDAQ")
(define GNC_COMMODITY_NS_EUREX "EUREX")
(define GNC_COMMODITY_NS_MUTUAL "FUND")
+(define GNC_COMMODITY_NS_ASX "ASX")
+(define GNC_COMMODITY_NS_NONCURRENCY (gettext "ALL NON-CURRENCY"))
diff --git a/src/engine/design.txt b/src/engine/design.txt
index 7cf590cb71..3532616732 100644
--- a/src/engine/design.txt
+++ b/src/engine/design.txt
@@ -10,7 +10,7 @@ Engine architecture.
The only remaining architecture flaw is related to the GnuCash XML v2
backend modularisation. QofSession includes a dynamic method of loading
-a QofBackend that supercedes the use of gnc_module_load that currently
+a QofBackend that supersedes the use of gnc_module_load that currently
loads the module using guile/scheme. When the old XML backend is replaced
by Sqlite, this will be resolved.
@@ -168,7 +168,7 @@ Many programmers are used to a different interface, e.g.
}
\endverbatim
Because of this, it is important to explain why the former design was
-choosen over the latter. Let us begin by listing how the choosen design
+chosen over the latter. Let us begin by listing how the chosen design
is as good as, and in many ways can be better to the later design.
-# Allows programmer to check for errors asynchronously, e.g. outside
@@ -182,7 +182,7 @@ is as good as, and in many ways can be better to the later design.
The right implementation for (2) is to implement not a single
variable, but a stack or a ring (circular queue) on which error codes
-are placed, and from which error codes can be retreived. The right
+are placed, and from which error codes can be retrieved. The right
implementation for (3) is the use pthread_getspecific() to define a
per-thread global and/or ring/queue.
@@ -303,20 +303,20 @@ course-grained account-group level.
There is a rudimentary level of "TP" build in, via the routines
xaccTransBeginEdit(), xaccTransRollbackEdit(), and xaccTransCommitEdit(),
-which allow changes to be made to a transaction, and then commited,
+which allow changes to be made to a transaction, and then committed,
or rejected at the end. Handy for the GUI, if the user makes a bunch
of changes which they don't want to keep; also handy for an SQL back end,
where the Commit() routine triggers the actual update of the SQL database.
Note: 'Commit' is sometimes called 'post' in other systems: The
-act of 'commiting' a transaction is the same as 'posting' the
+act of 'committing' a transaction is the same as 'posting' the
transaction to the general journal.
Some important implementation details to understand: the GUI currently
uses begin/end as a convenience, and thus, may hold a transaction in
the 'edit' state for a portentially long time (minutes or hours).
Thus, begin/end should not map naively to a table-lock/unlock.
-Instead, an optimistic-locking scheme, as below, is prefered.
+Instead, an optimistic-locking scheme, as below, is preferred.
The SQL back-end should implement posting entirely in the
'Commit()' routine. The pseudo-algorithms should look as follows:
diff --git a/src/engine/engine-utilities.scm b/src/engine/engine-utilities.scm
index 3ea6bec9a9..83b363e86b 100644
--- a/src/engine/engine-utilities.scm
+++ b/src/engine/engine-utilities.scm
@@ -48,7 +48,7 @@
((account-same? (car accounts) account) #t)
(else (account-in-list? account (cdr accounts))))))
-;; Optimized version of accout-in-list if we know
+;; Optimized version of account-in-list if we know
;; the list in advance.
(define (account-in-list-pred accounts)
(define (my-assoc str alist)
diff --git a/src/engine/extensions.txt b/src/engine/extensions.txt
index 32dfe653a8..d7f9128aae 100644
--- a/src/engine/extensions.txt
+++ b/src/engine/extensions.txt
@@ -37,7 +37,7 @@ The xaccPeriodClose() subroutine performs the following:
- find the equity account (what if there is more than one equity account
?? what if equity has sub-accounts ?? )
- transfer all income/expense to equity (shouldn't the equity account
- match the income/expense heirarchy?)
+ match the income/expense hierarchy?)
- return a new account group with new opening balances ...
\section transactionchanges Changes to Transaction Structure
diff --git a/src/engine/gnc-commodity.c b/src/engine/gnc-commodity.c
index f62b7ca9a6..cac2e854fc 100644
--- a/src/engine/gnc-commodity.c
+++ b/src/engine/gnc-commodity.c
@@ -1521,7 +1521,7 @@ gnc_commodity_increment_usage_count(gnc_commodity *cm)
&& gnc_commodity_get_auto_quote_control_flag(cm)
&& gnc_commodity_is_iso(cm))
{
- /* compatability hack - Gnucash 1.8 gets currency quotes when a
+ /* compatibility hack - Gnucash 1.8 gets currency quotes when a
non-default currency is assigned to an account. */
gnc_commodity_begin_edit(cm);
gnc_commodity_set_quote_flag(cm, TRUE);
@@ -1803,7 +1803,7 @@ gnc_commodity_table_lookup(const gnc_commodity_table * table,
if (nsp)
{
/*
- * Backward compatability support for currencies that have
+ * Backward compatibility support for currencies that have
* recently changed.
*/
if (nsp->iso4217)
@@ -1927,7 +1927,7 @@ gnc_commodity_table_insert(gnc_commodity_table * table,
return c;
}
- /* Backward compatability support for currencies that have
+ /* Backward compatibility support for currencies that have
* recently changed. */
if (priv->name_space->iso4217)
{
@@ -2117,9 +2117,29 @@ gnc_commodity_is_currency(const gnc_commodity *cm)
/********************************************************************
* gnc_commodity_table_get_commodities
- * list commodities in a give namespace
+ * list commodities in a given namespace
********************************************************************/
+static CommodityList*
+commodity_table_get_all_noncurrency_commodities(const gnc_commodity_table* table)
+{
+ GList *node = NULL, *nslist = gnc_commodity_table_get_namespaces(table);
+ CommodityList *retval = NULL;
+ for (node = nslist; node; node=g_list_next(node))
+ {
+ gnc_commodity_namespace *ns = NULL;
+ if (g_strcmp0((char*)(node->data), GNC_COMMODITY_NS_CURRENCY) == 0
+ || g_strcmp0((char*)(node->data), "template") == 0)
+ continue;
+ ns = gnc_commodity_table_find_namespace(table, (char*)(node->data));
+ if (!ns)
+ continue;
+ retval = g_list_concat(g_hash_table_values(ns->cm_table), retval);
+ }
+ g_list_free(nslist);
+ return retval;
+}
+
CommodityList *
gnc_commodity_table_get_commodities(const gnc_commodity_table * table,
const char * name_space)
@@ -2128,7 +2148,8 @@ gnc_commodity_table_get_commodities(const gnc_commodity_table * table,
if (!table)
return NULL;
-
+ if (g_strcmp0(name_space, GNC_COMMODITY_NS_NONCURRENCY) == 0)
+ return commodity_table_get_all_noncurrency_commodities(table);
ns = gnc_commodity_table_find_namespace(table, name_space);
if (!ns)
return NULL;
diff --git a/src/engine/gnc-commodity.h b/src/engine/gnc-commodity.h
index f64684c509..faa335bd53 100644
--- a/src/engine/gnc-commodity.h
+++ b/src/engine/gnc-commodity.h
@@ -97,13 +97,14 @@ GType gnc_commodity_namespace_get_type(void);
#define GNC_COMMODITY_NS_LEGACY "GNC_LEGACY_CURRENCIES"
/* The ISO define is deprecated in favor of CURRENCY */
#define GNC_COMMODITY_NS_ISO "ISO4217"
-#define GNC_COMMODITY_NS_CURRENCY "CURRENCY"
+#define GNC_COMMODITY_NS_CURRENCY _("CURRENCY")
#define GNC_COMMODITY_NS_NASDAQ "NASDAQ"
#define GNC_COMMODITY_NS_NYSE "NYSE"
#define GNC_COMMODITY_NS_EUREX "EUREX"
#define GNC_COMMODITY_NS_MUTUAL "FUND"
#define GNC_COMMODITY_NS_AMEX "AMEX"
#define GNC_COMMODITY_NS_ASX "ASX"
+#define GNC_COMMODITY_NS_NONCURRENCY _("ALL NON-CURRENCY")
typedef GList CommodityList;
@@ -338,7 +339,7 @@ const char * gnc_commodity_get_namespace(const gnc_commodity * cm);
* a pointer to a null terminated string of the form "AMEX",
* "NASDAQ", etc. The only difference between function and
* gnc_commodity_get_namespace() is that this function returns
- * ISO4217 instead of CURRENCY for backward compatability with the
+ * ISO4217 instead of CURRENCY for backward compatibility with the
* 1.8 data files.
*
* @param cm A pointer to a commodity data structure.
diff --git a/src/engine/gnc-hooks.h b/src/engine/gnc-hooks.h
index eb23467510..cd8edaafb3 100644
--- a/src/engine/gnc-hooks.h
+++ b/src/engine/gnc-hooks.h
@@ -26,7 +26,7 @@
#define GNC_HOOKS_H
/**
- * Create a new hook. Not a common occurrance, but...
+ * Create a new hook. Not a common occurrence, but...
* The returned string is just the 'name' argument,
* which belongs to the caller.
*/
diff --git a/src/engine/test-core/test-engine-stuff.cpp b/src/engine/test-core/test-engine-stuff.cpp
index b9386e8dd2..9578978fc1 100644
--- a/src/engine/test-core/test-engine-stuff.cpp
+++ b/src/engine/test-core/test-engine-stuff.cpp
@@ -2,7 +2,7 @@
* @file test-engine-stuff.c
* @brief tools to set up random, but finanically consistent books.
* Create transactions with random values, random accounts, random
- * account heirarchies, etc.
+ * account hierarchies, etc.
*
* XXX We should modify routines to create really, ugly, dirty
* transactions
diff --git a/src/engine/test/test-business.c b/src/engine/test/test-business.c
index 5b787295ff..473bb08707 100644
--- a/src/engine/test/test-business.c
+++ b/src/engine/test/test-business.c
@@ -63,7 +63,7 @@ static void test_business (void)
do_test (gncBusinessLookup (TEST_MODULE_NAME) == &bus_obj,
"lookup our installed object");
do_test (gncBusinessLookup ("snm98sn snml say dyikh9y9ha") == NULL,
- "lookup non-existant business object");
+ "lookup non-existent business object");
do_test (!g_strcmp0 (gncBusinessGetTypeLabel (TEST_MODULE_NAME),
_(TEST_MODULE_DESC)),
diff --git a/src/engine/test/test-transaction-voiding.cpp b/src/engine/test/test-transaction-voiding.cpp
index 9c556d5465..ff7cc50802 100644
--- a/src/engine/test/test-transaction-voiding.cpp
+++ b/src/engine/test/test-transaction-voiding.cpp
@@ -142,7 +142,7 @@ run_test (void)
}
/*
- * Retore the transaction to its former glory.
+ * Restore the transaction to its former glory.
*/
xaccTransUnvoid(transaction);
diff --git a/src/engine/test/utest-Account.cpp b/src/engine/test/utest-Account.cpp
index 60adfbfa56..81990f6385 100644
--- a/src/engine/test/utest-Account.cpp
+++ b/src/engine/test/utest-Account.cpp
@@ -683,7 +683,7 @@ test_gnc_book_set_get_root_account (Fixture *fixture, gconstpointer pData)
g_assert (acc1);
g_assert (acc1 != fixture->acct);
/* Now try to set the book's root account to the fixture
- * accout. Should throw an error.
+ * account. Should throw an error.
*/
oldlogger = g_log_set_default_handler ((GLogFunc)test_null_handler, check);
g_test_log_set_fatal_handler ((GTestLogFatalFunc)test_checked_handler,
@@ -701,7 +701,7 @@ test_gnc_book_set_get_root_account (Fixture *fixture, gconstpointer pData)
g_assert (gnc_book_get_root_account (book1) != acc1);
g_assert (gnc_book_get_root_account (book1) == acc2);
/* Clean up */
- /* acc1 gets freed by setting the root accout to acc2
+ /* acc1 gets freed by setting the root account to acc2
g_object_unref (acc1);
*/
qof_book_destroy (book1);
diff --git a/src/engine/test/utest-Budget.c b/src/engine/test/utest-Budget.c
index fdb624a694..6a2978ec7f 100644
--- a/src/engine/test/utest-Budget.c
+++ b/src/engine/test/utest-Budget.c
@@ -657,7 +657,7 @@ test_gnc_book_set_get_root_account (Fixture *fixture, gconstpointer pData)
g_assert (acc1);
g_assert (acc1 != fixture->acct);
/* Now try to set the book's root account to the fixture
- * accout. Should throw an error.
+ * account. Should throw an error.
*/
oldlogger = g_log_set_default_handler ((GLogFunc)test_null_handler, &check);
g_test_log_set_fatal_handler ((GTestLogFatalFunc)test_checked_handler,
diff --git a/src/engine/test/utest-Split.cpp b/src/engine/test/utest-Split.cpp
index 71fe4b539e..747a9def80 100644
--- a/src/engine/test/utest-Split.cpp
+++ b/src/engine/test/utest-Split.cpp
@@ -1707,7 +1707,7 @@ test_xaccSplitGetSharePrice (Fixture *fixture, gconstpointer pData)
g_assert (gnc_numeric_equal (result, expected));
g_assert_cmpint (check.hits, ==, 0);
- /* Now invent some value/ammount pairs which cause numeric errors to test the limits */
+ /* Now invent some value/amount pairs which cause numeric errors to test the limits */
/* This one was supposed to overflow, but it doesn't any more.
split->amount = gnc_numeric_create (987654321, 10);
split->value = gnc_numeric_create (3, 789304166);
diff --git a/src/gnome-search/dialog-search.c b/src/gnome-search/dialog-search.c
index b8c425ac26..b48e47796d 100644
--- a/src/gnome-search/dialog-search.c
+++ b/src/gnome-search/dialog-search.c
@@ -852,7 +852,7 @@ get_element_widget (GNCSearchWindow *sw, GNCSearchCoreType *element)
data->dialog = GTK_DIALOG (sw->dialog);
hbox = gtk_hbox_new (FALSE, 0);
- /* only set to automaticaly clean up the memory */
+ /* only set to automatically clean up the memory */
g_object_set_data_full (G_OBJECT (hbox), "data", data, g_free);
p = gnc_search_core_type_get_widget (element);
diff --git a/src/gnome-search/dialog-search.h b/src/gnome-search/dialog-search.h
index f61f4ee561..2ad7fa6fe1 100644
--- a/src/gnome-search/dialog-search.h
+++ b/src/gnome-search/dialog-search.h
@@ -87,7 +87,7 @@ typedef struct
* Both the param_list and display_list are the property of the dialog
* but will NOT be destroyed.. The param_list should be a GList of
* GNCSearchParam objects. The display_list should be a GList of
- * GNCSearchParamSimple objects which defines which paramters
+ * GNCSearchParamSimple objects which defines which parameters
* of the found transactions are printed, and how.
*
* The start_query is the property of the caller and will only be copied.
diff --git a/src/gnome-utils/assistant-xml-encoding.c b/src/gnome-utils/assistant-xml-encoding.c
index adf7ee73b3..5ade66c737 100644
--- a/src/gnome-utils/assistant-xml-encoding.c
+++ b/src/gnome-utils/assistant-xml-encoding.c
@@ -592,7 +592,7 @@ subst_insert_amb (gchar *byte_sequence, GList *conv_list, GncXmlImportData *data
}
else
{
- /* no conversion avaiable, stop filling of subst */
+ /* no conversion available, stop filling of subst */
g_hash_table_destroy (data->subst);
data->subst = NULL;
}
@@ -1097,7 +1097,7 @@ gxi_parse_file (GncXmlImportData *data)
io_err = qof_session_get_error (session);
if (io_err == ERR_BACKEND_NO_ERR)
{
- /* loaded sucessfully now. strange, but ok */
+ /* loaded successfully now. strange, but ok */
success = TRUE;
goto cleanup_parse_file;
}
diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c
index 2e551360c3..c4895b5546 100644
--- a/src/gnome-utils/dialog-account.c
+++ b/src/gnome-utils/dialog-account.c
@@ -188,7 +188,7 @@ gnc_account_commodity_from_type (AccountWindow * aw, gboolean update)
if (aw->type == ACCT_TYPE_TRADING)
new_mode = DIAG_COMM_ALL;
else if ((aw->type == ACCT_TYPE_STOCK) || (aw->type == ACCT_TYPE_MUTUAL))
- new_mode = DIAG_COMM_NON_CURRENCY;
+ new_mode = DIAG_COMM_NON_CURRENCY_SELECT;
else
new_mode = DIAG_COMM_CURRENCY;
diff --git a/src/gnome-utils/dialog-commodity.c b/src/gnome-utils/dialog-commodity.c
index a30ffd6b64..cc67f7cf5a 100644
--- a/src/gnome-utils/dialog-commodity.c
+++ b/src/gnome-utils/dialog-commodity.c
@@ -285,6 +285,7 @@ gnc_ui_select_commodity_create(const gnc_commodity * orig_sel,
text = _("_Security/currency:");
break;
case DIAG_COMM_NON_CURRENCY:
+ case DIAG_COMM_NON_CURRENCY_SELECT:
title = _("Select security");
text = _("_Security:");
break;
@@ -664,6 +665,7 @@ gnc_ui_update_namespace_picker (GtkWidget *cbwe,
break;
case DIAG_COMM_NON_CURRENCY:
+ case DIAG_COMM_NON_CURRENCY_SELECT:
namespaces =
gnc_commodity_table_get_namespaces (gnc_get_current_commodities());
node = g_list_find_custom (namespaces, GNC_COMMODITY_NS_CURRENCY, collate);
@@ -682,7 +684,13 @@ gnc_ui_update_namespace_picker (GtkWidget *cbwe,
namespaces = g_list_prepend (NULL, GNC_COMMODITY_NS_CURRENCY);
break;
}
-
+/* First insert "ALL" */
+ if (mode == DIAG_COMM_NON_CURRENCY_SELECT || mode == DIAG_COMM_ALL)
+ {
+ gtk_list_store_append(GTK_LIST_STORE(model), &iter);
+ gtk_list_store_set (GTK_LIST_STORE(model), &iter, 0,
+ GNC_COMMODITY_NS_NONCURRENCY, -1);
+ }
/* add them to the combobox */
namespaces = g_list_sort(namespaces, collate);
for (node = namespaces; node; node = node->next)
diff --git a/src/gnome-utils/dialog-commodity.h b/src/gnome-utils/dialog-commodity.h
index a1d4c00877..cca8532c54 100644
--- a/src/gnome-utils/dialog-commodity.h
+++ b/src/gnome-utils/dialog-commodity.h
@@ -49,6 +49,10 @@ typedef enum
of a currency. */
DIAG_COMM_NON_CURRENCY, /**< Dialog box should allow selection of
anything but a currency. */
+ DIAG_COMM_NON_CURRENCY_SELECT, /**< Dialog box should allow selection of
+ * anything but a currency and should include
+ * the "ALL" namespace to display all such
+ * commodities in a single list. */
DIAG_COMM_ALL, /**< Dialog box should allow selection of
anything. */
} dialog_commodity_mode;
diff --git a/src/gnome-utils/dialog-options.c b/src/gnome-utils/dialog-options.c
index f9c645f6d9..98469cee91 100644
--- a/src/gnome-utils/dialog-options.c
+++ b/src/gnome-utils/dialog-options.c
@@ -1764,7 +1764,7 @@ gnc_options_dialog_new_modal(gboolean modal, gchar *title)
gtk_widget_hide (apply_button);
}
- /* glade doesn't suport a notebook with zero pages */
+ /* glade doesn't support a notebook with zero pages */
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "notebook placeholder"));
retval->notebook = gtk_notebook_new();
gtk_widget_show(retval->notebook);
diff --git a/src/gnome-utils/dialog-transfer.h b/src/gnome-utils/dialog-transfer.h
index 4b4bc84cdf..9d4870a84a 100644
--- a/src/gnome-utils/dialog-transfer.h
+++ b/src/gnome-utils/dialog-transfer.h
@@ -212,7 +212,7 @@ void gnc_xfer_dialog_set_txn_cb(XferDialog *xferData,
specified by xfer_com.
The 'exch_rate' argument is used to set the initial value of the
- rate. If the dialog completes sucessfully 'FALSE' is returned and
+ rate. If the dialog completes successfully 'FALSE' is returned and
'exch_rate' is also used to store the converted value. Otherwise,
TRUE is returned and the 'exch_rate' argument is undefined.
*/
diff --git a/src/gnome-utils/gnc-account-sel.h b/src/gnome-utils/gnc-account-sel.h
index 04e937e205..8e859a2994 100644
--- a/src/gnome-utils/gnc-account-sel.h
+++ b/src/gnome-utils/gnc-account-sel.h
@@ -3,7 +3,7 @@
*
* Note that this widget will track changes in the account tree, and update
* itself accordingly. If an account with the same name exists in the
- * freshly-retreived account list, the widget will re-select that account.
+ * freshly-retrieved account list, the widget will re-select that account.
*
* Copyright (C) 2002 Joshua Sled
* Copyright (c) 2006 David Hampton
diff --git a/src/gnome-utils/gnc-combott.c b/src/gnome-utils/gnc-combott.c
index 4f866eba95..119072ceca 100644
--- a/src/gnome-utils/gnc-combott.c
+++ b/src/gnome-utils/gnc-combott.c
@@ -602,7 +602,7 @@ menuitem_response_cb (GtkMenuItem *item, gpointer *user_data )
gtk_label_set_text(GTK_LABEL(priv->label), label_text);
gtk_misc_set_alignment (GTK_MISC(priv->label), 0, 0.5);
- /* Get the coresponding entry in the list store */
+ /* Get the corresponding entry in the list store */
valid = gtk_tree_model_get_iter_first (priv->model, &iter);
while (valid)
{
@@ -690,7 +690,7 @@ gnc_combott_set_active (GncCombott *combott, gint index)
}
else
{
- /* Get the coresponding entry in the list store */
+ /* Get the corresponding entry in the list store */
valid = gtk_tree_model_get_iter_first (priv->model, &iter);
while (valid)
{
diff --git a/src/gnome-utils/gnc-currency-edit.c b/src/gnome-utils/gnc-currency-edit.c
index 6a33bc9c9b..75402ed2fa 100644
--- a/src/gnome-utils/gnc-currency-edit.c
+++ b/src/gnome-utils/gnc-currency-edit.c
@@ -58,6 +58,7 @@
#include "config.h"
#include
+#include
#include
#include
#include
diff --git a/src/gnome-utils/gnc-date-edit.h b/src/gnome-utils/gnc-date-edit.h
index b34e774c5e..790dd36d52 100644
--- a/src/gnome-utils/gnc-date-edit.h
+++ b/src/gnome-utils/gnc-date-edit.h
@@ -4,7 +4,7 @@
* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
* All rights reserved.
*
- * This file was part of the Gnome Library. It was modifed by
+ * This file was part of the Gnome Library. It was modified by
* Dave Peticolas for use in GnuCash.
*
* GnuCash is free software; you can redistribute it and/or modify
diff --git a/src/gnome-utils/gnc-dense-cal-model.h b/src/gnome-utils/gnc-dense-cal-model.h
index 263e6b5433..5ef36cf954 100644
--- a/src/gnome-utils/gnc-dense-cal-model.h
+++ b/src/gnome-utils/gnc-dense-cal-model.h
@@ -34,7 +34,7 @@ G_BEGIN_DECLS
#define GNC_IS_DENSE_CAL_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_DENSE_CAL_MODEL))
#define GNC_DENSE_CAL_MODEL_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GNC_TYPE_DENSE_CAL_MODEL, GncDenseCalModelIface))
-typedef struct _GncDenseCalModel GncDenseCalModel; /* non existant */
+typedef struct _GncDenseCalModel GncDenseCalModel; /* non existent */
typedef struct _GncDenseCalModelIface
{
GTypeInterface parent;
diff --git a/src/gnome-utils/gnc-dense-cal.c b/src/gnome-utils/gnc-dense-cal.c
index 92d6882b01..2e816fa876 100644
--- a/src/gnome-utils/gnc-dense-cal.c
+++ b/src/gnome-utils/gnc-dense-cal.c
@@ -962,7 +962,7 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
}
LOG_AND_RESET(timer, "alternating month colors");
- /* Hilight the marked days. */
+ /* Highlight the marked days. */
{
int i;
int x1, x2, y1, y2;
@@ -1015,7 +1015,7 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
cairo_rectangle (cr, x + 0.5, y + 0.5, w, h);
cairo_stroke (cr);
- /* draw the week seperations */
+ /* draw the week separations */
for (j = 0; j < num_weeks_per_col(dcal); j++)
{
gint wy = y + (j * week_height(dcal));
@@ -1024,7 +1024,7 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
cairo_stroke (cr);
}
- /* draw the day seperations */
+ /* draw the day separations */
for (j = 1; j < 7; j++)
{
gint dx = x + (j * day_width(dcal));
diff --git a/src/gnome-utils/gnc-gnome-utils.h b/src/gnome-utils/gnc-gnome-utils.h
index 52a279c1b0..9b07d6bf57 100644
--- a/src/gnome-utils/gnc-gnome-utils.h
+++ b/src/gnome-utils/gnc-gnome-utils.h
@@ -65,7 +65,7 @@ void gnc_launch_assoc (const char *uri);
*/
void gnc_options_dialog_set_book_options_help_cb (GNCOptionWin *win);
-/** Set the intial values of new book options to values specified in user
+/** Set the initial values of new book options to values specified in user
* preferences.
*/
void gnc_options_dialog_set_new_book_option_values (GNCOptionDB *odb);
diff --git a/src/gnome-utils/gnc-plugin-file-history.h b/src/gnome-utils/gnc-plugin-file-history.h
index 25784ae717..19e146d148 100644
--- a/src/gnome-utils/gnc-plugin-file-history.h
+++ b/src/gnome-utils/gnc-plugin-file-history.h
@@ -90,7 +90,7 @@ GncPlugin *gnc_plugin_file_history_new (void);
*/
void gnc_history_add_file (const char *filename);
-/** Remove all occurences of a file name from the history list. Move
+/** Remove all occurrences of a file name from the history list. Move
* the other key values up in the list to fill the gaps.
*
* @param oldfile The name of the file to remove from the list.
diff --git a/src/gnome-utils/gnc-query-view.c b/src/gnome-utils/gnc-query-view.c
index 06e3d3f74f..151aec84eb 100644
--- a/src/gnome-utils/gnc-query-view.c
+++ b/src/gnome-utils/gnc-query-view.c
@@ -344,7 +344,7 @@ gnc_query_view_init_view (GNCQueryView *qview)
else if (((GNCSearchParam *) param)->justify == GTK_JUSTIFY_RIGHT)
algn = 1.0;
- /* Set column resizeable */
+ /* Set column resizable */
if (((GNCSearchParam *) param)->non_resizeable)
{
gtk_tree_view_column_set_resizable (col, FALSE);
diff --git a/src/gnome-utils/gnc-query-view.h b/src/gnome-utils/gnc-query-view.h
index cc82020663..9c375cf4d2 100644
--- a/src/gnome-utils/gnc-query-view.h
+++ b/src/gnome-utils/gnc-query-view.h
@@ -73,11 +73,11 @@ extern "C" {
GtkTreeViewClass view_class;
/* This signal is emitted when a toggle happens, the pointer has
- an interger value for the active setting of the toggle */
+ an integer value for the active setting of the toggle */
void (*column_toggled) (GNCQueryView *qview, gpointer item);
/* This signal is emitted when a row is selected, the pointer has
- an interger value for the number of rows selected */
+ an integer value for the number of rows selected */
void (*row_selected) (GNCQueryView *qview, gpointer item);
/* This signal is emitted when a row is double clicked, the pointer has
diff --git a/src/gnome-utils/gnc-tree-view-account.c b/src/gnome-utils/gnc-tree-view-account.c
index fc4a0ff654..92121f8d38 100644
--- a/src/gnome-utils/gnc-tree-view-account.c
+++ b/src/gnome-utils/gnc-tree-view-account.c
@@ -1092,10 +1092,10 @@ gnc_tree_view_account_get_view_info (GncTreeViewAccount *account_view,
* Set the account view info data in use by the specified tree to
* match the callers request.
*
- * DRH - COMPATABILITY WARNING
+ * DRH - COMPATIBILITY WARNING
*
* This function does not do anything with the 'include_type' field.
- * Should there be a automatic filter for backward compatability
+ * Should there be a automatic filter for backward compatibility
* that uses these flags, or should all uses of this be converted to
* a GtkTreeModelFilter?
*
diff --git a/src/gnome-utils/gnc-tree-view-split-reg.c b/src/gnome-utils/gnc-tree-view-split-reg.c
index 746006ad83..5818eb45ea 100644
--- a/src/gnome-utils/gnc-tree-view-split-reg.c
+++ b/src/gnome-utils/gnc-tree-view-split-reg.c
@@ -1486,7 +1486,7 @@ gtv_sr_cdf0 (GtkTreeViewColumn *col, GtkCellRenderer *cell, GtkTreeModel *s_mode
if ((view->priv->current_trans == trans) && view->priv->show_extra_dates_on_selection)
show_extra_dates = TRUE;
- // Show the extra dates allways
+ // Show the extra dates always
if (view->show_extra_dates == TRUE)
show_extra_dates = TRUE;
@@ -3600,7 +3600,7 @@ gtv_sr_button_cb (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
if (event->window != window)
return FALSE;
- // Make sure we have stoped editing.
+ // Make sure we have stopped editing.
gnc_tree_view_split_reg_finish_edit (view);
// This prevents the cell changing.
@@ -5066,7 +5066,7 @@ gtv_sr_num_cb (GtkEntry *entry,
}
-/* Callback for Account seperator key */
+/* Callback for Account separator key */
static void
gtv_sr_acct_cb (GtkEntry *entry,
const gchar *text,
diff --git a/src/gnome-utils/search-param.h b/src/gnome-utils/search-param.h
index 6fce06e9b5..cfee788544 100644
--- a/src/gnome-utils/search-param.h
+++ b/src/gnome-utils/search-param.h
@@ -156,7 +156,7 @@ void gnc_search_param_override_param_type (GNCSearchParamSimple *param,
* Helper functions ..
*/
-/* Create a paramter and prepend it to a GSList */
+/* Create a parameter and prepend it to a GSList */
GList * gnc_search_param_prepend (GList *list, char const *title,
QofIdTypeConst type_override,
QofIdTypeConst search_type,
@@ -176,7 +176,7 @@ GList * gnc_search_param_prepend_compound (GList *list, char const *titl
/* set a lookup function for this parameter (in lieu of setting the
* param path) if you want to specify a direct lookup function when
- * using the compute_value interface. Note that this wont work with
+ * using the compute_value interface. Note that this won't work with
* sorting or other query interfaces, it's only useful for the
* query-list.
*/
diff --git a/src/gnome/assistant-acct-period.c b/src/gnome/assistant-acct-period.c
index ff6c163e7c..1c0c091c60 100644
--- a/src/gnome/assistant-acct-period.c
+++ b/src/gnome/assistant-acct-period.c
@@ -96,7 +96,7 @@ void ap_assistant_cancel (GtkAssistant *gtkassistant, gpointer us
void ap_assistant_close (GtkAssistant *gtkassistant, gpointer user_data);
/* =============================================================== */
-/* Find the earliest date occuring in the book. Do this by making
+/* Find the earliest date occurring in the book. Do this by making
* a query and sorting by date. Since the truncated sort returns
* only the *last* search results, sort in decreasing order.
*/
@@ -139,7 +139,7 @@ get_earliest_in_book (QofBook *book)
}
/* =============================================================== */
-/* Find the number of transactions occuring before the indicated date.
+/* Find the number of transactions occurring before the indicated date.
* Do this by making a query and counting the results.
*/
@@ -294,7 +294,7 @@ ap_assistant_menu_prepare (GtkAssistant *assistant, gpointer user_data)
period_begin = period_end;
recurrenceListNextInstance(info->period, &period_begin, &period_end);
- /* FIXME Check for valid period_end, not sure why it wont be!!! */
+ /* FIXME Check for valid period_end, not sure why it won't be!!! */
if (g_date_valid (&period_end) != TRUE)
break;
}
@@ -493,7 +493,7 @@ ap_assistant_finish (GtkAssistant *assistant, gpointer user_data)
&info->closing_date);
- /* FIXME Test for valid closing date, not sure why it wont be!!! */
+ /* FIXME Test for valid closing date, not sure why it won't be!!! */
if (g_date_valid(&info->closing_date) == TRUE)
{
/* If the next closing date is in the future, then we are done. */
diff --git a/src/gnome/assistant-loan.c b/src/gnome/assistant-loan.c
index d86bdee62e..812f985ee1 100644
--- a/src/gnome/assistant-loan.c
+++ b/src/gnome/assistant-loan.c
@@ -582,7 +582,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
GList *allowableAccounts;
} gas_data[] =
{
- /* These ints are the GtkTable boundries */
+ /* These ints are the GtkTable boundaries */
{ &ldd->prmAccountGAS, ldd->prmTable, TRUE, 1, 4, 0, 1, liabilityAcct },
{ &ldd->repAssetsFromGAS, ldd->repTable, TRUE, 1, 4, 2, 3, paymentFromAccts },
{ &ldd->repPrincToGAS, ldd->repTable, TRUE, 1, 2, 3, 4, paymentToAccts },
@@ -644,7 +644,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
int left, right, top, bottom;
} gde_data[] =
{
- /* These ints are the GtkTable boundries */
+ /* These ints are the GtkTable boundaries */
{ &ldd->prmStartDateGDE, ldd->prmTable, 1, 2, 4, 5 },
{ &ldd->revStartDate, ldd->revTable, 1, 2, 0, 1 },
{ &ldd->revEndDate, ldd->revTable, 1, 2, 1, 2 },
diff --git a/src/gnome/dialog-find-transactions.c b/src/gnome/dialog-find-transactions.c
index 986b6ae3f8..8969d47550 100644
--- a/src/gnome/dialog-find-transactions.c
+++ b/src/gnome/dialog-find-transactions.c
@@ -192,7 +192,7 @@ gnc_ui_find_transactions_dialog_create(GNCLedgerDisplay * orig_ledg)
/* In lieu of not "mis-using" some portion of the infrastructure by writing
* a bunch of new code, we just filter out the accounts of the template
- * transactions. While these are in a seperate Account trees just for this
+ * transactions. While these are in a separate Account trees just for this
* reason, the query engine makes no distinction between Account trees.
* See Gnome Bug 86302.
* -- jsled
diff --git a/src/gnome/dialog-find-transactions2.c b/src/gnome/dialog-find-transactions2.c
index d7b84251a8..bd7749b93f 100644
--- a/src/gnome/dialog-find-transactions2.c
+++ b/src/gnome/dialog-find-transactions2.c
@@ -193,7 +193,7 @@ gnc_ui_find_transactions_dialog_create2 (GNCLedgerDisplay2 * orig_ledg)
/* In lieu of not "mis-using" some portion of the infrastructure by writing
* a bunch of new code, we just filter out the accounts of the template
- * transactions. While these are in a seperate Account trees just for this
+ * transactions. While these are in a separate Account trees just for this
* reason, the query engine makes no distinction between Account trees.
* See Gnome Bug 86302.
* -- jsled
diff --git a/src/gnome/dialog-print-check.c b/src/gnome/dialog-print-check.c
index 8c8d45ce1a..4411b0b374 100644
--- a/src/gnome/dialog-print-check.c
+++ b/src/gnome/dialog-print-check.c
@@ -1469,7 +1469,7 @@ read_one_check_format(PrintCheckDialog *pcd, const gchar *groupname,
/* Iterate over a single check directory, throwing out any backup files and
- * then calling a helper function to read and parse the check format withing
+ * then calling a helper function to read and parse the check format within
* the file.
*/
static void
diff --git a/src/gnome/dialog-sx-editor.c b/src/gnome/dialog-sx-editor.c
index c52de849e2..53719b1c03 100644
--- a/src/gnome/dialog-sx-editor.c
+++ b/src/gnome/dialog-sx-editor.c
@@ -246,7 +246,7 @@ editor_ok_button_clicked_cb( GtkButton *b, GncSxEditorDialog *sxed )
gnc_sxed_save_sx( sxed );
/* add to list */
- // @@fixme -- forget 'new'-flag: check for existance of the SX [?]
+ // @@fixme -- forget 'new'-flag: check for existence of the SX [?]
if ( sxed->newsxP )
{
book = gnc_get_current_book ();
@@ -1079,7 +1079,7 @@ scheduledxaction_editor_dialog_destroy(GtkWidget *object, gpointer data)
{
/* FIXME: WTF???
*
- * "WTF" explaination: in the "new" click from the caller, we
+ * "WTF" explanation: in the "new" click from the caller, we
* set this flag. When "ok" is pressed on the dialog, we set
* this flag to false, and thus leave the SX live. If
* "Cancel" is clicked, the flag will still be true, and this
diff --git a/src/gnome/dialog-sx-editor2.c b/src/gnome/dialog-sx-editor2.c
index dfdddd50ea..7c96eb5563 100644
--- a/src/gnome/dialog-sx-editor2.c
+++ b/src/gnome/dialog-sx-editor2.c
@@ -245,7 +245,7 @@ editor_ok_button_clicked_cb (GtkButton *b, GncSxEditorDialog2 *sxed)
gnc_sxed_save_sx (sxed);
/* add to list */
- // @@fixme -- forget 'new'-flag: check for existance of the SX [?]
+ // @@fixme -- forget 'new'-flag: check for existence of the SX [?]
if ( sxed->newsxP )
{
book = gnc_get_current_book ();
@@ -1049,7 +1049,7 @@ scheduledxaction_editor_dialog_destroy (GtkWidget *object, gpointer data)
{
/* FIXME: WTF???
*
- * "WTF" explaination: in the "new" click from the caller, we
+ * "WTF" explanation: in the "new" click from the caller, we
* set this flag. When "ok" is pressed on the dialog, we set
* this flag to false, and thus leave the SX live. If
* "Cancel" is clicked, the flag will still be true, and this
diff --git a/src/gnome/dialog-sx-since-last-run.c b/src/gnome/dialog-sx-since-last-run.c
index 939605b969..1258a2ee4f 100644
--- a/src/gnome/dialog-sx-since-last-run.c
+++ b/src/gnome/dialog-sx-since-last-run.c
@@ -107,7 +107,7 @@ static GncSxInstances* _gnc_sx_slr_tree_model_adapter_get_sx_instances(GncSxSlrT
/** @return null if the iter is not actually an GncSxInstance. **/
GncSxInstance* gnc_sx_slr_model_get_instance(GncSxSlrTreeModelAdapter *model, GtkTreeIter *iter);
static GncSxInstance* _gnc_sx_slr_model_get_instance(GncSxSlrTreeModelAdapter *model, GtkTreeIter *iter, gboolean check_depth);
-/** @return false if the iter is not actaully an GncSxInstance's variable. **/
+/** @return false if the iter is not actually an GncSxInstance's variable. **/
gboolean gnc_sx_slr_model_get_instance_and_variable(GncSxSlrTreeModelAdapter *model, GtkTreeIter *iter, GncSxInstance **instance_loc, GncSxVariable **var_loc);
void gnc_sx_slr_model_effect_change(GncSxSlrTreeModelAdapter *model, gboolean auto_create_only, GList **created_transaction_guids, GList **creation_errors);
diff --git a/src/html/gnc-html-webkit.c b/src/html/gnc-html-webkit.c
index e0f34e256a..6bf0ea20eb 100644
--- a/src/html/gnc-html-webkit.c
+++ b/src/html/gnc-html-webkit.c
@@ -1043,7 +1043,7 @@ impl_webkit_copy_to_clipboard( GncHtml* self )
*
* @param self GncHtmlWebkit object
* @param filepath Where to write the HTML
- * @return TRUE if successful, FALSE if unsucessful
+ * @return TRUE if successful, FALSE if unsuccessful
**************************************************************/
static gboolean
impl_webkit_export_to_file( GncHtml* self, const char *filepath )
diff --git a/src/html/gnc-html.h b/src/html/gnc-html.h
index 5ec7db1c7c..6a66f9ce0e 100644
--- a/src/html/gnc-html.h
+++ b/src/html/gnc-html.h
@@ -79,7 +79,7 @@ typedef gboolean (* GncHTMLUrlCB)(const gchar* location, const gchar* label,
/**
* Registers a new URLType.
- * returns TRUE if succesful, FALSE if type already exists.
+ * returns TRUE if successful, FALSE if type already exists.
*
* @param type New URL type
* @param prococol Protocol - should be an empty string if there is no corresponding protocol.
diff --git a/src/import-export/csv-exp/assistant-csv-export.c b/src/import-export/csv-exp/assistant-csv-export.c
index e7e42c574a..acd5a9aa3a 100644
--- a/src/import-export/csv-exp/assistant-csv-export.c
+++ b/src/import-export/csv-exp/assistant-csv-export.c
@@ -571,7 +571,7 @@ csv_export_end_date_cb (GtkWidget *radio, gpointer user_data)
/*******************************************************************
* get_earliest_in_book
*
- * Find the earliest date occuring in the book. Do this by making
+ * Find the earliest date occurring in the book. Do this by making
* a query and sorting by date. Since the truncated sort returns
* only the *last* search results, sort in decreasing order.
*******************************************************************/
diff --git a/src/import-export/csv-exp/csv-transactions-export.c b/src/import-export/csv-exp/csv-transactions-export.c
index 0b8e9a47fe..d7ca029d1a 100644
--- a/src/import-export/csv-exp/csv-transactions-export.c
+++ b/src/import-export/csv-exp/csv-transactions-export.c
@@ -61,7 +61,7 @@ enum GncCsvLineType {TRANS_SIMPLE,
* write_line_to_file
*
* write a text string to a file pointer, return TRUE if
- * successfull.
+ * successful.
*******************************************************/
static
gboolean write_line_to_file (FILE *fh, char * line)
diff --git a/src/import-export/csv-exp/csv-tree-export.c b/src/import-export/csv-exp/csv-tree-export.c
index 147ef5e649..a4afe1dc83 100644
--- a/src/import-export/csv-exp/csv-tree-export.c
+++ b/src/import-export/csv-exp/csv-tree-export.c
@@ -52,7 +52,7 @@ static QofLogModule log_module = GNC_MOD_ASSISTANT;
* write_line_to_file
*
* write a text string to a file pointer, return TRUE if
- * successfull.
+ * successful.
*******************************************************/
static
gboolean write_line_to_file (FILE *fh, char * line)
diff --git a/src/import-export/csv-imp/assistant-csv-trans-import.c b/src/import-export/csv-imp/assistant-csv-trans-import.c
index 1f35f33f51..189acc4723 100644
--- a/src/import-export/csv-imp/assistant-csv-trans-import.c
+++ b/src/import-export/csv-imp/assistant-csv-trans-import.c
@@ -1404,7 +1404,7 @@ static void treeview_resized (GtkWidget* widget, GtkAllocation* allocation, CsvI
/* Get the width. */
col_width = gtk_tree_view_column_get_width (gtk_tree_view_get_column (info->treeview, i));
- /* Set the minumum width for a column so that drop down selector can be seen. */
+ /* Set the minimum width for a column so that drop down selector can be seen. */
if (col_width < MIN_COL_WIDTH)
{
col_width = MIN_COL_WIDTH;
@@ -1842,7 +1842,7 @@ static void gnc_csv_preview_update_assist (CsvImportTrans* info)
GList *tv_columns, *tv_columns_begin, *ctv_columns, *ctv_columns_begin;
tv_columns = tv_columns_begin = gtk_tree_view_get_columns (info->treeview);
ctv_columns = ctv_columns_begin = gtk_tree_view_get_columns (info->ctreeview);
- /* Clear out exisiting columns in info->treeview. */
+ /* Clear out existing columns in info->treeview. */
while (tv_columns != NULL)
{
gtk_tree_view_remove_column (info->treeview, GTK_TREE_VIEW_COLUMN(tv_columns->data));
diff --git a/src/import-export/generic-import-design.txt b/src/import-export/generic-import-design.txt
index b8f0f9c3e2..56d070cb07 100644
--- a/src/import-export/generic-import-design.txt
+++ b/src/import-export/generic-import-design.txt
@@ -30,7 +30,7 @@ enum gnc_match_probability {
}
Here is the pseudocode of the gnc_import_add_trans function:
-Variables: matches (a list of possible match with likelyhood)
+Variables: matches (a list of possible match with likelihood)
split_to_match = trans's first split.
In split_to_match's parent account; for each split where date >= split_to_match.date - 2 months:
@@ -49,7 +49,7 @@ In split_to_match's parent account; for each split where date >= split_to_match.
else
add to matches using UNLIKELY
-Present the list of matches to the user in decreasing order of likelyhood. User has the option of selecting one of the match or creating a new transaction.
+Present the list of matches to the user in decreasing order of likelihood. User has the option of selecting one of the match or creating a new transaction.
Add transaction_online_id to selected split
Erase from other CERTAIN splits
if transaction not balanced
diff --git a/src/import-export/import-backend.c b/src/import-export/import-backend.c
index 827421a2d7..c19dd0add9 100644
--- a/src/import-export/import-backend.c
+++ b/src/import-export/import-backend.c
@@ -429,7 +429,7 @@ TransactionGetTokens(GNCImportTransInfo *info)
text = xaccTransGetDescription(transaction);
tokens = tokenize_string(tokens, text);
- /* The day of week the transaction occured is a good indicator of
+ /* The day of week the transaction occurred is a good indicator of
* what account this transaction belongs in. Get the date and covert
* it to day of week as a token
*/
@@ -647,7 +647,7 @@ static void split_find_match (GNCImportTransInfo * trans_info,
{
/* If a transaction's amount doesn't match within the
threshold, it's very unlikely to be the same transaction
- so we give it an extra -5 penality */
+ so we give it an extra -5 penalty */
prob = prob - 5;
/* DEBUG("heuristics: probability - 1 (amount)"); */
}
@@ -721,7 +721,7 @@ static void split_find_match (GNCImportTransInfo * trans_info,
else if (strlen(new_trans_str) > 0 && strlen(split_str) > 0)
{
/* If both number are not empty yet do not match, add a
- little extra penality */
+ little extra penalty */
prob -= 2;
}
}
@@ -837,11 +837,11 @@ void gnc_import_find_split_matches(GNCImportTransInfo *trans_info,
TRUE, download_time + match_date_hardlimit * 86400,
QOF_QUERY_AND);
list_element = qof_query_run (query);
- /* Sigh. Doesnt help too much. We still create and run one query
+ /* Sigh. Doesn't help too much. We still create and run one query
for each imported transaction. Maybe it would improve
performance further if there is one single (master-)query at
the beginning, matching the full date range and all accounts in
- question. However, this doesnt quite work because this function
+ question. However, this doesn't quite work because this function
here is called from each gnc_gen_trans_list_add_trans(), which
is called one at a time. Therefore the whole importer would
have to change its behaviour: Accept the imported txns via
diff --git a/src/import-export/import-backend.h b/src/import-export/import-backend.h
index 43fea101d5..e1705f590a 100644
--- a/src/import-export/import-backend.h
+++ b/src/import-export/import-backend.h
@@ -105,7 +105,7 @@ gnc_import_TransInfo_init_matches (GNCImportTransInfo *trans_info,
* and processes each ImportTransInfo according to its selected action:
* For GNCImport_ADD, the transaction is added etc. etc.
*
- * Each succesful match is also stored in the given ImportMatchMap,
+ * Each successful match is also stored in the given ImportMatchMap,
* or, if that argument is NULL, in the ImportMatchMap of each
* originating account.
*
diff --git a/src/import-export/import-format-dialog.c b/src/import-export/import-format-dialog.c
index c8469624f0..ed449e8912 100644
--- a/src/import-export/import-format-dialog.c
+++ b/src/import-export/import-format-dialog.c
@@ -141,7 +141,7 @@ gnc_import_choose_fmt(const char* msg, GncImportFormat fmts, gpointer data)
g_return_val_if_fail(fmts, FALSE);
- /* if there is only one format availble, just return it */
+ /* if there is only one format available, just return it */
if (!(fmts & (fmts - 1)))
{
return fmts;
diff --git a/src/import-export/import-main-matcher.c b/src/import-export/import-main-matcher.c
index c7fbceafe1..4a5c8cded6 100644
--- a/src/import-export/import-main-matcher.c
+++ b/src/import-export/import-main-matcher.c
@@ -703,7 +703,7 @@ refresh_model_row (GNCImportMainMatcher *gui,
/*Actions*/
- /* Action informations */
+ /* Action information */
ro_text = text = color = NULL;
switch (gnc_import_TransInfo_get_action(info))
{
diff --git a/src/import-export/import-main-matcher.h b/src/import-export/import-main-matcher.h
index 689fc7998e..2250355961 100644
--- a/src/import-export/import-main-matcher.h
+++ b/src/import-export/import-main-matcher.h
@@ -143,7 +143,7 @@ void gnc_gen_trans_list_delete (GNCImportMainMatcher *info);
* @param trans The Transaction to add. The must contain at least one
* split, and this split must have been associated with an account
* Only the first split will be used for matching. The transaction
- * must NOT be commited. The Importer takes over ownership of the
+ * must NOT be committed. The Importer takes over ownership of the
* passed transaction.
*/
void gnc_gen_trans_list_add_trans(GNCImportMainMatcher *gui, Transaction *trans);
@@ -158,7 +158,7 @@ void gnc_gen_trans_list_add_trans(GNCImportMainMatcher *gui, Transaction *trans)
* @param trans The Transaction to add. The must contain at least one
* split, and this split must have been associated with an account
* Only the first split will be used for matching. The transaction
- * must NOT be commited. The Importer takes over ownership of the
+ * must NOT be committed. The Importer takes over ownership of the
* passed transaction.
*
* @param ref_id Reference id which links an external object to the transaction.
diff --git a/src/import-export/import-settings.c b/src/import-export/import-settings.c
index ee6a4f6b8d..8f99b406dd 100644
--- a/src/import-export/import-settings.c
+++ b/src/import-export/import-settings.c
@@ -59,7 +59,7 @@ struct _genimportsettings
this will be added as new by default */
int add_threshold;
/**Transaction's match probability must be at least this much to be
- displayed in the match list. Dont set this to 0 except for
+ displayed in the match list. Don't set this to 0 except for
debugging purposes, otherwise all transactions of every accounts
will be shown in the list */
int display_threshold;
diff --git a/src/import-export/log-replay/gnc-log-replay.c b/src/import-export/log-replay/gnc-log-replay.c
index 198964ba4f..98df30ceab 100644
--- a/src/import-export/log-replay/gnc-log-replay.c
+++ b/src/import-export/log-replay/gnc-log-replay.c
@@ -106,7 +106,7 @@ typedef struct _split_record
\********************************************************************/
static char *olds;
-/* This version of strtok will only match SINGLE occurence of delim,
+/* This version of strtok will only match SINGLE occurrence of delim,
returning a 0 length valid string between two consecutive ocurence of delim.
It will also return a 0 length string instead of NULL when it reaches the end of s
*/
@@ -359,7 +359,7 @@ static void dump_split_record(split_record record)
}
}
-/* File pointer must already be at the begining of a record */
+/* File pointer must already be at the beginning of a record */
static void process_trans_record( FILE *log_file)
{
char read_buf[2048];
diff --git a/src/import-export/qif-imp/qif-file.scm b/src/import-export/qif-imp/qif-file.scm
index e428068c50..f2240842b7 100644
--- a/src/import-export/qif-imp/qif-file.scm
+++ b/src/import-export/qif-imp/qif-file.scm
@@ -556,7 +556,7 @@
;; no default from-account by this time, we need to set one. In that
;; case, we set the default account based on the file name.
;;
-;; If we DO know the account already, and this is a tranfer to it,
+;; If we DO know the account already, and this is a transfer to it,
;; it's also an opening balance regardless of the payee.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/src/import-export/qif/qif-objects.c b/src/import-export/qif/qif-objects.c
index b9c0bce0b2..0e29c1f649 100644
--- a/src/import-export/qif/qif-objects.c
+++ b/src/import-export/qif/qif-objects.c
@@ -636,7 +636,7 @@ qif_is_bad_numeric_string(const char* line)
* from-account by this time we need to set one. In that case we set
* the default account based on the file name.
*
- * If we DO know the account already, and this is a tranfer to it,
+ * If we DO know the account already, and this is a transfer to it,
* it's also an opening balance regardless of the payee.
*
* In the end make sure that the context 'current account' is set.
@@ -1233,7 +1233,7 @@ qif_invst_txn_setup_splits(QifContext ctx, QifTxn txn)
break;
}
- /* If we dont have a far acct (or far category) then reset the flag */
+ /* If we don't have a far acct (or far category) then reset the flag */
if (!itxn->far_cat.obj)
itxn->far_cat_is_acct = FALSE;
diff --git a/src/libqof/qof/gnc-numeric.h b/src/libqof/qof/gnc-numeric.h
index 44b21d0776..db71f6b990 100644
--- a/src/libqof/qof/gnc-numeric.h
+++ b/src/libqof/qof/gnc-numeric.h
@@ -77,7 +77,7 @@ typedef struct _gnc_numeric gnc_numeric;
allows the results of financial and other rational computations to be
properly rounded to the appropriate units.
- Watch out: You \e must specifiy a rounding policy such as
+ Watch out: You \e must specify a rounding policy such as
GNC_HOW_RND_NEVER, otherwise the fractional part of the input
value might silently get discarded!
@@ -135,7 +135,7 @@ typedef struct _gnc_numeric gnc_numeric;
* "3/4" but the specified denominator for the return value is 2, should
* the return value be "1/2" or "2/2"?
*
- * Watch out: You \e must specifiy a rounding policy such as
+ * Watch out: You \e must specify a rounding policy such as
* GNC_HOW_RND_NEVER, otherwise the fractional part of the input value
* might silently get discarded!
*
@@ -286,7 +286,7 @@ gnc_numeric gnc_numeric_zero(void)
* value will be ignored.
*
* \param how Describes the rounding policy and output
- * denominator. Watch out: You \e must specifiy a rounding policy such
+ * denominator. Watch out: You \e must specify a rounding policy such
* as GNC_HOW_RND_NEVER, otherwise the fractional part of the input
* value is silently discarded! Common values for 'how' are
* (GNC_HOW_DENOM_REDUCE|GNC_HOW_RND_NEVER) or
diff --git a/src/libqof/qof/qof-backend.hpp b/src/libqof/qof/qof-backend.hpp
index aebec9a683..871fec8ceb 100644
--- a/src/libqof/qof/qof-backend.hpp
+++ b/src/libqof/qof/qof-backend.hpp
@@ -97,10 +97,10 @@ extern "C"
* For support of book partitioning, use special "Book" begin_edit()
* and commit_edit() QOF_ID types.
*
- * Call the book begin() at the begining of a book partitioning. A
+ * Call the book begin() at the beginning of a book partitioning. A
* 'partitioning' is the splitting off of a chunk of the current
* book into a second book by means of a query. Every transaction
- * in that query is to be moved ('transfered') to the second book
+ * in that query is to be moved ('transferred') to the second book
* from the existing book. The argument of this routine is a
* pointer to the second book, where the results of the query
* should go.
@@ -142,7 +142,7 @@ extern "C"
* this scenario, the engine will attempt to transfer those
* entities that it does know about. It does not, however,
* need to know about all the other entities that also would
- * be transfered over. In this way, a backend could perform
+ * be transferred over. In this way, a backend could perform
* a mass transfer of entities between books without having
* to actually move much (or any) data to the engine.
*
diff --git a/src/libqof/qof/qofbackend.h b/src/libqof/qof/qofbackend.h
index 98e9a9a1d0..628bc5edc4 100644
--- a/src/libqof/qof/qofbackend.h
+++ b/src/libqof/qof/qofbackend.h
@@ -24,7 +24,7 @@
/** @addtogroup Backend
The QOF Backend is a pseudo-object providing an interface between the
- engine and a persistant data store (e.g. a server, a database, or
+ engine and a persistent data store (e.g. a server, a database, or
a file). Backends are not meant to be used directly by an
application; instead the Session should be used to make a
connection with some particular backend.
diff --git a/src/libqof/qof/qofbook.h b/src/libqof/qof/qofbook.h
index aecd9e7583..8cc1655faa 100644
--- a/src/libqof/qof/qofbook.h
+++ b/src/libqof/qof/qofbook.h
@@ -108,7 +108,7 @@ struct _QofBook
/* The entity table associates the GUIDs of all the objects
* belonging to this book, with their pointers to the respective
- * objects. This allows a lookup of objects based on thier guid.
+ * objects. This allows a lookup of objects based on their guid.
*/
GHashTable * hash_of_collections;
diff --git a/src/libqof/qof/qofclass.h b/src/libqof/qof/qofclass.h
index d26070fb8c..eb58099e11 100644
--- a/src/libqof/qof/qofclass.h
+++ b/src/libqof/qof/qofclass.h
@@ -60,7 +60,7 @@
@{ */
/** @file qofclass.h
- @brief API for registering paramters on objects
+ @brief API for registering parameters on objects
@author Copyright (C) 2002 Derek Atkins
@author Copyright (C) 2003 Linas Vepstas
@author Copyright (c) 2005 Neil Williams
@@ -127,7 +127,7 @@ links: one object linked to many entities of many types.
*/
/** @} */
- /** Type of Paramters (String, Date, Numeric, GncGUID, etc.) */
+ /** Type of Parameters (String, Date, Numeric, GncGUID, etc.) */
typedef const char * QofType;
typedef struct _QofParam QofParam;
@@ -259,7 +259,7 @@ typedef void (*QofClassForeachCB) (QofIdTypeConst, gpointer);
*/
void qof_class_foreach (QofClassForeachCB, gpointer user_data);
-/** Type definition for the paramter callback function. */
+/** Type definition for the parameter callback function. */
typedef void (*QofParamForeachCB) (QofParam *, gpointer user_data);
/** Call the callback once for each parameter on the indicated
diff --git a/src/libqof/qof/qofid.h b/src/libqof/qof/qofid.h
index 0a9872bb63..13314ea25a 100644
--- a/src/libqof/qof/qofid.h
+++ b/src/libqof/qof/qofid.h
@@ -98,7 +98,7 @@ typedef struct QofCollection_s QofCollection;
#define QOF_ID_BOOK "Book"
#define QOF_ID_SESSION "Session"
-/** Inline string comparision; compiler will optimize away most of this */
+/** Inline string comparison; compiler will optimize away most of this */
#ifndef _MSC_VER
# define QSTRCMP(da,db) ({ \
gint val = 0; \
@@ -171,7 +171,7 @@ typedef void (*QofInstanceForeachCB) (QofInstance *, gpointer user_data);
void qof_collection_foreach (const QofCollection *, QofInstanceForeachCB,
gpointer user_data);
-/** Store and retreive arbitrary object-defined data
+/** Store and retrieve arbitrary object-defined data
*
* XXX We need to add a callback for when the collection is being
* destroyed, so that the user has a chance to clean up anything
@@ -210,7 +210,7 @@ void qof_collection_remove_entity (QofInstance *ent);
/** \brief Compare two secondary collections.
-Performs a deep comparision of the collections. Each QofInstance in
+Performs a deep comparison of the collections. Each QofInstance in
each collection is looked up in the other collection, via the GncGUID.
\return 0 if the collections are identical or both are NULL
diff --git a/src/libqof/qof/qofinstance.h b/src/libqof/qof/qofinstance.h
index 1b2e559445..5bc1513e1d 100644
--- a/src/libqof/qof/qofinstance.h
+++ b/src/libqof/qof/qofinstance.h
@@ -125,7 +125,7 @@ gint qof_instance_guid_compare(const gconstpointer ptr1, const gconstpointer ptr
gint qof_instance_get_editlevel (gconstpointer ptr);
-/** Compare two instances, based on thier last update times.
+/** Compare two instances, based on their last update times.
* Returns a negative, zero or positive value, respectively,
* if 'left' is earlier, same as or later than 'right'.
* Accepts NULL pointers, NULL's are by definition earlier
diff --git a/src/libqof/qof/qofquery.cpp b/src/libqof/qof/qofquery.cpp
index 1fac61c040..751a87ea06 100644
--- a/src/libqof/qof/qofquery.cpp
+++ b/src/libqof/qof/qofquery.cpp
@@ -68,7 +68,7 @@ struct _QofQuerySort
* convert types.
*/
gboolean use_default;
- GSList * param_fcns; /* Chain of paramters to walk */
+ GSList * param_fcns; /* Chain of parameters to walk */
QofSortFunc obj_cmp; /* In case you are comparing objects */
QofCompareFunc comp_fcn; /* When you are comparing core types */
};
@@ -311,7 +311,7 @@ static int cmp_func (const QofQuerySort *sort, QofSortFunc default_sort,
if (!node->next && !sort->obj_cmp)
break;
- /* Do the converstions */
+ /* Do the conversions */
conva = (param->param_getfcn) (conva, param);
convb = (param->param_getfcn) (convb, param);
}
diff --git a/src/libqof/qof/qofquerycore-p.h b/src/libqof/qof/qofquerycore-p.h
index f574b8e8b7..251f716958 100644
--- a/src/libqof/qof/qofquerycore-p.h
+++ b/src/libqof/qof/qofquerycore-p.h
@@ -31,7 +31,7 @@
#include "qofquerycore.h"
-/* Initalize the Query Core registry and install the default type handlers */
+/* Initialize the Query Core registry and install the default type handlers */
void qof_query_core_init(void);
void qof_query_core_shutdown (void);
diff --git a/src/libqof/qof/qofquerycore.cpp b/src/libqof/qof/qofquerycore.cpp
index 56350f37a2..774cd66a51 100644
--- a/src/libqof/qof/qofquerycore.cpp
+++ b/src/libqof/qof/qofquerycore.cpp
@@ -633,7 +633,7 @@ guid_match_predicate (gpointer object, QofParam *getter,
}
/*
- * The match is complete. If node == NULL then we've succesfully
+ * The match is complete. If node == NULL then we've successfully
* found a match for all the guids in the predicate. Return
* appropriately below.
*/
@@ -1437,7 +1437,7 @@ choice_match_predicate (gpointer object, QofParam *getter,
}
/*
- * The match is complete. If node == NULL then we've succesfully
+ * The match is complete. If node == NULL then we've successfully
* found a match for all the guids in the predicate. Return
* appropriately below.
*/
diff --git a/src/libqof/qof/qofsession.h b/src/libqof/qof/qofsession.h
index 3aabdeeea7..dafa437561 100644
--- a/src/libqof/qof/qofsession.h
+++ b/src/libqof/qof/qofsession.h
@@ -24,7 +24,7 @@
*
* The QOF Session
* encapsulates a connection to a storage backend. That is, it
- * manages the connection to a persistant data store; whereas
+ * manages the connection to a persistent data store; whereas
* the backend is the thing that performs the actual datastore
* access.
*
@@ -164,7 +164,7 @@ void qof_session_begin (QofSession *session, const char * book_id,
* to make the book actually usable; it would not cause *all* of the
* data to be loaded.
*
- * XXX the current design tries to accomodate multiple calls to 'load'
+ * XXX the current design tries to accommodate multiple calls to 'load'
* for each session, each time wiping out the old books; this seems
* wrong to me, and should be restricted to allow only one load per
* session.
diff --git a/src/libqof/qof/qofutil.h b/src/libqof/qof/qofutil.h
index 0bb0a2d1df..79a02c6ff4 100644
--- a/src/libqof/qof/qofutil.h
+++ b/src/libqof/qof/qofutil.h
@@ -177,7 +177,7 @@ void qof_close (void);
* and the given user_data parameter. */
void g_hash_table_foreach_sorted(GHashTable *hash_table, GHFunc func, gpointer user_data, GCompareFunc compare_func);
-/** Search for an occurence of the substring needle in the string
+/** Search for an occurrence of the substring needle in the string
* haystack, ignoring case. Return TRUE if one is found or FALSE
* otherwise. */
gboolean qof_utf8_substr_nocase (const gchar *haystack, const gchar *needle);
diff --git a/src/optional/python-bindings/example_scripts/account_analysis.py b/src/optional/python-bindings/example_scripts/account_analysis.py
index ed4fb095d1..dd7fc4a9a0 100644
--- a/src/optional/python-bindings/example_scripts/account_analysis.py
+++ b/src/optional/python-bindings/example_scripts/account_analysis.py
@@ -51,7 +51,7 @@ from gnucash import Session, GncNumeric, Split
#
# The output goes to stdout and is in csv format.
#
-# Account path arugments are space separated, so you need to quote parts of
+# Account path arguments are space separated, so you need to quote parts of
# the account path with spaces in them
#
# available period types are monthly quarterly and yearly
@@ -100,7 +100,7 @@ def next_period_start(start_year, start_month, period_type):
# use integer division to find out if the new end month is in a different
# year, what year it is, and what the end month number should be changed
# to.
- # Because this depends on modular arithmatic, we have to curvert the month
+ # Because this depends on modular arithmetic, we have to curvert the month
# values from 1-12 to 0-11 by subtracting 1 and putting it back after
#
# the really cool part is that this whole thing is implemented without
diff --git a/src/optional/python-bindings/example_scripts/str_methods.py b/src/optional/python-bindings/example_scripts/str_methods.py
index 6f639116b4..d1f2f52b8d 100644
--- a/src/optional/python-bindings/example_scripts/str_methods.py
+++ b/src/optional/python-bindings/example_scripts/str_methods.py
@@ -6,7 +6,7 @@
Import this module and str(Object) and unicode(Object) where Object is Transaction, Split,Invoice
or Entry leads to human readable results. That is handy when using @code print object @endcode
- I chose to put these functions/methods in a seperate file to develop them like this and maybe if
+ I chose to put these functions/methods in a separate file to develop them like this and maybe if
they prove to be useful they can be put in gnucash_core.py.
I am searching to find the best way to serialize these complex objects. Ideally this serialization
diff --git a/src/optional/python-bindings/gnucash_business.py b/src/optional/python-bindings/gnucash_business.py
index b03ce01e32..8d3850f072 100644
--- a/src/optional/python-bindings/gnucash_business.py
+++ b/src/optional/python-bindings/gnucash_business.py
@@ -72,7 +72,7 @@ class Employee(GnuCashBusinessEntity): pass
class Vendor(GnuCashBusinessEntity): pass
class Job(GnuCashBusinessEntity):
- # override the superclass contructor, as Job doesn't require
+ # override the superclass constructor, as Job doesn't require
# a currency but it does require an owner
def __init__(self, book=None, id=None, owner=None, name=None,
instance=None):
diff --git a/src/plugins/bi_import/dialog-bi-import-gui.c b/src/plugins/bi_import/dialog-bi-import-gui.c
index 679627f1d4..d7fca752b5 100644
--- a/src/plugins/bi_import/dialog-bi-import-gui.c
+++ b/src/plugins/bi_import/dialog-bi-import-gui.c
@@ -202,12 +202,11 @@ gnc_bi_import_gui_ok_cb (GtkWidget *widget, gpointer data)
if (res == RESULT_OK)
{
gnc_bi_import_fix_bis (gui->store, &n_fixed, &n_deleted, info, gui->type);
+ gnc_bi_import_create_bis (gui->store, gui->book, &n_invoices_created, &n_invoices_updated, gui->type, gui->open_mode, info);
if (info->len > 0)
gnc_info_dialog (gui->dialog, "%s", info->str);
g_string_free( info, TRUE );
- gnc_bi_import_create_bis (gui->store, gui->book, &n_invoices_created, &n_invoices_updated, gui->type, gui->open_mode, info);
gnc_info_dialog (gui->dialog, _("Import results:\n%i lines were ignored\n%i lines imported:\n %u fixes\n %u ignored (not fixable)\n\n %u created\n %u updated (based on id)"), stats.n_ignored, stats.n_imported, n_fixed, n_deleted, n_invoices_created, n_invoices_updated);
-
if (stats.n_ignored > 0)
gnc_info2_dialog (gui->dialog, _("These lines were ignored during import"), stats.ignored_lines->str);
diff --git a/src/plugins/bi_import/dialog-bi-import.c b/src/plugins/bi_import/dialog-bi-import.c
index 5f39c37af7..1a84e26f94 100644
--- a/src/plugins/bi_import/dialog-bi-import.c
+++ b/src/plugins/bi_import/dialog-bi-import.c
@@ -224,7 +224,7 @@ gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
//! \brief try to fix some common errors in the csv representation of invoices
//! * corrects the date format
-//! * corrects ambigous values in multi line invoices
+//! * corrects ambiguous values in multi line invoices
//! * ensures customer exists
//! * if quantity is unset, set to 1
//! * if price is unset, delete row
@@ -525,7 +525,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
gint day, month, year;
gnc_numeric value;
GncOwner *owner;
- Account *acc;
+ Account *acc = NULL;
enum update {YES = GTK_RESPONSE_YES, NO = GTK_RESPONSE_NO} update;
GtkWidget *dialog;
Timespec today;
@@ -533,6 +533,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
gchar *new_id = NULL;
gint64 denom = 0;
gnc_commodity *currency;
+ Transaction * txn;
// these arguments are needed
g_return_if_fail (store && book);
@@ -633,14 +634,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
(*n_invoices_created)++;
update = YES;
- // open new bill / invoice in a tab, if requested
- if (g_ascii_strcasecmp(open_mode, "ALL") == 0
- || (g_ascii_strcasecmp(open_mode, "NOT_POSTED") == 0
- && strlen(date_posted) == 0))
- {
- iw = gnc_ui_invoice_edit (invoice);
- gnc_plugin_page_invoice_new (iw);
- }
+
gncInvoiceCommitEdit (invoice);
}
// I want to warn the user that an existing billvoice exists, but not every
@@ -745,7 +739,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
gncEntrySetBillTaxable (entry, text2bool (taxable));
gncEntrySetBillTaxIncluded (entry, text2bool (taxincluded));
gncEntrySetBillTaxTable (entry, gncTaxTableLookupByName (book, tax_table));
- gncEntryCommitEdit(entry);
gncBillAddEntry (invoice, entry);
}
else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
@@ -766,12 +759,12 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
gncEntrySetInvDiscount (entry, value);
gncEntrySetInvDiscountType (entry, text2disc_type (disc_type));
gncEntrySetInvDiscountHow (entry, text2disc_how (disc_how));
- gncEntryCommitEdit(entry);
gncInvoiceAddEntry (invoice, entry);
}
+ gncEntryCommitEdit(entry);
valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
// handle auto posting of invoices
-
+
new_id = NULL;
if (valid)
@@ -779,30 +772,81 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
if (g_strcmp0 (id, new_id) != 0)
{
// the next invoice id is different => try to autopost this invoice
- if (qof_scan_date (date_posted, &day, &month, &year))
+ if (strlen(date_posted) != 0)
{
// autopost this invoice
+ GHashTable *foreign_currs;
gboolean auto_pay;
- Timespec d1, d2;
-
+ Timespec p_date, d_date;
+ guint curr_count;
+ gboolean scan_date_r;
+ scan_date_r = qof_scan_date (date_posted, &day, &month, &year);
+ DEBUG("Invoice %s is marked to be posted because...", id);
+ DEBUG("qof_scan_date = %d", scan_date_r);
if (g_ascii_strcasecmp (type, "INVOICE") == 0)
auto_pay = gnc_prefs_get_bool (GNC_PREFS_GROUP_INVOICE, GNC_PREF_AUTO_PAY);
else
auto_pay = gnc_prefs_get_bool (GNC_PREFS_GROUP_BILL, GNC_PREF_AUTO_PAY);
-
- d1 = gnc_dmy2timespec (day, month, year);
- // FIXME: Must check for the return value of qof_scan_date!
- qof_scan_date (due_date, &day, &month, &year); // obtains the due date, or leaves it at date_posted
- d2 = gnc_dmy2timespec (day, month, year);
- acc = gnc_account_lookup_for_register
- (gnc_get_current_root_account (), account_posted);
- gncInvoicePostToAccount (invoice, acc, &d1, &d2,
- memo_posted,
- text2bool (accumulatesplits),
- auto_pay);
- DEBUG("Invoice %s posted",id);
+ // Do we have any foreign currencies to deal with?
+ foreign_currs = gncInvoiceGetForeignCurrencies (invoice);
+ curr_count = g_hash_table_size (foreign_currs);
+ DEBUG("curr_count = %d",curr_count);
+ // Only auto-post if there's a single currency involved
+ if(curr_count == 0)
+ {
+ p_date = gnc_dmy2timespec (day, month, year);
+ // Check for the return value of qof_scan_date
+ if(qof_scan_date (due_date, &day, &month, &year)) // obtains the due date, or leaves it at date_posted
+ {
+ d_date = gnc_dmy2timespec (day, month, year);
+ }
+ else
+ d_date = p_date;
+ acc = gnc_account_lookup_for_register
+ (gnc_get_current_root_account (), account_posted);
+ if(acc != NULL) // Is the account real?
+ {
+ // Check if the currencies match
+ if(gncInvoiceGetCurrency(invoice) == gnc_account_get_currency_or_parent(acc))
+ {
+ gncInvoicePostToAccount (invoice, acc, &p_date, &d_date,
+ memo_posted,
+ text2bool (accumulatesplits),
+ auto_pay);
+ PWARN("Invoice %s posted",id);
+ g_string_append_printf (info, _("Invoice %s posted.\n"),id);
+ }
+ else // No match! Don't post it.
+ {
+ PWARN("Invoice %s NOT posted because currencies don't match", id);
+ g_string_append_printf (info,_("Invoice %s NOT posted because currencies don't match.\n"), id);
+ }
+ }
+ else
+ {
+ PWARN("Cannot post invoice %s because account name \"%s\" is invalid!",id,account_posted);
+ g_string_append_printf (info,_("Cannot post invoice %s because account name \"%s\" is invalid!\n"),id,account_posted);
+ }
+ }
+ else
+ {
+ PWARN("Invoice %s NOT posted because it requires currency conversion.",id);
+ g_string_append_printf (info,_("Invoice %s NOT posted because it requires currency conversion.\n"),id);
+ }
+ g_hash_table_unref (foreign_currs);
}
-
+ else
+ {
+ PWARN("Invoice %s is NOT marked for posting",id);
+ }
+ }
+ // open new bill / invoice in a tab, if requested
+ if (g_ascii_strcasecmp(open_mode, "ALL") == 0
+ || (g_ascii_strcasecmp(open_mode, "NOT_POSTED") == 0
+ && strlen(date_posted) == 0))
+ {
+ iw = gnc_ui_invoice_edit (invoice);
+ gnc_plugin_page_invoice_new (iw);
}
@@ -831,6 +875,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
g_free (account_posted);
g_free (memo_posted);
g_free (accumulatesplits);
+
}
diff --git a/src/quotes/Quote_example.pl b/src/quotes/Quote_example.pl
index 7f51cf444c..82192e05f4 100755
--- a/src/quotes/Quote_example.pl
+++ b/src/quotes/Quote_example.pl
@@ -56,7 +56,7 @@ print "\n\n";
@funds = ("FGRXX");
%quotes = $quoter->fetch("fidelity",@funds);
-print "Not all funds have a NAV; some have Yeilds:\n";
+print "Not all funds have a NAV; some have Yields:\n";
foreach $f (@funds) {
$name = $quotes {$f, "name"};
$yield = $quotes {$f, "yield"};
diff --git a/src/quotes/gnc-fq-helper.in b/src/quotes/gnc-fq-helper.in
index 6af1dee2e8..79d85154e4 100755
--- a/src/quotes/gnc-fq-helper.in
+++ b/src/quotes/gnc-fq-helper.in
@@ -294,7 +294,7 @@ sub parse_input_line {
my $dq = '"';
my @symbols;
- # Make sure we have an opening ( preceeded only by whitespace.
+ # Make sure we have an opening ( preceded only by whitespace.
# and followed by a one word method name composed of [a-z_]+.
# Also allow the '.' and '^' characters for stock indices.
# Kill off the whitespace if we do and grab the command.
diff --git a/src/register/ledger-core/gnc-ledger-display.c b/src/register/ledger-core/gnc-ledger-display.c
index 178386bc06..67dfaf42a7 100644
--- a/src/register/ledger-core/gnc-ledger-display.c
+++ b/src/register/ledger-core/gnc-ledger-display.c
@@ -405,7 +405,7 @@ gnc_ledger_display_gl (void)
/* In lieu of not "mis-using" some portion of the infrastructure by writing
* a bunch of new code, we just filter out the accounts of the template
- * transactions. While these are in a seperate Account trees just for this
+ * transactions. While these are in a separate Account trees just for this
* reason, the query engine makes no distinction between Account trees.
* See Gnome Bug 86302.
* -- jsled */
diff --git a/src/register/ledger-core/gnc-ledger-display2.c b/src/register/ledger-core/gnc-ledger-display2.c
index 97b45bd510..d7bf92874e 100644
--- a/src/register/ledger-core/gnc-ledger-display2.c
+++ b/src/register/ledger-core/gnc-ledger-display2.c
@@ -414,7 +414,7 @@ gnc_ledger_display2_gl (void)
/* In lieu of not "mis-using" some portion of the infrastructure by writing
* a bunch of new code, we just filter out the accounts of the template
- * transactions. While these are in a seperate Account trees just for this
+ * transactions. While these are in a separate Account trees just for this
* reason, the query engine makes no distinction between Account trees.
* See Gnome Bug 86302.
* -- jsled */
diff --git a/src/register/ledger-core/split-register-p.h b/src/register/ledger-core/split-register-p.h
index 9822e003d3..3d53ccec7e 100644
--- a/src/register/ledger-core/split-register-p.h
+++ b/src/register/ledger-core/split-register-p.h
@@ -90,7 +90,7 @@ struct sr_info
/** The last date recorded in the blank split */
time64 last_date_entered;
- /** true if the current blank split has been edited and commited */
+ /** true if the current blank split has been edited and committed */
gboolean blank_split_edited;
/** true if the demarcation between 'past' and 'future' transactions
diff --git a/src/register/ledger-core/split-register.h b/src/register/ledger-core/split-register.h
index a00265bb58..c9aae12778 100644
--- a/src/register/ledger-core/split-register.h
+++ b/src/register/ledger-core/split-register.h
@@ -438,7 +438,7 @@ Split * gnc_split_register_duplicate_current (SplitRegister *reg);
void gnc_split_register_copy_current (SplitRegister *reg);
/** Equivalent to copying the current entity and the deleting it with
- * the approriate delete method. */
+ * the appropriate delete method. */
void gnc_split_register_cut_current (SplitRegister *reg);
/** Pastes a previous copied entity onto the current entity, but only
diff --git a/src/register/register-core/cellblock.h b/src/register/register-core/cellblock.h
index f917412ad8..d3e5258aab 100644
--- a/src/register/register-core/cellblock.h
+++ b/src/register/register-core/cellblock.h
@@ -81,7 +81,7 @@ void gnc_cellblock_destroy (CellBlock *cellblock);
/** Add a cell to the CellBlock at the specified coordinates. The CellBlock
* takes ownership of the Cell. If there's already a Cell at the location it
- * will be leaked, so callers shoud first call gnc_cellblock_get_cell() and
+ * will be leaked, so callers should first call gnc_cellblock_get_cell() and
* delete the result if it's not NULL.
* @param cellblock The CellBlock
* @param row The row at which to add the cell
diff --git a/src/register/register-core/combocell.h b/src/register/register-core/combocell.h
index e04171b090..1878097a72 100644
--- a/src/register/register-core/combocell.h
+++ b/src/register/register-core/combocell.h
@@ -95,7 +95,7 @@ void gnc_combo_cell_set_autosize (ComboCell *cell, gboolean autosize);
* of the cpu is spent building the multi-thousand entry quickfill.
* When a shared quickfill is specified, the combo-cell will not add to
* nor delete the quickfill; it is the users resonsibility to manage the
- * quickfill object. The combocell will *not* make a copy of teh quickfill.
+ * quickfill object. The combocell will *not* make a copy of the quickfill.
*/
void gnc_combo_cell_use_quickfill_cache (ComboCell *cell, QuickFill *shared_qf);
diff --git a/src/register/register-core/datecell.h b/src/register/register-core/datecell.h
index 0f72b58bc1..fb56881308 100644
--- a/src/register/register-core/datecell.h
+++ b/src/register/register-core/datecell.h
@@ -52,13 +52,13 @@
* '[': decrment month
*
* 'M':
- * 'm': begining of month
+ * 'm': beginning of month
*
* 'H':
* 'h': end of month
*
* 'Y':
- * 'y': begining of year
+ * 'y': beginning of year
*
* 'R':
* 'r': end of year
diff --git a/src/register/register-core/table-allgui.c b/src/register/register-core/table-allgui.c
index 8e7a010820..f289595754 100644
--- a/src/register/register-core/table-allgui.c
+++ b/src/register/register-core/table-allgui.c
@@ -136,7 +136,7 @@ gnc_table_destroy (Table * table)
gnc_table_model_destroy (table->model);
table->model = NULL;
- /* intialize vars to null value so that any access is voided. */
+ /* initialize vars to null value so that any access is voided. */
gnc_table_init (table);
g_free (table);
diff --git a/src/report/business-reports/balsheet-eg.scm b/src/report/business-reports/balsheet-eg.scm
index 24495af25f..0050fa3495 100644
--- a/src/report/business-reports/balsheet-eg.scm
+++ b/src/report/business-reports/balsheet-eg.scm
@@ -469,7 +469,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; accrec-related routines
;;;
- ;;; The accrec record stucture (defined above) and the following
+ ;;; The accrec record structure (defined above) and the following
;;; routines provide the basis for easy access to accounts
;;; from the main part of the report
diff --git a/src/report/business-reports/fancy-invoice.scm b/src/report/business-reports/fancy-invoice.scm
index 319ac0e4f9..2a41c1c78d 100644
--- a/src/report/business-reports/fancy-invoice.scm
+++ b/src/report/business-reports/fancy-invoice.scm
@@ -43,7 +43,7 @@
;; template. The most common used templates will be distributed with
;; gnucash.
-;; Modifed to use settable options instead of the hard coded ones.
+;; Modified to use settable options instead of the hard coded ones.
;; modified by Brian Dolbec Feb. 6, 2006
(define-module (gnucash report fancy-invoice))
diff --git a/src/report/locale-specific/us/taxtxf-de_DE.scm b/src/report/locale-specific/us/taxtxf-de_DE.scm
index 9a06bc9e56..62130fbbe6 100644
--- a/src/report/locale-specific/us/taxtxf-de_DE.scm
+++ b/src/report/locale-specific/us/taxtxf-de_DE.scm
@@ -40,7 +40,7 @@
;; Optionally prints brief or full account names
;;
;; NOTE: setting of specific dates is squirly! and seems to be
-;; current-date dependant! Actually, time of day dependant! Just
+;; current-date dependent! Actually, time of day dependent! Just
;; after midnight gives different dates than just before! Referencing
;; all times to noon seems to fix this. Subtracting 1 year sometimes
;; subtracts 2! see "(to-value"
diff --git a/src/report/locale-specific/us/taxtxf.scm b/src/report/locale-specific/us/taxtxf.scm
index 96e676a09a..7b7e628f98 100644
--- a/src/report/locale-specific/us/taxtxf.scm
+++ b/src/report/locale-specific/us/taxtxf.scm
@@ -12,7 +12,7 @@
;; deductible expenses and the accounts need to be referenced to the tax codes.
;; However, there is no need to limit tax codes to just one account. For codes
;; like N286 (Dividend, Ordinary) that can have the "payer" printed on
-;; Schedule B on seperate lines, to have amounts from different accounts
+;; Schedule B on separate lines, to have amounts from different accounts
;; summarized together for one "payer" line, the accounts referenced to the
;; same tax code for a given "payer" need to be adjacent to each other in the
;; account hierarchy.
@@ -65,7 +65,7 @@
;;
;; From prior version:
;; NOTE: setting of specific dates is squirly! and seems
-;; to be current-date dependant! Actually, time of day dependant! Just
+;; to be current-date dependent! Actually, time of day dependent! Just
;; after midnight gives diffenent dates than just before! Referencing
;; all times to noon seems to fix this. Subtracting 1 year sometimes
;; subtracts 2! see "(to-value"
diff --git a/src/report/report-system/html-acct-table.scm b/src/report/report-system/html-acct-table.scm
index e489524907..518d52af3b 100644
--- a/src/report/report-system/html-acct-table.scm
+++ b/src/report/report-system/html-acct-table.scm
@@ -82,7 +82,7 @@
;; option may have.
;;
;; The list of accounts which are to be placed in the
-;; gnc:html-acct-table object can be controled with the
+;; gnc:html-acct-table object can be controlled with the
;; gnc:make-html-acct-table/accts, gnc:make-html-acct-table/env/accts,
;; and gnc:html-table-add-accts! functions. But you should only use
;; one of these methods to add accounts.
@@ -338,7 +338,7 @@
;; account-depth when depth-limit-behavior is 'flatten.
;; unlike in gnc:html-build-acct-table, the first level of
;; accounts is level 0. this means that display-depth is also
-;; the number of empty cells which should preceed the account
+;; the number of empty cells which should preced the account
;; name in the gnc:html-table being generated.
;;
;; indented-depth: integer
@@ -368,7 +368,7 @@
;; value of display-tree-depth, plus indent plus zero, if
;; parent-account-subotal-mode is not 'canonically-tabbed, or,
;; if parent-account-subtotal-mode is 'canonically-tabbed,
-;; plus one. dont you just love english?
+;; plus one. don't you just love english?
;;
;; account-colspan: integer
;;
@@ -440,7 +440,7 @@
;; widget. While, when selecting whole subtrees of accounts, this may
;; be tedious, this really is a GUI problem. The ideal solution would
;; be to give the Account selection widget a "recursively select"
-;; option which selects (i.e., hilights) both the account selected and
+;; option which selects (i.e., highlights) both the account selected and
;; all its subaccounts. Note that, as a worst-case workaround, the
;; user could always use the spacebar and arrow keys to select entire
;; subtrees rather rapidly. It order to make this shortcoming as
@@ -874,7 +874,7 @@
)
)
;; Recurse:
- ;; Dive into an account even if it isnt selected!
+ ;; Dive into an account even if it isn't selected!
;; why? because some subaccts may be selected.
(set! children-displayed?
(traverse-accounts! subaccts
diff --git a/src/report/report-system/html-utilities.scm b/src/report/report-system/html-utilities.scm
index d156605021..5fe50f04d9 100644
--- a/src/report/report-system/html-utilities.scm
+++ b/src/report/report-system/html-utilities.scm
@@ -370,7 +370,7 @@
;; according to their types and show a subtotal for each group.
;;
;; show-parent-balance?: Specify whether to show balances of
-;; non-leaf accounts seperately.
+;; non-leaf accounts separately.
;;
;; show-parent-total?: Whether to show a line with the label
;; e.g. "Total My-Assets" and the subtotal for this account and its
diff --git a/src/report/report-system/options-utilities.scm b/src/report/report-system/options-utilities.scm
index c901851a2b..6a0e5efc4c 100644
--- a/src/report/report-system/options-utilities.scm
+++ b/src/report/report-system/options-utilities.scm
@@ -24,7 +24,7 @@
(use-modules (gnucash gettext))
;; These are just a bunch of options which were useful in several
-;; reports and hence they got defined in a seperate function.
+;; reports and hence they got defined in a separate function.
;; This is one single end-date of a report.
(define (gnc:options-add-report-date!
diff --git a/src/report/report-system/report.scm b/src/report/report-system/report.scm
index 1b6c420e82..867ef408bd 100644
--- a/src/report/report-system/report.scm
+++ b/src/report/report-system/report.scm
@@ -641,7 +641,7 @@
(overwrite-ok? (and (gnc:report-template-is-custom/template-guid? custom-template-id) overwrite?))
;; Generate a serialized report-template with a random guid
(saved-form (gnc:report-template-serialize-from-report report))
- ;; Immediatly evaluate the serialized report template to
+ ;; Immediately evaluate the serialized report template to
;; - check if it's error free and can be deserialized
;; - load it into the runtime for immediate use by the user
;; (Bug #342206)
diff --git a/src/report/standard-reports/advanced-portfolio.scm b/src/report/standard-reports/advanced-portfolio.scm
index 918511fd3e..b39f122963 100644
--- a/src/report/standard-reports/advanced-portfolio.scm
+++ b/src/report/standard-reports/advanced-portfolio.scm
@@ -606,7 +606,7 @@
((split-account-type? s ACCT-TYPE-ASSET)
;; If all the asset accounts mentioned in the transaction are siblings of each other
- ;; keep track of the money transfered to them if it is in the correct currency
+ ;; keep track of the money transferred to them if it is in the correct currency
(if (not trans-drp-account)
(begin
(set! trans-drp-account (xaccSplitGetAccount s))
diff --git a/src/report/standard-reports/balance-sheet.scm b/src/report/standard-reports/balance-sheet.scm
index 7856b9cb01..e79d85ce81 100644
--- a/src/report/standard-reports/balance-sheet.scm
+++ b/src/report/standard-reports/balance-sheet.scm
@@ -409,7 +409,7 @@
)
;; (gnc:sum-collector-stocks balance report-commodity exchange-fn)
;; Hey! Look at that! This rolls the stocks into the balance!
- ;; Can anyone think of a reason why this would be desireable?
+ ;; Can anyone think of a reason why this would be desirable?
;; None come to (my) mind. Perhaps this should be a report option?
;; Wrapper around gnc:html-table-append-ruler! since we call it so
diff --git a/src/report/standard-reports/budget-barchart.scm b/src/report/standard-reports/budget-barchart.scm
index 5267e963b3..5e4973dcef 100644
--- a/src/report/standard-reports/budget-barchart.scm
+++ b/src/report/standard-reports/budget-barchart.scm
@@ -136,10 +136,10 @@
;; For each period in the budget:
-;; Retrive the budgeted running sum and actual running sum
+;; Retrieve the budgeted running sum and actual running sum
;; for bac chart.
;;
-;; Create bar and and vaules
+;; Create bar and and values
;;
(define (gnc:chart-create-budget-actual budget acct running-sum chart-type width height from-tp to-tp)
(let* (
diff --git a/src/report/standard-reports/budget-flow.scm b/src/report/standard-reports/budget-flow.scm
index fd65a9dd9b..fab3b28f0d 100644
--- a/src/report/standard-reports/budget-flow.scm
+++ b/src/report/standard-reports/budget-flow.scm
@@ -112,7 +112,7 @@
)))
;; For each account in acct-table:
-;; Retrive the budgeted and actual amount
+;; Retrieve the budgeted and actual amount
;; Display the row
;;
;; Display the grand total for acct-table
@@ -140,7 +140,7 @@
;; If acct has children do nto display (see above)
(if (null? (gnc-account-get-children acct))
(let* (
- ;; Retrive the budgeted and actual amount and convert to
+ ;; Retrieve the budgeted and actual amount and convert to
(comm (xaccAccountGetCommodity acct))
(bgt-numeric (gnc-budget-get-account-period-value budget acct (- period 1)))
(bgt-monetary (gnc:make-gnc-monetary comm bgt-numeric))
@@ -261,7 +261,7 @@
(define (budget-renderer report-obj)
- ;; Helper function retrives options
+ ;; Helper function retrieves options
(define (get-option pagename optname)
(gnc:option-value
(gnc:lookup-option
diff --git a/src/report/standard-reports/trial-balance.scm b/src/report/standard-reports/trial-balance.scm
index d7e017a058..e4b8ba411e 100644
--- a/src/report/standard-reports/trial-balance.scm
+++ b/src/report/standard-reports/trial-balance.scm
@@ -970,7 +970,7 @@
credit-entry
)
)
- ;; update the corresponing running total
+ ;; update the corresponding running total
(and bal
(begin
(if credit?
@@ -1112,7 +1112,7 @@
)
)
- ;; ...and thats a complete trial balance/work sheet
+ ;; ...and that's a complete trial balance/work sheet
(gnc:html-document-add-object! doc build-table)
diff --git a/src/scm/string.scm b/src/scm/string.scm
index a21fb4b2d9..c70bf13ffc 100644
--- a/src/scm/string.scm
+++ b/src/scm/string.scm
@@ -97,7 +97,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; gnc:substring-replace-from-to
;; same as gnc:substring-replace extended by:
-;; start: from which occurrance onwards the replacement shall start
+;; start: from which occurrence onwards the replacement shall start
;; end-after: max. number times the replacement should executed
;;
;; Example: (gnc:substring-replace-from-to "foobarfoobarfoobar" "bar" "xyz" 2 2)
diff --git a/src/scm/substring-search.scm b/src/scm/substring-search.scm
index e4b6c79eb6..bb249802aa 100644
--- a/src/scm/substring-search.scm
+++ b/src/scm/substring-search.scm
@@ -79,7 +79,7 @@
;;; Provides the generic facility to split based on *any* character
;;; We make use of splitting on spaces and on colons...
-;;; Find the next occurance of [somechar] in the string [string]
+;;; Find the next occurrence of [somechar] in the string [string]
;;; starting at [startpos]