mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2025-12-26 04:48:05 +08:00
docs: 更正英语语言代码
This commit is contained in:
parent
0cd01018a4
commit
b360eae802
@ -170,6 +170,8 @@ def api_demo():
|
||||
<ul>
|
||||
<li>由于作品链接携带日期信息,使用先前日期获取的作品链接可能会被风控,建议下载作品文件时使用最新获取的作品链接</li>
|
||||
<li>Windows 系统需要以管理员身份运行程序才能读取 Chromium、Chrome、Edge 浏览器 Cookie</li>
|
||||
<li>如果开启保存作品数据至文件功能,作品数据默认储存至 <code>./Download/ExploreData.db</code> 文件</li>
|
||||
<li>程序下载记录数据储存至 <code>./ExploreID.db</code> 文件</li>
|
||||
</ul>
|
||||
<h1 id="user-scripts">🕹 用户脚本</h1>
|
||||
<p>如果您的浏览器安装了 <a href="https://www.tampermonkey.net/">Tampermonkey</a> 浏览器扩展程序,可以添加 <a href="https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js">用户脚本</a>,无需下载安装即可体验项目功能!</p>
|
||||
@ -353,7 +355,7 @@ async def example():
|
||||
<tr>
|
||||
<td align="center">language</td>
|
||||
<td align="center">str</td>
|
||||
<td align="center">设置程序语言,目前支持:<code>zh_CN</code>、<code>en_GB</code></td>
|
||||
<td align="center">设置程序语言,目前支持:<code>zh_CN</code>、<code>en_US</code></td>
|
||||
<td align="center">zh_CN</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -174,6 +174,8 @@ def api_demo():
|
||||
<ul>
|
||||
<li>Due to the date information carried in the links of Xiaohongshu works, using links obtained from previous dates may be subject to risk control. It is recommended to use the latest Xiaohongshu works links when downloading Xiaohongshu work files</li>
|
||||
<li>Windows system requires running programs as an administrator to read Chromium, Chrome, Edge browser cookies</li>
|
||||
<li>If the function to save works data to a file is enabled, the works data will be stored by default in the <code>./Download/ExploreData.db</code> file</li>
|
||||
<li>The program's download records will be stored in the <code>./ExploreID.db</code> file</li>
|
||||
</ul>
|
||||
<h1 id="user-scripts">🕹 User Script</h1>
|
||||
<p>If your browser has the <a href="https://www.tampermonkey.net/">Tampermonkey</a> browser extension installed, you can add the <a href="https://raw.githubusercontent.com/JoeanAmier/XHS-Downloader/master/static/XHS-Downloader.js">user script</a> to experience the project features without needing to download or install anything!</p>
|
||||
@ -357,7 +359,7 @@ async def example():
|
||||
<tr>
|
||||
<td align="center">language</td>
|
||||
<td align="center">str</td>
|
||||
<td align="center">Set program language. Currently supported: <code>zh_CN</code>, <code>en_GB</code></td>
|
||||
<td align="center">Set program language. Currently supported: <code>zh_CN</code>, <code>en_US</code></td>
|
||||
<td align="center">zh_CN</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -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` 文件后,作者会转换格式并合并。
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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", ),
|
||||
|
||||
@ -8,7 +8,7 @@ __all__ = ["Translate"]
|
||||
class Translate:
|
||||
SUPPORT = {
|
||||
"zh_CN",
|
||||
"en_GB",
|
||||
"en_US",
|
||||
}
|
||||
|
||||
def __init__(self, language: str):
|
||||
|
||||
@ -2,5 +2,6 @@
|
||||
|
||||
1. 优化文件名称非法字符处理
|
||||
2. 适配新版本 HTTPX 库
|
||||
3. 优化文件下载功能
|
||||
4. 移除内置延时机制
|
||||
3. 更正英语语言代码
|
||||
4. 优化文件下载功能
|
||||
5. 移除内置延时机制
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user