From 59994abfcd221be21ed931e75f72eec70c83ead2 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 4 Jun 2022 01:59:17 -0400 Subject: [PATCH] Fix various typos in the source Found via `codespell -q 3 -S *.po` --- src/Core/Main.vala | 14 +++++++------- src/Gtk/SettingsWindow.vala | 2 +- src/Utility/Device.vala | 2 +- src/Utility/FileItem.vala | 2 +- src/Utility/FsTabEntry.vala | 2 +- src/Utility/GtkHelper.vala | 8 ++++---- src/Utility/RsyncTask.vala | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Core/Main.vala b/src/Core/Main.vala index bb53e38..c640489 100644 --- a/src/Core/Main.vala +++ b/src/Core/Main.vala @@ -275,7 +275,7 @@ public class Main : GLib.Object{ this.app_conf_path = "/etc/timeshift/timeshift.json"; this.app_conf_path_old = "/etc/timeshift.json"; this.app_conf_path_default = "/etc/timeshift/default.json"; - //sys_root and sys_home will be initalized by update_partition_list() + //sys_root and sys_home will be initialized by update_partition_list() // check if running locally ------------------------ @@ -1374,7 +1374,7 @@ public class Main : GLib.Object{ // rsync file system ------------------- - progress_text = _("Synching files with rsync..."); + progress_text = _("Syncing files with rsync..."); log_msg(progress_text); var log_file = snapshot_path + "/rsync-log"; @@ -1850,7 +1850,7 @@ public class Main : GLib.Object{ Note: Mapped name may be different on running system, or it may be same. - Since it is not reliable, we will try to identify the parent intead of the mapped device. + Since it is not reliable, we will try to identify the parent instead of the mapped device. */ if (fs_entry.device_string.has_prefix("/dev/mapper/")){ @@ -2395,7 +2395,7 @@ public class Main : GLib.Object{ } // sync file systems - sh += "echo '" + _("Synching file systems...") + "' \n"; + sh += "echo '" + _("Syncing file systems...") + "' \n"; sh += "sync ; sleep 10s; \n"; sh += "echo '' \n"; @@ -2565,7 +2565,7 @@ public class Main : GLib.Object{ progress_text = _("Comparing files with rsync..."); } else{ - progress_text = _("Synching files with rsync..."); + progress_text = _("Syncing files with rsync..."); } } @@ -2806,7 +2806,7 @@ public class Main : GLib.Object{ log_msg(_("Cloning system...")); } - progress_text = _("Synching files with rsync..."); + progress_text = _("Syncing files with rsync..."); log_msg(progress_text); bool ok = true; @@ -3796,7 +3796,7 @@ public class Main : GLib.Object{ public void query_subvolume_info(SnapshotRepo parent_repo){ - // SnapshotRepo contructor calls this code in load_snapshots() + // SnapshotRepo constructor calls this code in load_snapshots() // save the new object reference to repo since repo still holds previous object repo = parent_repo; diff --git a/src/Gtk/SettingsWindow.vala b/src/Gtk/SettingsWindow.vala index 0b5cea3..ae5b560 100644 --- a/src/Gtk/SettingsWindow.vala +++ b/src/Gtk/SettingsWindow.vala @@ -149,7 +149,7 @@ class SettingsWindow : Gtk.Window{ this.resize(def_width, def_height); - //backup_dev_box.refresh(); //will be triggerred indirectly + //backup_dev_box.refresh(); //will be triggered indirectly return false; } diff --git a/src/Utility/Device.vala b/src/Utility/Device.vala index d94eb97..b0c91f3 100755 --- a/src/Utility/Device.vala +++ b/src/Utility/Device.vala @@ -963,7 +963,7 @@ public class Device : GLib.Object{ filesystemtype - the type of filesystem mounted. options - the mount options for the filesystem dump - used by dump to decide if the filesystem needs dumping. - fsckorder - used by fsck to detrmine the fsck pass to use. + fsckorder - used by fsck to determine the fsck pass to use. */ /* Note: diff --git a/src/Utility/FileItem.vala b/src/Utility/FileItem.vala index 647c5ad..0d2c8bb 100644 --- a/src/Utility/FileItem.vala +++ b/src/Utility/FileItem.vala @@ -58,7 +58,7 @@ public class FileItem : GLib.Object,Gee.Comparable { public GLib.Icon icon; - // contructors ------------------------------- + // constructors ------------------------------- public FileItem(string name) { file_name = name; diff --git a/src/Utility/FsTabEntry.vala b/src/Utility/FsTabEntry.vala index f0045ce..a7c0a59 100755 --- a/src/Utility/FsTabEntry.vala +++ b/src/Utility/FsTabEntry.vala @@ -220,7 +220,7 @@ public class FsTabEntry : GLib.Object{ Note: Mapped name may be different on running system, or it may be same. - Since it is not reliable, we will try to identify the parent intead of the mapped device. + Since it is not reliable, we will try to identify the parent instead of the mapped device. */ if (device_string.has_prefix("/dev/mapper/")){ diff --git a/src/Utility/GtkHelper.vala b/src/Utility/GtkHelper.vala index fd56203..ce09a18 100644 --- a/src/Utility/GtkHelper.vala +++ b/src/Utility/GtkHelper.vala @@ -145,7 +145,7 @@ namespace TeeJee.GtkHelper{ public bool gtk_combobox_set_value (ComboBox combo, int index, string val){ - /* Conveniance function to set combobox value */ + /* Convenience function to set combobox value */ TreeIter iter; string comboVal; @@ -166,7 +166,7 @@ namespace TeeJee.GtkHelper{ public string gtk_combobox_get_value (ComboBox combo, int index, string default_value){ - /* Conveniance function to get combobox value */ + /* Convenience function to get combobox value */ if ((combo.model == null) || (combo.active < 0)) { return default_value; } @@ -181,7 +181,7 @@ namespace TeeJee.GtkHelper{ public GLib.Object gtk_combobox_get_selected_object (ComboBox combo, int index, GLib.Object default_value){ - /* Conveniance function to get combobox value */ + /* Convenience function to get combobox value */ if ((combo.model == null) || (combo.active < 0)) { return default_value; } @@ -196,7 +196,7 @@ namespace TeeJee.GtkHelper{ public int gtk_combobox_get_value_enum (ComboBox combo, int index, int default_value){ - /* Conveniance function to get combobox value */ + /* Convenience function to get combobox value */ if ((combo.model == null) || (combo.active < 0)) { return default_value; } diff --git a/src/Utility/RsyncTask.vala b/src/Utility/RsyncTask.vala index 9225f13..16ae179 100644 --- a/src/Utility/RsyncTask.vala +++ b/src/Utility/RsyncTask.vala @@ -101,7 +101,7 @@ public class RsyncTask : AsyncTask{ s size of a regular file is different and is being updated t modification time is different and is being updated p permissions are different and is being updated - o owner is differen and is being updated + o owner is different and is being updated g group is different and is being updated u reserved for future use. a ACL information changed.