From 75e1bedecedda88b11001127b0a630c8f86255f4 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 31 May 2024 15:12:18 +0100 Subject: [PATCH] Correct spelling mistakes --- debian/changelog | 4 ++-- debian/runtill.1 | 2 +- quicktill/foodorder.py | 4 ++-- quicktill/listen.py | 2 +- quicktill/localutils.py | 2 +- quicktill/models.py | 4 ++-- quicktill/pdrivers.py | 2 +- quicktill/register.py | 2 +- quicktill/xero.py | 4 ++-- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3bfe6c6..6e1c81b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1144,7 +1144,7 @@ quicktill (16.0) stable; urgency=low * Update migration script to cope with more wine sizes - * Add note about updating modifers to release notes + * Add note about updating modifiers to release notes * Update emf2018 data for new schema @@ -1420,7 +1420,7 @@ quicktill (0.13.0) stable; urgency=low * Bump package name to quicktill4, version to 0.13 - * Allowe UserToken.user_id field to be nullable + * Allow UserToken.user_id field to be nullable * Add an 'autodetect' printer connection driver diff --git a/debian/runtill.1 b/debian/runtill.1 index caf0034..6c8094b 100644 --- a/debian/runtill.1 +++ b/debian/runtill.1 @@ -82,7 +82,7 @@ listening sockets for user tokens and barcodes. .TP .B dbshell Starts an interactive python session with the database initialised, an -ORM session started, the first two commends being "import +ORM session started, the first two commands being "import quicktill.td" and "from quicktill.models import *". .TP .B syncdb diff --git a/quicktill/foodorder.py b/quicktill/foodorder.py index c81ebcd..a37427d 100644 --- a/quicktill/foodorder.py +++ b/quicktill/foodorder.py @@ -308,12 +308,12 @@ def __init__(self, func, transid, menuurl, kitchenprinters, return foodmenu = self.menu_module if "menu" not in foodmenu.__dict__: - ui.infopopup(["The menu file was read succesfully, but did not " + ui.infopopup(["The menu file was read successfully, but did not " "contain a menu definition."], title="No menu defined") return if "footer" not in foodmenu.__dict__: - ui.infopopup(["The recipt footer definition is missing from " + ui.infopopup(["The receipt footer definition is missing from " "the menu file."], title="Footer missing") return if "dept" not in foodmenu.__dict__: diff --git a/quicktill/listen.py b/quicktill/listen.py index 5f23e63..42c1465 100644 --- a/quicktill/listen.py +++ b/quicktill/listen.py @@ -7,7 +7,7 @@ class db_listener: - """Listen for notifictions delivered via the database + """Listen for notifications delivered via the database Manages a list of channels and functions to be called when notifications are received on those channels. Deals with diff --git a/quicktill/localutils.py b/quicktill/localutils.py index ceca505..a0f2a6d 100644 --- a/quicktill/localutils.py +++ b/quicktill/localutils.py @@ -296,7 +296,7 @@ def stdkeyboard_20by7(line_base=1, cash_payment_method=None, (6, 0): Key(K_CLEAR, css_class="clear"), (0, 1): Key(K_MANAGETILL, css_class="management"), (1, 1): Key(K_MANAGESTOCK, css_class="management"), - (2, 1): Key(K_USESTOCK, css_class="managment"), + (2, 1): Key(K_USESTOCK, css_class="management"), (0, 2): Key(K_PRINT, css_class="register"), (1, 2): Key(K_WASTE, css_class="management"), (2, 2): Key(K_PRICECHECK, css_class="register"), diff --git a/quicktill/models.py b/quicktill/models.py index 728daa1..130eec9 100644 --- a/quicktill/models.py +++ b/quicktill/models.py @@ -2454,7 +2454,7 @@ class StockTypeMeta(Base): as well. document_hash will be calculated. (Implementation note: for now it - is calculated client-side because we are targetting Postgresql + is calculated client-side because we are targeting Postgresql 10. In the future (from Postgresql 12 onwards) this can be calculated automatically using a database trigger. """ @@ -3113,7 +3113,7 @@ def name(self): """Look up the name of this binding Since the binding doesn't have an explicit name, we use the - stockline name, PLU name, or modifer name as appropriate. + stockline name, PLU name, or modifier name as appropriate. """ if self.stockline: return self.stockline.name diff --git a/quicktill/pdrivers.py b/quicktill/pdrivers.py index 731aa1a..f8df1e9 100644 --- a/quicktill/pdrivers.py +++ b/quicktill/pdrivers.py @@ -853,7 +853,7 @@ def _qrcode_emulated(self, data, f): # feed the paper through by one row. This means that each # part of the code should be printed twice. We're also # printing each pair of rows twice, advancing the paper by - # half a dot inbetween. We only use 6 of the 8 pins of the + # half a dot in between. We only use 6 of the 8 pins of the # printer to keep this code simple. lt = { (False, False): bytes([0x00]), diff --git a/quicktill/register.py b/quicktill/register.py index b05a555..a19e8bd 100644 --- a/quicktill/register.py +++ b/quicktill/register.py @@ -1036,7 +1036,7 @@ def linekey(self, kb): if kb.modifier not in modifiers.all: log.error("Missing modifier '%s'", kb.modifier) ui.infopopup( - [f"The modifer '{kb.modifier}' can't be found. This is " + [f"The modifier '{kb.modifier}' can't be found. This is " f"a till configuration error."], title="Missing modifier") return diff --git a/quicktill/xero.py b/quicktill/xero.py index 85f859c..26924b0 100644 --- a/quicktill/xero.py +++ b/quicktill/xero.py @@ -200,8 +200,8 @@ def __init__(self, "and bill lines") self.department_tracking_category_name = config.ConfigItem( f"{config_prefix}:department_tracking_category_name", '', - display_name="Xero deparment tracking category name", - description="Name of a tracking cagegory to use for invoice and " + display_name="Xero department tracking category name", + description="Name of a tracking category to use for invoice and " "bill lines relating to departments. The value will be read from " "the department sales_account and purchases_account fields; " "it is separated from the account number by a '/' character.")