From 95f888489220310b8282adf7294fdc70ebedf307 Mon Sep 17 00:00:00 2001 From: luz paz Date: Mon, 28 Jun 2021 20:50:24 -0400 Subject: [PATCH] Fix misc. typos in comments --- bindings/guile/utilities.scm | 2 +- .../example_scripts/new_book_with_opening_balances.py | 4 ++-- bindings/python/function_class.py | 2 +- borrowed/chartjs/Chart.bundle.js | 8 ++++---- borrowed/chartjs/Chart.js | 8 ++++---- borrowed/guile-json/README.org | 2 +- gnucash/environment.in | 2 +- gnucash/gnome-utils/dialog-account.c | 2 +- gnucash/gnome-utils/dialog-doclink-utils.h | 6 +++--- gnucash/gnome-utils/dialog-preferences.c | 2 +- gnucash/gnome-utils/gnc-gnome-utils.c | 2 +- gnucash/gnome/assistant-hierarchy.c | 2 +- gnucash/gnome/dialog-doclink.h | 2 +- gnucash/gnome/dialog-find-account.c | 2 +- gnucash/gnome/gnc-budget-view.c | 2 +- gnucash/gnome/gnc-split-reg.c | 2 +- gnucash/gnome/gnc-split-reg2.c | 2 +- gnucash/report/reports/locale-specific/us/taxtxf.scm | 2 +- gnucash/report/reports/standard/balsheet-eg.scm | 2 +- libgnucash/doc/finutil.html | 2 +- 20 files changed, 29 insertions(+), 29 deletions(-) diff --git a/bindings/guile/utilities.scm b/bindings/guile/utilities.scm index 4b1e3c2794..6baa3b38db 100644 --- a/bindings/guile/utilities.scm +++ b/bindings/guile/utilities.scm @@ -84,7 +84,7 @@ (else vec))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; general and efficent string-replace-substring function, based on +;; general and efficient string-replace-substring function, based on ;; function designed by Mark H Weaver, core guile developer. avoids ;; string-append which will constantly build new strings. augmented ;; with start and end indices; will selective choose to replace diff --git a/bindings/python/example_scripts/new_book_with_opening_balances.py b/bindings/python/example_scripts/new_book_with_opening_balances.py index 3a2d04e7bb..e12f0cfaf1 100644 --- a/bindings/python/example_scripts/new_book_with_opening_balances.py +++ b/bindings/python/example_scripts/new_book_with_opening_balances.py @@ -86,7 +86,7 @@ from datetime import date OPENING_DATE = (1, 1, 2011) # day, month, year -# possible acccount types of interest for opening balances +# possible account types of interest for opening balances ACCOUNT_TYPES_TO_OPEN = set( ( ACCT_TYPE_BANK, ACCT_TYPE_CASH, @@ -152,7 +152,7 @@ def record_opening_balance(original_account, new_account, new_book, # if there is a new currency type, associate with the currency # a Transaction which will be the opening transaction for that # currency and a GncNumeric value which will be the opening - # balance acccount amount + # balance account amount if commodity_tuple not in opening_balance_per_currency: trans = Transaction(new_book) trans.BeginEdit() diff --git a/bindings/python/function_class.py b/bindings/python/function_class.py index 5ed9f82f8c..6bc954f1ba 100644 --- a/bindings/python/function_class.py +++ b/bindings/python/function_class.py @@ -267,7 +267,7 @@ def default_arguments_decorator(function, *args, **kargs): a keyword argument default will be overwritten by a positional argument at the actual function call - this function modifies the docstring of the wrapped funtion to reflect + this function modifies the docstring of the wrapped function to reflect the defaults. You can't use this decorator with @, because this function has more diff --git a/borrowed/chartjs/Chart.bundle.js b/borrowed/chartjs/Chart.bundle.js index 59e2b96217..8dcd62621d 100755 --- a/borrowed/chartjs/Chart.bundle.js +++ b/borrowed/chartjs/Chart.bundle.js @@ -5713,7 +5713,7 @@ var controller_doughnut = core_datasetController.extend({ }, /** - * Returns the sum of all visibile data set weights. This value can be 0. + * Returns the sum of all visible data set weights. This value can be 0. * @private */ _getVisibleDatasetWeightTotal: function() { @@ -6762,7 +6762,7 @@ function getIntersectItems(chart, position) { } /** - * Helper function to get the items nearest to the event position considering all visible items in teh chart + * Helper function to get the items nearest to the event position considering all visible items in the chart * @param {Chart} chart - the chart to look at elements from * @param {object} position - the point to be nearest to * @param {boolean} intersect - if true, only consider items that intersect the position @@ -7234,7 +7234,7 @@ var core_layouts = { * Register a box to a chart. * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. * @param {Chart} chart - the chart to use - * @param {ILayoutItem} item - the item to add to be layed out + * @param {ILayoutItem} item - the item to add to be laid out */ addBox: function(chart, item) { if (!chart.boxes) { @@ -10981,7 +10981,7 @@ helpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ { /** * Returns the number of `unit` between the given timestamps. * @param {number} max - the input timestamp (reference) - * @param {number} min - the timestamp to substract + * @param {number} min - the timestamp to subtract * @param {Unit} unit - the unit as string * @return {number} * @function diff --git a/borrowed/chartjs/Chart.js b/borrowed/chartjs/Chart.js index e9c53c3ba4..d170a2c935 100755 --- a/borrowed/chartjs/Chart.js +++ b/borrowed/chartjs/Chart.js @@ -5709,7 +5709,7 @@ var controller_doughnut = core_datasetController.extend({ }, /** - * Returns the sum of all visibile data set weights. This value can be 0. + * Returns the sum of all visible data set weights. This value can be 0. * @private */ _getVisibleDatasetWeightTotal: function() { @@ -6758,7 +6758,7 @@ function getIntersectItems(chart, position) { } /** - * Helper function to get the items nearest to the event position considering all visible items in teh chart + * Helper function to get the items nearest to the event position considering all visible items in the chart * @param {Chart} chart - the chart to look at elements from * @param {object} position - the point to be nearest to * @param {boolean} intersect - if true, only consider items that intersect the position @@ -7230,7 +7230,7 @@ var core_layouts = { * Register a box to a chart. * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. * @param {Chart} chart - the chart to use - * @param {ILayoutItem} item - the item to add to be layed out + * @param {ILayoutItem} item - the item to add to be laid out */ addBox: function(chart, item) { if (!chart.boxes) { @@ -10977,7 +10977,7 @@ helpers$1.extend(DateAdapter.prototype, /** @lends DateAdapter */ { /** * Returns the number of `unit` between the given timestamps. * @param {number} max - the input timestamp (reference) - * @param {number} min - the timestamp to substract + * @param {number} min - the timestamp to subtract * @param {Unit} unit - the unit as string * @return {number} * @function diff --git a/borrowed/guile-json/README.org b/borrowed/guile-json/README.org index be669e3f32..d2d343ae86 100644 --- a/borrowed/guile-json/README.org +++ b/borrowed/guile-json/README.org @@ -106,7 +106,7 @@ the module: A /json-invalid/ exception is thrown if an error is found during the JSON parsing. Since version 0.2.0, the /json-invalid/ exception has a single parser argument (see predicate and accessors below). The line or -column where the error occured can be easily obtained from the parser +column where the error occurred can be easily obtained from the parser port (calling /port-line/ or /port-column/ on the port). - (*json-parser?* parser) : Tells whether the given argument is a JSON diff --git a/gnucash/environment.in b/gnucash/environment.in index 3c03b74ee9..b4ef972df1 100644 --- a/gnucash/environment.in +++ b/gnucash/environment.in @@ -81,7 +81,7 @@ LTDL_LIBRARY_PATH={SYS_LIB};{GNC_LIB} # Linux - follows the freedesktop xdg data home specification # Windows - uses the user's AppData(Roaming)\GnuCash # OS X/Quarz - uses the value of NSApplicationSupportDirectory/GnuCash -# If these are not what you want, you can override it in enviromnent.local +# If these are not what you want, you can override it in environment.local # GNC_DATA_HOME= # Similarly you can override the default location for AqBanking's settings. diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c index 0035d4c24a..bcc1664965 100644 --- a/gnucash/gnome-utils/dialog-account.c +++ b/gnucash/gnome-utils/dialog-account.c @@ -616,7 +616,7 @@ gnc_finish_ok (AccountWindow *aw) Account *account; GtkTreeSelection *selection; - /* Drop the old parent_tree so we can update it with an upto date one */ + /* Drop the old parent_tree so we can update it with an up to date one */ gtk_container_remove (GTK_CONTAINER(aw->parent_scroll), GTK_WIDGET(aw->parent_tree)); aw->parent_tree = gnc_tree_view_account_new (TRUE); gtk_container_add (GTK_CONTAINER(aw->parent_scroll), GTK_WIDGET(aw->parent_tree)); diff --git a/gnucash/gnome-utils/dialog-doclink-utils.h b/gnucash/gnome-utils/dialog-doclink-utils.h index 512aaf7c24..0d2b6a36d1 100644 --- a/gnucash/gnome-utils/dialog-doclink-utils.h +++ b/gnucash/gnome-utils/dialog-doclink-utils.h @@ -25,7 +25,7 @@ #define GNC_DOC_LINK_PATH_HEAD "assoc-head" /* Note, assoc-head is the old name for the document link head which has been - kept for compatability */ + kept for compatibility */ /** Return the current documentation-link file path head uri. @@ -83,7 +83,7 @@ gchar * gnc_doclink_convert_trans_link_uri (gpointer trans, gboolean book_ro); * The function allocates memory for the uri. The calling function should * free this memory with g_free when the unescaped uri is no longer needed. - * Return an unesacped uri for displaying and if OS is windows change the + * Return an unescaped uri for displaying and if OS is windows change the * '/' to '\' to look like a traditional windows path * * @param path_head The starting common path head @@ -99,7 +99,7 @@ gchar * gnc_doclink_get_unescape_uri (const gchar *path_head, const gchar *uri, * The function allocates memory for the uri. The calling function should * free this memory with g_free when the unescaped uri is no longer needed. - * Return an unesacped uri for displaying and if OS is windows change the + * Return an unescaped uri for displaying and if OS is windows change the * '/' to '\' to look like a traditional windows path * * @param uri The document link diff --git a/gnucash/gnome-utils/dialog-preferences.c b/gnucash/gnome-utils/dialog-preferences.c index a6a1bcb12f..2e374bdeaa 100644 --- a/gnucash/gnome-utils/dialog-preferences.c +++ b/gnucash/gnome-utils/dialog-preferences.c @@ -1510,7 +1510,7 @@ gnc_preferences_dialog_create (GtkWindow *parent) g_object_unref (G_OBJECT(builder)); - /* save the original account separator incase it changes */ + /* save the original account separator in case it changes */ g_object_set_data_full (G_OBJECT(entry), "original_text", g_strdup (gtk_entry_get_text (GTK_ENTRY(entry))), g_free); diff --git a/gnucash/gnome-utils/gnc-gnome-utils.c b/gnucash/gnome-utils/gnc-gnome-utils.c index a771f3525b..aaefcf5670 100644 --- a/gnucash/gnome-utils/gnc-gnome-utils.c +++ b/gnucash/gnome-utils/gnc-gnome-utils.c @@ -231,7 +231,7 @@ gnc_add_css_file (void) } /* This function fixes an issue with yelp that it does not work with the - * ?anchor varient, see https://gitlab.gnome.org/GNOME/yelp/issues/116 + * ?anchor variant, see https://gitlab.gnome.org/GNOME/yelp/issues/116 */ static gchar * gnc_gnome_help_yelp_anchor_fix (GtkWindow *parent, const char *file_name, const char *anchor) diff --git a/gnucash/gnome/assistant-hierarchy.c b/gnucash/gnome/assistant-hierarchy.c index 6d39f37ad3..cc37ee0851 100644 --- a/gnucash/gnome/assistant-hierarchy.c +++ b/gnucash/gnome/assistant-hierarchy.c @@ -558,7 +558,7 @@ update_language_region_combos (hierarchy_data *data, const gchar *locale_dir) g_dir_close (acct_dir); } - // now try and set the language combo to the defualt language + // now try and set the language combo to the default language valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL(language_store), &language_iter); while (valid) { diff --git a/gnucash/gnome/dialog-doclink.h b/gnucash/gnome/dialog-doclink.h index b313b0cfdd..15bc90d390 100644 --- a/gnucash/gnome/dialog-doclink.h +++ b/gnucash/gnome/dialog-doclink.h @@ -30,7 +30,7 @@ * * @param parent The GtkWindow for the parent widget * @param title The dialog title to be used for the dialog - * @param uri The old uri to be ammended in the dialog + * @param uri The old uri to be amended in the dialog * * @return The ammeded uri, can be NULL if deletion required. */ diff --git a/gnucash/gnome/dialog-find-account.c b/gnucash/gnome/dialog-find-account.c index f92426934f..438597f5ba 100644 --- a/gnucash/gnome/dialog-find-account.c +++ b/gnucash/gnome/dialog-find-account.c @@ -289,7 +289,7 @@ filter_button_cb (GtkButton *button, FindAccountDialog *facc_dialog) if (facc_dialog->saved_filter_text) g_free (facc_dialog->saved_filter_text); - // save the filter incase of an account event + // save the filter in case of an account event facc_dialog->saved_filter_text = g_strdup (gtk_entry_get_text (GTK_ENTRY(facc_dialog->filter_text_entry))); diff --git a/gnucash/gnome/gnc-budget-view.c b/gnucash/gnome/gnc-budget-view.c index 0b288da2f8..851edc8b9a 100644 --- a/gnucash/gnome/gnc-budget-view.c +++ b/gnucash/gnome/gnc-budget-view.c @@ -385,7 +385,7 @@ gbv_tree_view_model_row_changed_cb (GtkTreeModel *tree_model, GtkTreePath *path, GncBudgetView *budget_view = user_data; GncBudgetViewPrivate *priv = GNC_BUDGET_VIEW_GET_PRIVATE(budget_view); - // The model row-changed signal can be emmitted multiple times so we + // The model row-changed signal can be emitted multiple times so we // use an idle_add to do a redraw of the totals tree view once g_idle_remove_by_data (priv->totals_tree_view); g_idle_add ((GSourceFunc)gbv_totals_tree_view_redraw_idle, priv->totals_tree_view); diff --git a/gnucash/gnome/gnc-split-reg.c b/gnucash/gnome/gnc-split-reg.c index 682979c242..38cfbfa6c3 100644 --- a/gnucash/gnome/gnc-split-reg.c +++ b/gnucash/gnome/gnc-split-reg.c @@ -561,7 +561,7 @@ gnc_split_reg_raise( GNCSplitReg *gsr ) /** - * Duplicate-code reduction function; retreives, formats and updates the + * Duplicate-code reduction function; retrieves, formats and updates the * GtkLabel with the given amount. **/ static diff --git a/gnucash/gnome/gnc-split-reg2.c b/gnucash/gnome/gnc-split-reg2.c index 20191b109c..6d9647b222 100644 --- a/gnucash/gnome/gnc-split-reg2.c +++ b/gnucash/gnome/gnc-split-reg2.c @@ -458,7 +458,7 @@ gnc_split_reg2_raise (GNCSplitReg2 *gsr) /** - * Duplicate-code reduction function; retreives, formats and updates the + * Duplicate-code reduction function; retrieves, formats and updates the * GtkLabel with the given amount. **/ static diff --git a/gnucash/report/reports/locale-specific/us/taxtxf.scm b/gnucash/report/reports/locale-specific/us/taxtxf.scm index 422d8b2ed4..ddd1b59581 100644 --- a/gnucash/report/reports/locale-specific/us/taxtxf.scm +++ b/gnucash/report/reports/locale-specific/us/taxtxf.scm @@ -617,7 +617,7 @@ ;; if neither trans-currency nor account-commodity = USD-currency, ;; use split amount & pricedb lookup using lookup date ;; returns the converted amount, the conversion text, and, if the conversion -;; price was looked up, the pricedb-lookup-price and addtitional text in +;; price was looked up, the pricedb-lookup-price and additional text in ;; a list (let* diff --git a/gnucash/report/reports/standard/balsheet-eg.scm b/gnucash/report/reports/standard/balsheet-eg.scm index f8b9d10f8d..7a414a18e8 100644 --- a/gnucash/report/reports/standard/balsheet-eg.scm +++ b/gnucash/report/reports/standard/balsheet-eg.scm @@ -58,7 +58,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -;; Define an account record for cacheing information about all the accounts +;; Define an account record for caching information about all the accounts (define-record-type (newaccrec-full account code placeholder? namelink commodity balance-num depth diff --git a/libgnucash/doc/finutil.html b/libgnucash/doc/finutil.html index da9700ed5c..ca8687e3bf 100644 --- a/libgnucash/doc/finutil.html +++ b/libgnucash/doc/finutil.html @@ -174,7 +174,7 @@ the interest, with the principal due at the end of the loan period (an interest only loan), or large enough to fully repay both the interest and principal during the term of the loan (a fully amoritized loan). Many loans fall somewhere between, with payments that do not fully cover repayment of -both the principal and interest. These loans require a larger final payment +both the principal and interest. These loans require a larger final payment (balloon) to complete their amortization. Payments may occur at the beginning or end of a payment period. If you and your friend had agreed on monthly repayment of the $800 loan at 12% NAR compounded monthly, twelve