diff --git a/src/locale/zh_CN/LC_MESSAGES/video2x.mo b/src/locale/zh_CN/LC_MESSAGES/video2x.mo new file mode 100644 index 0000000..367c02f Binary files /dev/null and b/src/locale/zh_CN/LC_MESSAGES/video2x.mo differ diff --git a/src/locale/zh_CN/LC_MESSAGES/zh_CN.mo b/src/locale/zh_CN/LC_MESSAGES/zh_CN.mo new file mode 100644 index 0000000..367c02f Binary files /dev/null and b/src/locale/zh_CN/LC_MESSAGES/zh_CN.mo differ diff --git a/src/locale/zh_CN/LC_MESSAGES/zh_CN.po b/src/locale/zh_CN/LC_MESSAGES/zh_CN.po index c1ec084..1817d3d 100644 --- a/src/locale/zh_CN/LC_MESSAGES/zh_CN.po +++ b/src/locale/zh_CN/LC_MESSAGES/zh_CN.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" -"POT-Creation-Date: 2020-05-08 22:10-0400\n" -"PO-Revision-Date: 2020-05-08 22:11-0400\n" +"POT-Creation-Date: 2020-05-09 19:34-0400\n" +"PO-Revision-Date: 2020-05-09 19:38-0400\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" @@ -105,83 +105,99 @@ msgstr "解析驱动程序参数失败:{}" msgid "Unrecognized driver: {}" msgstr "无法识别的驱动名称:{}" -#: upscaler.py:309 +#: upscaler.py:311 msgid "Starting progress monitor" msgstr "启动进度监视器" -#: upscaler.py:314 +#: upscaler.py:316 msgid "Starting upscaled image cleaner" msgstr "启动已放大图像清理程序" -#: upscaler.py:323 upscaler.py:340 +#: upscaler.py:325 upscaler.py:342 msgid "Killing progress monitor" msgstr "终结进度监视器" -#: upscaler.py:326 upscaler.py:343 +#: upscaler.py:328 upscaler.py:345 msgid "Killing upscaled image cleaner" msgstr "终结已放大图像清理程序" -#: upscaler.py:347 +#: upscaler.py:349 msgid "Terminating all processes" msgstr "正在终止所有进程" -#: upscaler.py:354 +#: upscaler.py:356 msgid "Main process waiting for subprocesses to exit" msgstr "主进程开始等待子进程结束" -#: upscaler.py:373 upscaler.py:377 +#: upscaler.py:375 upscaler.py:379 msgid "Subprocess {} exited with code {}" msgstr "子进程 {} 结束,返回码 {}" -#: upscaler.py:383 +#: upscaler.py:385 msgid "Stop signal received" msgstr "收到停止信号" -#: upscaler.py:388 +#: upscaler.py:390 msgid "Subprocess execution ran into an error" msgstr "子进程执行遇到错误" -#: upscaler.py:430 +#: upscaler.py:432 msgid "Upscaling single video file: {}" msgstr "放大单个视频文件:{}" -#: upscaler.py:452 upscaler.py:515 +#: upscaler.py:454 upscaler.py:517 msgid "Starting to upscale extracted images" msgstr "开始对提取的帧进行放大" -#: upscaler.py:461 upscaler.py:517 +#: upscaler.py:463 upscaler.py:519 msgid "Upscaling completed" msgstr "放大完成" -#: upscaler.py:470 +#: upscaler.py:472 msgid "Reading video information" msgstr "读取视频信息" -#: upscaler.py:484 +#: upscaler.py:486 msgid "Aborting: No video stream found" msgstr "程序中止:文件中未找到视频流" -#: upscaler.py:502 +#: upscaler.py:504 msgid "Unsupported pixel format: {}" msgstr "不支持的像素格式:{}" -#: upscaler.py:505 +#: upscaler.py:507 msgid "Framerate: {}" msgstr "帧率:{}" -#: upscaler.py:520 +#: upscaler.py:522 msgid "Converting extracted frames into video" -msgstr "将提取的帧转换为视频" +msgstr "正在将提取的帧转换为视频" -#: upscaler.py:525 +#: upscaler.py:529 msgid "Conversion completed" msgstr "转换已完成" -#: upscaler.py:528 -msgid "Migrating audio tracks and subtitles to upscaled video" -msgstr "将音轨和字幕迁移到放大后的视频" +#: upscaler.py:533 +msgid "Migrating audio, subtitles and other streams to upscaled video" +msgstr "正在将音频、字幕和其他流迁移到放大后的视频" -#: video2x.py:87 +#: upscaler.py:542 +msgid "Failed to migrate streams" +msgstr "迁移流失败" + +#: upscaler.py:543 +msgid "Trying to output video without additional streams" +msgstr "正在尝试输出不含其他流的视频" + +#: upscaler.py:550 +msgid "Output video file exists, aborting" +msgstr "输出目标文件已存在,取消输出" + +#: upscaler.py:554 +msgid "Writing intermediate file to: {}" +msgstr "正在将中间视频文件写入至:{}" + +#: video2x.py:84 msgid "" "Video2X Version: {}\n" "Author: K4YT3X\n" @@ -195,63 +211,63 @@ msgstr "" "GitHub 主页:https://github.com/k4yt3x/video2x\n" "联系方式:k4yt3x@k4yt3x.com" -#: video2x.py:109 +#: video2x.py:106 msgid "General Options" msgstr "通用选项" -#: video2x.py:110 +#: video2x.py:107 msgid "show this help message and exit" msgstr "显示此帮助消息并退出" -#: video2x.py:111 +#: video2x.py:108 msgid "source video file/directory" msgstr "源视频文件/目录" -#: video2x.py:112 +#: video2x.py:109 msgid "output video file/directory" msgstr "输出视频文件/目录" -#: video2x.py:113 +#: video2x.py:110 msgid "video2x config file path" msgstr "video2x 配置文件路径" -#: video2x.py:115 +#: video2x.py:112 msgid "upscaling driver" msgstr "视频放大驱动" -#: video2x.py:116 +#: video2x.py:113 msgid "number of processes to use for upscaling" msgstr "并发进程数" -#: video2x.py:117 +#: video2x.py:114 msgid "display version, lawful information and exit" msgstr "显示版本和法律信息并退出" -#: video2x.py:120 +#: video2x.py:117 msgid "Scaling Options" msgstr "缩放选项" -#: video2x.py:121 +#: video2x.py:118 msgid "output video width" msgstr "输出视频宽度" -#: video2x.py:122 +#: video2x.py:119 msgid "output video height" msgstr "输出视频高度" -#: video2x.py:123 +#: video2x.py:120 msgid "scaling ratio" msgstr "缩放比" -#: video2x.py:163 +#: video2x.py:160 msgid "This file cannot be imported" msgstr "此文件无法被当作模块导入" -#: video2x.py:224 +#: video2x.py:225 msgid "Program completed, taking {} seconds" msgstr "程序执行完毕,总计花费 {} 秒" -#: video2x.py:227 +#: video2x.py:228 msgid "An exception has occurred" msgstr "发生了异常" diff --git a/src/video2x.pot b/src/video2x.pot new file mode 100644 index 0000000..72d6649 --- /dev/null +++ b/src/video2x.pot @@ -0,0 +1,266 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-09 19:34-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=cp1252\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" + + +#: progress_monitor.py:42 +msgid "Upscaling Progress" +msgstr "" + +#: upscaler.py:105 +msgid "Specified or default cache directory is a file/link" +msgstr "" + +#: upscaler.py:111 +msgid "Creating cache directory {}" +msgstr "" + +#: upscaler.py:114 +msgid "Unable to create {}" +msgstr "" + +#: upscaler.py:119 +msgid "Extracted frames are being saved to: {}" +msgstr "" + +#: upscaler.py:121 +msgid "Upscaled frames are being saved to: {}" +msgstr "" + +#: upscaler.py:131 +msgid "Cleaning up cache directory: {}" +msgstr "" + +#: upscaler.py:134 +msgid "Unable to delete: {}" +msgstr "" + +#: upscaler.py:140 upscaler.py:155 upscaler.py:166 +msgid "Input and output path type mismatch" +msgstr "" + +#: upscaler.py:141 +msgid "Input is multiple files but output is not directory" +msgstr "" + +#: upscaler.py:145 +msgid "Input path {} is neither a file nor a directory" +msgstr "" + +#: upscaler.py:149 upscaler.py:171 +msgid "Input directory and output directory cannot be the same" +msgstr "" + +#: upscaler.py:156 +msgid "Input is single file but output is directory" +msgstr "" + +#: upscaler.py:159 +msgid "No suffix found in output file path" +msgstr "" + +#: upscaler.py:160 +msgid "Suffix must be specified for FFmpeg" +msgstr "" + +#: upscaler.py:167 +msgid "Input is directory but output is existing single file" +msgstr "" + +#: upscaler.py:176 +msgid "Input path is neither a file nor a directory" +msgstr "" + +#: upscaler.py:185 +msgid "FFmpeg or FFprobe cannot be found under the specified path" +msgstr "" + +#: upscaler.py:186 upscaler.py:196 +msgid "Please check the configuration file settings" +msgstr "" + +#: upscaler.py:195 +msgid "Specified driver executable directory doesn't exist" +msgstr "" + +#: upscaler.py:222 +msgid "Failed to parse driver argument: {}" +msgstr "" + +#: upscaler.py:237 +msgid "Unrecognized driver: {}" +msgstr "" + +#: upscaler.py:311 +msgid "Starting progress monitor" +msgstr "" + +#: upscaler.py:316 +msgid "Starting upscaled image cleaner" +msgstr "" + +#: upscaler.py:325 upscaler.py:342 +msgid "Killing progress monitor" +msgstr "" + +#: upscaler.py:328 upscaler.py:345 +msgid "Killing upscaled image cleaner" +msgstr "" + +#: upscaler.py:349 +msgid "Terminating all processes" +msgstr "" + +#: upscaler.py:356 +msgid "Main process waiting for subprocesses to exit" +msgstr "" + +#: upscaler.py:375 upscaler.py:379 +msgid "Subprocess {} exited with code {}" +msgstr "" + +#: upscaler.py:385 +msgid "Stop signal received" +msgstr "" + +#: upscaler.py:390 +msgid "Subprocess execution ran into an error" +msgstr "" + +#: upscaler.py:432 +msgid "Upscaling single video file: {}" +msgstr "" + +#: upscaler.py:454 upscaler.py:517 +msgid "Starting to upscale extracted images" +msgstr "" + +#: upscaler.py:463 upscaler.py:519 +msgid "Upscaling completed" +msgstr "" + +#: upscaler.py:472 +msgid "Reading video information" +msgstr "" + +#: upscaler.py:486 +msgid "Aborting: No video stream found" +msgstr "" + +#: upscaler.py:504 +msgid "Unsupported pixel format: {}" +msgstr "" + +#: upscaler.py:507 +msgid "Framerate: {}" +msgstr "" + +#: upscaler.py:522 +msgid "Converting extracted frames into video" +msgstr "" + +#: upscaler.py:529 +msgid "Conversion completed" +msgstr "" + +#: upscaler.py:533 +msgid "Migrating audio, subtitles and other streams to upscaled video" +msgstr "" + +#: upscaler.py:542 +msgid "Failed to migrate streams" +msgstr "" + +#: upscaler.py:543 +msgid "Trying to output video without additional streams" +msgstr "" + +#: upscaler.py:550 +msgid "Output video file exists, aborting" +msgstr "" + +#: upscaler.py:554 +msgid "Writing intermediate file to: {}" +msgstr "" + +#: video2x.py:84 +msgid "" +"Video2X Version: {}\n" +"Author: K4YT3X\n" +"License: GNU GPL v3\n" +"Github Page: https://github.com/k4yt3x/video2x\n" +"Contact: k4yt3x@k4yt3x.com" +msgstr "" + +#: video2x.py:106 +msgid "General Options" +msgstr "" + +#: video2x.py:107 +msgid "show this help message and exit" +msgstr "" + +#: video2x.py:108 +msgid "source video file/directory" +msgstr "" + +#: video2x.py:109 +msgid "output video file/directory" +msgstr "" + +#: video2x.py:110 +msgid "video2x config file path" +msgstr "" + +#: video2x.py:112 +msgid "upscaling driver" +msgstr "" + +#: video2x.py:113 +msgid "number of processes to use for upscaling" +msgstr "" + +#: video2x.py:114 +msgid "display version, lawful information and exit" +msgstr "" + +#: video2x.py:117 +msgid "Scaling Options" +msgstr "" + +#: video2x.py:118 +msgid "output video width" +msgstr "" + +#: video2x.py:119 +msgid "output video height" +msgstr "" + +#: video2x.py:120 +msgid "scaling ratio" +msgstr "" + +#: video2x.py:160 +msgid "This file cannot be imported" +msgstr "" + +#: video2x.py:225 +msgid "Program completed, taking {} seconds" +msgstr "" + +#: video2x.py:228 +msgid "An exception has occurred" +msgstr "" +