From 3957272ef04d082315ddf38c57be9f6b5cf76e80 Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Tue, 31 Jan 2023 18:16:33 +0000 Subject: [PATCH] Fix some typos in comments --- bindings/guile/gnc-optiondb.i | 2 +- gnucash/gnome-utils/dialog-preferences.c | 2 +- gnucash/gnome-utils/dialog-utils.c | 4 ++-- gnucash/gnome-utils/dialog-utils.h | 2 +- gnucash/gnome-utils/gnc-splash.c | 2 +- gnucash/gnucash.cpp | 2 +- gnucash/report/options-utilities.scm | 2 +- libgnucash/backend/sql/gnc-sql-backend.cpp | 2 +- libgnucash/engine/AccountP.h | 2 +- libgnucash/engine/qofsession.cpp | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bindings/guile/gnc-optiondb.i b/bindings/guile/gnc-optiondb.i index d8ec8dfc0f..d757f66c55 100644 --- a/bindings/guile/gnc-optiondb.i +++ b/bindings/guile/gnc-optiondb.i @@ -2129,7 +2129,7 @@ gnc_register_multichoice_callback_option(GncOptionDBPtr& db, }); } - /** Tailred for gnc:generate-restore-forms. + /** Tailored for gnc:generate-restore-forms. * @param section_op A function to be called on each section name * @param option_op a function to be called on each option */ diff --git a/gnucash/gnome-utils/dialog-preferences.c b/gnucash/gnome-utils/dialog-preferences.c index c24eee64e7..2904d011e9 100644 --- a/gnucash/gnome-utils/dialog-preferences.c +++ b/gnucash/gnome-utils/dialog-preferences.c @@ -622,7 +622,7 @@ gnc_prefs_move_grid_entry (GtkWidget *child, /** At dialog creation time, this function will be called once per - * adds-in. It performs the work of adding the page into the main + * add-in. It performs the work of adding the page into the main * dialog. It handles both the case of a full page being added to * the dialog, and a partial page being added. * diff --git a/gnucash/gnome-utils/dialog-utils.c b/gnucash/gnome-utils/dialog-utils.c index e19f51209b..a231fc82fa 100644 --- a/gnucash/gnome-utils/dialog-utils.c +++ b/gnucash/gnome-utils/dialog-utils.c @@ -298,7 +298,7 @@ gnc_window_adjust_for_screen(GtkWindow * window) } /********************************************************************\ - * Sets the alignament of a Label Widget, GTK3 version specific. * + * Sets the alignment of a Label Widget, GTK3 version specific. * * * * Args: widget - the label widget to set alignment on * * xalign - x alignment * @@ -431,7 +431,7 @@ gnc_gdate_in_valid_range (GDate *test_date, gboolean warn) if (warn && !ret) { - // Transators: Use your locale date format here! + // Translators: Use your locale date format here! gchar *dialog_msg = _("The entered date is out of the range " "01/01/1400 - 31/12/9999, resetting to this year"); gchar *dialog_title = _("Date out of range"); diff --git a/gnucash/gnome-utils/dialog-utils.h b/gnucash/gnome-utils/dialog-utils.h index e89aee3a7d..c72e77d1e9 100644 --- a/gnucash/gnome-utils/dialog-utils.h +++ b/gnucash/gnome-utils/dialog-utils.h @@ -69,7 +69,7 @@ void gnc_save_window_size (const char *section, GtkWindow *window); void gnc_window_adjust_for_screen (GtkWindow * window); /********************************************************************\ - * Sets the alignament of a Label Widget, GTK3 version specific. * + * Sets the alignment of a Label Widget, GTK3 version specific. * * * * Args: widget - the label widget to set alignment on * * xalign - x alignment * diff --git a/gnucash/gnome-utils/gnc-splash.c b/gnucash/gnome-utils/gnc-splash.c index b274035f12..2e66334811 100644 --- a/gnucash/gnome-utils/gnc-splash.c +++ b/gnucash/gnome-utils/gnc-splash.c @@ -175,7 +175,7 @@ gnc_update_splash_screen (const gchar *string, double percentage) round(gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(progress_bar)) * 100.0); if (percentage >= 0 && percentage <= 100.0 && round(percentage) == curr_fraction) - return; // No change so don't wast time running the main loop + return; // No change so don't waste time running the main loop if (percentage <= 0) { diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp index 6c54baed91..856e4d2beb 100644 --- a/gnucash/gnucash.cpp +++ b/gnucash/gnucash.cpp @@ -158,7 +158,7 @@ scm_run_gnucash (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char ** Gnucash::gnc_load_scm_config(); /* Setting-up the report menu must come after the module - loading but before the gui initializat*ion. */ + loading but before the gui initialization. */ gnc_plugin_report_system_new(); /* TODO: After some more guile-extraction, this should happen even diff --git a/gnucash/report/options-utilities.scm b/gnucash/report/options-utilities.scm index eb81c1272f..d05bde7ed5 100644 --- a/gnucash/report/options-utilities.scm +++ b/gnucash/report/options-utilities.scm @@ -164,7 +164,7 @@ (N_ "Height of plot, 10 - 100 in percent, above in pixels.") height))) -;; A multicoice option for the marker of a scatter plot. +;; A multichoice option for the marker of a scatter plot. (define (gnc:options-add-marker-choice! options pagename optname sort-tag default) (gnc-register-multichoice-option (gnc:optiondb options) diff --git a/libgnucash/backend/sql/gnc-sql-backend.cpp b/libgnucash/backend/sql/gnc-sql-backend.cpp index cee7d5cdd0..6fc8cde97f 100644 --- a/libgnucash/backend/sql/gnc-sql-backend.cpp +++ b/libgnucash/backend/sql/gnc-sql-backend.cpp @@ -337,7 +337,7 @@ GncSqlBackend::load (QofBook* book, QofBackendLoadType loadType) }); m_postload_commodities.clear(); - /* Mark the sessoion as clean -- though it should never be marked + /* Mark the session as clean -- though it should never be marked * dirty with this backend */ qof_book_mark_session_saved (book); diff --git a/libgnucash/engine/AccountP.h b/libgnucash/engine/AccountP.h index 9de148482e..ef9fed9550 100644 --- a/libgnucash/engine/AccountP.h +++ b/libgnucash/engine/AccountP.h @@ -66,7 +66,7 @@ typedef enum typedef struct AccountPrivate { /* The accountName is an arbitrary string assigned by the user. - * It is intended to a short, 5 to 30 character long string that + * It is intended to be a short, 5 to 30 character long string that * is displayed by the GUI as the account mnemonic. */ const char *accountName; diff --git a/libgnucash/engine/qofsession.cpp b/libgnucash/engine/qofsession.cpp index 5ae072fc8f..79b5569fa6 100644 --- a/libgnucash/engine/qofsession.cpp +++ b/libgnucash/engine/qofsession.cpp @@ -1,5 +1,5 @@ /********************************************************************\ - * qofsesssion.cpp -- session access (connection to backend) * + * qofsession.cpp -- session access (connection to backend) * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as *