From 36127765e4c0b1ea4f6b5b591c862f2986997005 Mon Sep 17 00:00:00 2001 From: OverflowCat Date: Thu, 17 Aug 2023 03:39:40 +0800 Subject: [PATCH] fix(i18n): fallback to `en` for other locales --- biliarchiver/i18n.py | 2 +- biliarchiver/locales/biliarchiver.pot | 6 +++++- biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po | 8 ++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/biliarchiver/i18n.py b/biliarchiver/i18n.py index 5cb9031..715b628 100644 --- a/biliarchiver/i18n.py +++ b/biliarchiver/i18n.py @@ -3,7 +3,7 @@ import locale default_lang, default_enc = locale.getdefaultlocale() -languages = ["en"] if default_lang.startswith("en") else ["zh_CN"] +languages = ["en"] if not default_lang.lower().startswith("zh") else ["zh_CN"] appname = "biliarchiver" diff --git a/biliarchiver/locales/biliarchiver.pot b/biliarchiver/locales/biliarchiver.pot index a2edffc..db748ab 100644 --- a/biliarchiver/locales/biliarchiver.pot +++ b/biliarchiver/locales/biliarchiver.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-17 01:52+0800\n" +"POT-Creation-Date: 2023-08-17 03:36+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -328,6 +328,10 @@ msgstr "" msgid "每周必看" msgstr "" +#: biliarchiver/cli_tools/get_command.py:348 +msgid "每周必看,每周五晚 18:00 更新" +msgstr "" + #: biliarchiver/cli_tools/get_command.py:356 msgid "获取第几期(周)" msgstr "" diff --git a/biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po b/biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po index 58fe4e5..73a3017 100644 --- a/biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po +++ b/biliarchiver/locales/en/LC_MESSAGES/biliarchiver.po @@ -280,8 +280,8 @@ msgstr "Batch fetching BV numbers" #: biliarchiver/cli_tools/get_command.py:307 msgid "请通过 flag 指定至少一种批量获取 BV 号的方式。多个不同组的 flag 同时使用时,将会先后通过不同方式获取。" msgstr "" -"Please specify at least one way to batch fetch BV numbers through the flag." -"When flags of multiple groups are used together, they will be fetched in sequence." +"Please specify at least one way to batch fetch BV numbers through the flag.When flags of multiple groups are used " +"together, they will be fetched in sequence." #: biliarchiver/cli_tools/get_command.py:309 msgid "合集" @@ -323,6 +323,10 @@ msgstr "Must-watch on entry, low update frequency" msgid "每周必看" msgstr "Must-watch weekly" +#: biliarchiver/cli_tools/get_command.py:348 +msgid "每周必看,每周五晚 18:00 更新" +msgstr "Must-watch weekly, updated every Friday at 18:00 UTC+8" + #: biliarchiver/cli_tools/get_command.py:356 msgid "获取第几期(周)" msgstr "Fetch which period (week)"