Skip to content

Commit

Permalink
make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Dec 15, 2024
1 parent 87a354c commit 5026547
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/models/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions app/translations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: en_US\n"
Expand Down
2 changes: 1 addition & 1 deletion app/translations/zh/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language: zh\n"
Expand Down

0 comments on commit 5026547

Please sign in to comment.