From 502654796032860f87dc6fccd3fa0bd1af643d83 Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Sun, 15 Dec 2024 16:59:11 +0900 Subject: [PATCH] make ruff happy --- app/models/language.py | 4 +++- app/translations/__init__.py | 1 + app/translations/en/LC_MESSAGES/messages.po | 2 +- app/translations/zh/LC_MESSAGES/messages.po | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/models/language.py b/app/models/language.py index ec28f2e..abebcf9 100644 --- a/app/models/language.py +++ b/app/models/language.py @@ -802,7 +802,9 @@ def init_system_languages(cls) -> None: sort=sort, ).save() sort += 1 - logger.debug(gettext("Initialized Language collection with %d languages"), len(sort)) + logger.debug( + gettext("Initialized Language collection with %d languages"), len(sort) + ) @classmethod def create( diff --git a/app/translations/__init__.py b/app/translations/__init__.py index 2da267d..85bd8ef 100644 --- a/app/translations/__init__.py +++ b/app/translations/__init__.py @@ -51,6 +51,7 @@ def lazy_gettext(msgid: str): # logger.debug(f"lazy_get_text({msgid}) -> {translated}") return translated + def hardcode_text(msgid: str) -> str: """ used to capture hardcoded string as msgid diff --git a/app/translations/en/LC_MESSAGES/messages.po b/app/translations/en/LC_MESSAGES/messages.po index 608af71..8bdbdb1 100644 --- a/app/translations/en/LC_MESSAGES/messages.po +++ b/app/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-15 16:08+0900\n" +"POT-Creation-Date: 2024-12-15 16:54+0900\n" "PO-Revision-Date: 2017-04-14 15:38+0800\n" "Last-Translator: FULL NAME \n" "Language: en_US\n" diff --git a/app/translations/zh/LC_MESSAGES/messages.po b/app/translations/zh/LC_MESSAGES/messages.po index 631fcdd..12aa7c7 100644 --- a/app/translations/zh/LC_MESSAGES/messages.po +++ b/app/translations/zh/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-12-15 16:08+0900\n" +"POT-Creation-Date: 2024-12-15 16:54+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh\n"