Skip to content

Commit

Permalink
Docs readme edit
Browse files Browse the repository at this point in the history
  • Loading branch information
BingLingGroup committed Jul 30, 2019
1 parent 9e9ab0c commit d534152
Show file tree
Hide file tree
Showing 13 changed files with 1,144 additions and 255 deletions.
664 changes: 564 additions & 100 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion autosub/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

LOCALE_PATH = os.path.abspath(os.path.join(APP_PATH, "data/locale"))

EXT_LOCALE = os.path.abspath(os.path.join(APP_PATH, "locale"))
EXT_LOCALE = os.path.abspath(os.path.join(os.getcwd(), "locale"))
if os.path.isfile(EXT_LOCALE):
with open(EXT_LOCALE, "r") as in_file:
LINE = in_file.readline()
Expand Down
Binary file modified autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.mo
Binary file not shown.
59 changes: 29 additions & 30 deletions autosub/data/locale/zh_CN/LC_MESSAGES/autosub.options.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-29 11:27+0800\n"
"PO-Revision-Date: 2019-07-28 14:53+0800\n"
"PO-Revision-Date: 2019-07-30 12:21+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -208,8 +208,8 @@ msgstr "语言代码"
msgid ""
"Lang code/Lang tag for speech-to-text. Recommend using the Google Cloud "
"Speech reference lang codes. WRONG INPUT WON'T STOP RUNNING. But use it at "
"your own risk. Ref: https://cloud.google.com/speech-to-text/docs/languages"
"(arg_num = 1) (default: %(default)s)"
"your own risk. Ref: https://cloud.google.com/speech-to-text/docs/"
"languages(arg_num = 1) (default: %(default)s)"
msgstr ""
"用于语音识别的语言代码/语言标识符。推荐使用Google Cloud Speech的参考语言代"
"码。错误的输入不会终止程序。但是后果自负。参考:https://cloud.google.com/"
Expand All @@ -225,8 +225,8 @@ msgid ""
msgstr ""
"用于翻译的源语言的语言代码/语言标识符。如果没有提供,会使用langcodes-py2从列"
"表里获取一个最佳匹配选项\"-S\"/\"--speech-language\"的语言代码。如果使用py-"
"googletrans作为翻译的方法,错误的输入会终止运行。(参数个数为1)(默认参数为%"
"(default)s)"
"googletrans作为翻译的方法,错误的输入会终止运行。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:175
#, python-format
Expand Down Expand Up @@ -310,8 +310,8 @@ msgid ""
"arg_num >= 1) (default: %(default)s)"
msgstr ""
"输出更多的文件。可选种类:regions, src, dst, bilingual, all.(时间轴,源语言"
"字幕,目标语言字幕,双语字幕,所有)(参数个数在4和1之间)(默认参数为%"
"(default)s)"
"字幕,目标语言字幕,双语字幕,所有)(参数个数在4和1之间)(默认参数"
"为%(default)s)"

#: autosub/options.py:253
msgid ""
Expand Down Expand Up @@ -354,8 +354,8 @@ msgid ""
"Number of concurrent Google Speech V2 requests to make. (arg_num = 1) "
"(default: %(default)s)"
msgstr ""
"用于Google Speech V2 requests请求的并行数量。(参数个数为1)(默认参数为%"
"(default)s)"
"用于Google Speech V2 requests请求的并行数量。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:300 autosub/options.py:526 autosub/options.py:536
#: autosub/options.py:546
Expand All @@ -368,8 +368,8 @@ msgid ""
"(Experimental)Seconds to sleep between two translation requests. (arg_num = "
"1) (default: %(default)s)"
msgstr ""
"(实验性)在两次翻译请求之间睡眠(暂停)的时间。(参数个数为1)(默认参数为%"
"(default)s)"
"(实验性)在两次翻译请求之间睡眠(暂停)的时间。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:312
msgid ""
Expand Down Expand Up @@ -397,8 +397,8 @@ msgstr ""
#: autosub/options.py:338
#, python-format
msgid ""
"Number of lines per Google Translate V2 request. (arg_num = 1) (default: %"
"(default)s)"
"Number of lines per Google Translate V2 request. (arg_num = 1) (default: "
"%(default)s)"
msgstr ""
"Google Translate V2请求的每行行数。(参数个数为1)(默认参数为%(default)s)"

Expand All @@ -408,8 +408,8 @@ msgid ""
"Number of concurrent Google translate V2 API requests to make. (arg_num = 1) "
"(default: %(default)s)"
msgstr ""
"Google translate V2 API请求的并行数量。(参数个数为1)(默认参数为%(default)"
"s)"
"Google translate V2 API请求的并行数量。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:355
msgid "Change the Google Speech V2 API URL into the http one. (arg_num = 0)"
Expand Down Expand Up @@ -460,7 +460,6 @@ msgid "Show %(prog)s version and exit. (arg_num = 0)"
msgstr "显示%(prog)s的版本信息并退出。(参数个数为0)"

#: autosub/options.py:410
#, fuzzy
msgid ""
"Option to control audio process. If not given the option, do normal "
"conversion work. \"y\": pre-process the input first then start normal "
Expand All @@ -472,14 +471,14 @@ msgid ""
"https://github.com/stevenj/autosub/blob/master/scripts/subgen.sh https://"
"ffmpeg.org/ffmpeg-filters.html) (2 >= arg_num >= 1)"
msgstr ""
"控制音频处理的选项。如果没有提供选项,进行正常的格式转换工作。(默认参数%"
"(default)s)\"y\"它会先预处理输入文件,如果成功了,在语音转文字之前不会对音"
"频进行额外的处理。\"o\":只会预处理输入音频。\"-k\"/\"--keep\"选项自动置为"
"真)\"s\":只会分割输入音频。(\"-k\"/\"--keep\"选项自动置为真)\"n\"在语音"
"转文字的步骤之前,强制去除多余的格式检查或者转换工作。以下是用于处理音频的默"
"认命令:{dft_1} | {dft_2} | {dft_3}(参考:https://github.com/stevenj/"
"autosub/blob/master/scripts/subgen.sh https://ffmpeg.org/ffmpeg-filters."
"html)(参数个数介于1和2之间)"
"控制音频处理的选项。如果没有提供选项,进行正常的格式转换工作。\"y\":它会先预"
"处理输入文件,如果成功了,在语音转文字之前不会对音频进行额外的处理。\"o\""
"会预处理输入音频。\"-k\"/\"--keep\"选项自动置为真)\"s\":只会分割输入音"
"。(\"-k\"/\"--keep\"选项自动置为真)\"n\"在语音转文字的步骤之前,强制去"
"除多余的格式检查或者转换工作。以下是用于处理音频的默认命令:{dft_1} | "
"{dft_2} | {dft_3}(参考:https://github.com/stevenj/autosub/blob/master/"
"scripts/subgen.sh https://ffmpeg.org/ffmpeg-filters.html)(参数个数介于1和2"
"之间)"

#: autosub/options.py:437
msgid "Keep audio processing files to the output path. (arg_num = 0)"
Expand Down Expand Up @@ -533,8 +532,8 @@ msgid ""
"(Experimental)This arg will override the default API audio suffix. (arg_num "
"= 1) (default: %(default)s)"
msgstr ""
"(实验性)这个参数会取代默认的给API使用的音频文件后缀。(默认参数为%(default)"
"s)"
"(实验性)这个参数会取代默认的给API使用的音频文件后缀。(默认参数"
"为%(default)s)"

#: autosub/options.py:495
msgid "sample_rate"
Expand Down Expand Up @@ -582,16 +581,16 @@ msgstr ""
msgid ""
"Minimum region size. Same docs above. (arg_num = 1) (default: %(default)s)"
msgstr ""
"最小语音区域大小。同样的参考文档如上。(参数个数为1)(默认参数为%(default)"
"s)"
"最小语音区域大小。同样的参考文档如上。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:539
#, python-format
msgid ""
"Maximum region size. Same docs above. (arg_num = 1) (default: %(default)s)"
msgstr ""
"最大音频区域大小。同样的参考文档如上。(参数个数为1)(默认参数为%(default)"
"s)"
"最大音频区域大小。同样的参考文档如上。(参数个数为1)(默认参数"
"为%(default)s)"

#: autosub/options.py:549
#, python-format
Expand Down
Loading

0 comments on commit d534152

Please sign in to comment.