diff --git a/README.md b/README.md index ace3b11..aca50e1 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,8 @@ def api_demo():

🕹 用户脚本

如果您的浏览器安装了 Tampermonkey 浏览器扩展程序,可以添加 用户脚本,无需下载安装即可体验项目功能!

@@ -353,7 +355,7 @@ async def example(): language str -设置程序语言,目前支持:zh_CNen_GB +设置程序语言,目前支持:zh_CNen_US zh_CN diff --git a/README_EN.md b/README_EN.md index 1dc1461..44ea54b 100644 --- a/README_EN.md +++ b/README_EN.md @@ -174,6 +174,8 @@ def api_demo():

🕹 User Script

If your browser has the Tampermonkey browser extension installed, you can add the user script to experience the project features without needing to download or install anything!

@@ -357,7 +359,7 @@ async def example(): language str -Set program language. Currently supported: zh_CN, en_GB +Set program language. Currently supported: zh_CN, en_US zh_CN diff --git a/locale/README.md b/locale/README.md index fcd210f..4d8ddc2 100644 --- a/locale/README.md +++ b/locale/README.md @@ -1,5 +1,5 @@ # 贡献指南 -* 如果想要贡献支持更多语言,请参考 `zh_CN` 与 `en_GB` 的文件夹层级结构,复制 `locale/zh_CN/LC_MESSAGES/xhs.po` 文件并编辑翻译。 +* 如果想要贡献支持更多语言,请参考 `zh_CN` 与 `en_US` 的文件夹层级结构,复制 `locale/zh_CN/LC_MESSAGES/xhs.po` 文件并编辑翻译。 * 如果想要贡献改进翻译结果,请直接编辑 `xhs.po` 文件内容。 * 不需要提交 `xhs.mo` 文件,提交 `xhs.po` 文件后,作者会转换格式并合并。 diff --git a/locale/en_GB/LC_MESSAGES/xhs.mo b/locale/en_US/LC_MESSAGES/xhs.mo similarity index 100% rename from locale/en_GB/LC_MESSAGES/xhs.mo rename to locale/en_US/LC_MESSAGES/xhs.mo diff --git a/locale/en_GB/LC_MESSAGES/xhs.po b/locale/en_US/LC_MESSAGES/xhs.po similarity index 100% rename from locale/en_GB/LC_MESSAGES/xhs.po rename to locale/en_US/LC_MESSAGES/xhs.po diff --git a/source/CLI/main.py b/source/CLI/main.py index 1a3c9b0..234aff3 100644 --- a/source/CLI/main.py +++ b/source/CLI/main.py @@ -135,7 +135,7 @@ class CLI: ("--live_download", "-ld", "bool", _("图文动图文件下载开关")), ("--download_record", "-dr", "bool", _("作品下载记录开关")), ("--folder_mode", "-fm", "bool", _("是否将每个作品的文件储存至单独的文件夹")), - ("--language", "-l", "choice", _("设置程序语言,目前支持:zh_CN、en_GB")), + ("--language", "-l", "choice", _("设置程序语言,目前支持:zh_CN、en_US")), ("--settings", "-s", "str", _("读取指定配置文件")), ("--browser_cookie", "-bc", "choice", fill(_("从指定的浏览器读取小红书网页版 Cookie,支持:{0}; 输入浏览器名称或序号").format( @@ -184,7 +184,7 @@ class CLI: @option("--download_record", "-dr", type=bool, ) @option("--folder_mode", "-fm", type=bool, ) @option("--language", "-l", - type=Choice(["zh_CN", "en_GB"]), ) + type=Choice(["zh_CN", "en_US"]), ) @option("--settings", "-s", type=Path(dir_okay=False), ) @option("--browser_cookie", "-bc", type=Choice( list(BrowserCookie.SUPPORT_BROWSER.keys() diff --git a/source/TUI/setting.py b/source/TUI/setting.py index 163e0d7..5cf5e1e 100644 --- a/source/TUI/setting.py +++ b/source/TUI/setting.py @@ -84,7 +84,7 @@ class Setting(Screen): allow_blank=False, id="image_format"), Select.from_values( - ["zh_CN", "en_GB"], + ["zh_CN", "en_US"], value=self.data["language"], allow_blank=False, id="language", ), diff --git a/source/module/translator.py b/source/module/translator.py index f3524fd..cfb52f3 100644 --- a/source/module/translator.py +++ b/source/module/translator.py @@ -8,7 +8,7 @@ __all__ = ["Translate"] class Translate: SUPPORT = { "zh_CN", - "en_GB", + "en_US", } def __init__(self, language: str): diff --git a/static/Release_Notes.md b/static/Release_Notes.md index bd1356f..ba4b8a3 100644 --- a/static/Release_Notes.md +++ b/static/Release_Notes.md @@ -2,5 +2,6 @@ 1. 优化文件名称非法字符处理 2. 适配新版本 HTTPX 库 -3. 优化文件下载功能 -4. 移除内置延时机制 +3. 更正英语语言代码 +4. 优化文件下载功能 +5. 移除内置延时机制