Fix misc. typos in comments

This commit is contained in:
luz paz 2021-06-28 20:50:24 -04:00 committed by Frank H. Ellenberger
parent 69db692a2f
commit 95f8884892
20 changed files with 29 additions and 29 deletions

View File

@ -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

View File

@ -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()

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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));

View File

@ -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

View File

@ -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);

View File

@ -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)

View File

@ -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)
{

View File

@ -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.
*/

View File

@ -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)));

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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*

View File

@ -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 <accrec>
(newaccrec-full account code placeholder? namelink commodity balance-num depth

View File

@ -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