Fix some typos in comments

This commit is contained in:
Richard Cohen 2023-01-31 18:16:33 +00:00
parent 9b95419608
commit 3957272ef0
10 changed files with 11 additions and 11 deletions

View File

@ -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 section_op A function to be called on each section name
* @param option_op a function to be called on each option * @param option_op a function to be called on each option
*/ */

View File

@ -622,7 +622,7 @@ gnc_prefs_move_grid_entry (GtkWidget *child,
/** At dialog creation time, this function will be called once per /** 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 * dialog. It handles both the case of a full page being added to
* the dialog, and a partial page being added. * the dialog, and a partial page being added.
* *

View File

@ -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 * * Args: widget - the label widget to set alignment on *
* xalign - x alignment * * xalign - x alignment *
@ -431,7 +431,7 @@ gnc_gdate_in_valid_range (GDate *test_date, gboolean warn)
if (warn && !ret) 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 " gchar *dialog_msg = _("The entered date is out of the range "
"01/01/1400 - 31/12/9999, resetting to this year"); "01/01/1400 - 31/12/9999, resetting to this year");
gchar *dialog_title = _("Date out of range"); gchar *dialog_title = _("Date out of range");

View File

@ -69,7 +69,7 @@ void gnc_save_window_size (const char *section, GtkWindow *window);
void gnc_window_adjust_for_screen (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 * * Args: widget - the label widget to set alignment on *
* xalign - x alignment * * xalign - x alignment *

View File

@ -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); round(gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(progress_bar)) * 100.0);
if (percentage >= 0 && percentage <= 100.0 && if (percentage >= 0 && percentage <= 100.0 &&
round(percentage) == curr_fraction) 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) if (percentage <= 0)
{ {

View File

@ -158,7 +158,7 @@ scm_run_gnucash (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char **
Gnucash::gnc_load_scm_config(); Gnucash::gnc_load_scm_config();
/* Setting-up the report menu must come after the module /* 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(); gnc_plugin_report_system_new();
/* TODO: After some more guile-extraction, this should happen even /* TODO: After some more guile-extraction, this should happen even

View File

@ -164,7 +164,7 @@
(N_ "Height of plot, 10 - 100 in percent, above in pixels.") (N_ "Height of plot, 10 - 100 in percent, above in pixels.")
height))) 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! (define (gnc:options-add-marker-choice!
options pagename optname sort-tag default) options pagename optname sort-tag default)
(gnc-register-multichoice-option (gnc:optiondb options) (gnc-register-multichoice-option (gnc:optiondb options)

View File

@ -337,7 +337,7 @@ GncSqlBackend::load (QofBook* book, QofBackendLoadType loadType)
}); });
m_postload_commodities.clear(); 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 * dirty with this backend
*/ */
qof_book_mark_session_saved (book); qof_book_mark_session_saved (book);

View File

@ -66,7 +66,7 @@ typedef enum
typedef struct AccountPrivate typedef struct AccountPrivate
{ {
/* The accountName is an arbitrary string assigned by the user. /* 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. * is displayed by the GUI as the account mnemonic.
*/ */
const char *accountName; const char *accountName;

View File

@ -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 * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as * * modify it under the terms of the GNU General Public License as *