Skip to content

Commit

Permalink
2.023 fix opt i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Jul 29, 2020
1 parent 9d96377 commit 73d1fb9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ xeH
--timeout N 设置下载图片的超时 (默认: 10秒)
-f, --force 忽略配额判断, 继续下载 (默认: False)
--auto-update {check,download,off}
检查并自动下载更新
检查并自动下载更新 (默认: download)
--update-beta-channel BOOL
是否更新到测试分支
是否更新到测试分支 (默认: True)
-l /path/to/eh.log, --logpath /path/to/eh.log
保存日志的路径 (默认: eh.log)
-v, --verbose 设置日志装逼等级 (默认: 2)
Expand Down
2 changes: 1 addition & 1 deletion util/make_release_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
i18n = "XEH_OPT_download_range"
else:
i18n = re.findall("_def\[['\"]%s['\"]\].*?help\s*=\s*i18n.([^\)]+)\)" % k, cli, re.DOTALL)[0]
txt = re.findall("%s\s*=\s*['\"](.*?)\s*\(当前.+['\"]" % i18n, zh_hans, re.DOTALL)[0]
txt = re.findall("%s\s*=\s*['\"](.*?)\s*\(当前.+['\"]" % i18n, zh_hans, re.DOTALL)[0]
# multiline fix
txt = txt.replace('"', '').replace('\\\n', '\n# ')
txt = re.sub("\nXEH_.+", "", txt, re.DOTALL)
Expand Down
6 changes: 3 additions & 3 deletions xeHentai/i18n/en_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
"use comma to concat multiple ranges, e.g.: 5-10,15,20-25, default to download all images"
XEH_OPT_timeout = "set image download timeout (current: %(default)ss)"
XEH_OPT_low_speed = "retry download if speed is lower than specified value (current: %(default)s KB/s)"
XEH_OPT_f = "download regardless of quota exceeded warning (current: %(current)s)"
XEH_OPT_f = "download regardless of quota exceeded warning (current: %(default)s)"
XEH_OPT_auto_update = "check or download update automatically (current: %(default)s)"
XEH_OPT_update_beta_channel = "check update upon beta channel (current: %(default)s)"
XEH_OPT_h = "show this help message and exit"
XEH_OPT_version = "show program's version number and exit"
XEH_OPT_IGNORING_I = "ignoring -i option in daemon mode"
XEH_OPT_auto_update = "check or download update automatically"
XEH_OPT_update_beta_channel = "check update upon beta channel"

PS_LOGIN = "login to exhentai (y/n)? > "
PS_USERNAME = "Username > "
Expand Down
6 changes: 3 additions & 3 deletions xeHentai/i18n/zh_hans.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"使用逗号来分隔多个范围, 例如 5-10,15,20-25, 默认为下载所有"
XEH_OPT_timeout = "设置下载图片的超时 (当前: %(default)s秒)"
XEH_OPT_low_speed = "设置最低下载速度,低于此值将换源重新下载 (当前: %(default)s KB/s)"
XEH_OPT_f = "忽略配额判断,继续下载 (当前: %(current)s)"
XEH_OPT_f = "忽略配额判断,继续下载 (当前: %(default)s)"
XEH_OPT_auto_update = "检查并自动下载更新 (当前: %(default)s)"
XEH_OPT_update_beta_channel = "是否更新到测试分支 (当前: %(default)s)"
XEH_OPT_h = "显示本帮助信息"
XEH_OPT_version = "显示版本信息"
XEH_OPT_IGNORING_I = "后台模式已忽略 -i 参数"
XEH_OPT_auto_update = "检查并自动下载更新"
XEH_OPT_update_beta_channel = "是否更新到测试分支"


PS_LOGIN = "当前没有登陆,要登陆吗 (y/n)? > "
Expand Down
6 changes: 3 additions & 3 deletions xeHentai/i18n/zh_hant.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"使用逗號來分隔多個範圍, 例如 5-10,15,20-25, 默認為下載所有"
XEH_OPT_timeout = "設置下載圖片的超時 (當前: %(default)s秒)"
XEH_OPT_low_speed = "設置最低下載速度,低於此值將換源重新下載 (當前: %(default)s KB/s)"
XEH_OPT_f = "忽略配額判斷,繼續下載 (當前: %(current)s)"
XEH_OPT_f = "忽略配額判斷,繼續下載 (當前: %(default)s)"
XEH_OPT_auto_update = "檢查並自動下載更新 (當前: %(default)s)"
XEH_OPT_update_beta_channel = "是否更新到測試分支 (當前: %(default)s)"
XEH_OPT_h = "顯示本幫助信息"
XEH_OPT_version = "顯示版本信息"
XEH_OPT_IGNORING_I = "後台模式已忽略 -i 參數"
XEH_OPT_auto_update = "檢查並自動下載更新"
XEH_OPT_update_beta_channel = "是否更新到測試分支"


PS_LOGIN = "當前沒有登陸,要登陸嗎 (y/n)? > "
Expand Down

0 comments on commit 73d1fb9

Please sign in to comment.