diff --git a/src/locale/zh_CN/LC_MESSAGES/video2x.mo b/src/locale/zh_CN/LC_MESSAGES/video2x.mo index 356a660..49ac853 100644 Binary files a/src/locale/zh_CN/LC_MESSAGES/video2x.mo 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 index 356a660..49ac853 100644 Binary files a/src/locale/zh_CN/LC_MESSAGES/zh_CN.mo 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 ca3cbaf..ea35009 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-12 04:27-0400\n" -"PO-Revision-Date: 2020-05-12 04:29-0400\n" +"POT-Creation-Date: 2020-05-17 10:10-0400\n" +"PO-Revision-Date: 2020-05-17 10:13-0400\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" @@ -21,276 +21,280 @@ msgstr "" msgid "Upscaling Progress" msgstr "放大进度" -#: upscaler.py:106 +#: upscaler.py:109 msgid "Specified or default cache directory is a file/link" msgstr "指定或默认的缓存目录是文件/链接" -#: upscaler.py:112 +#: upscaler.py:115 msgid "Creating cache directory {}" msgstr "创建缓存目录 {}" -#: upscaler.py:115 +#: upscaler.py:118 msgid "Unable to create {}" msgstr "无法创建 {}" -#: upscaler.py:120 +#: upscaler.py:123 msgid "Extracted frames are being saved to: {}" msgstr "提取的帧将被保存到:{}" -#: upscaler.py:122 +#: upscaler.py:125 msgid "Upscaled frames are being saved to: {}" msgstr "已放大的帧将被保存到:{}" -#: upscaler.py:132 +#: upscaler.py:135 msgid "Cleaning up cache directory: {}" msgstr "清理缓存目录:{}" -#: upscaler.py:135 +#: upscaler.py:138 msgid "Unable to delete: {}" msgstr "无法删除:{}" -#: upscaler.py:141 upscaler.py:156 upscaler.py:167 +#: upscaler.py:144 upscaler.py:159 upscaler.py:170 msgid "Input and output path type mismatch" msgstr "输入和输出路径类型不匹配" -#: upscaler.py:142 +#: upscaler.py:145 msgid "Input is multiple files but output is not directory" msgstr "输入是多个文件,但输出不是目录" -#: upscaler.py:146 +#: upscaler.py:149 msgid "Input path {} is neither a file nor a directory" msgstr "输入路径 {} 既不是文件也不是目录" -#: upscaler.py:150 upscaler.py:172 +#: upscaler.py:153 upscaler.py:175 msgid "Input directory and output directory cannot be the same" msgstr "输入目录和输出目录不能相同" -#: upscaler.py:157 +#: upscaler.py:160 msgid "Input is single file but output is directory" msgstr "所选的输入路径是单个文件,但输出路径是目录" -#: upscaler.py:160 +#: upscaler.py:163 msgid "No suffix found in output file path" msgstr "在输出文件路径中未找到后缀" -#: upscaler.py:161 +#: upscaler.py:164 msgid "Suffix must be specified" msgstr "必须指定文件后缀" -#: upscaler.py:168 +#: upscaler.py:171 msgid "Input is directory but output is existing single file" msgstr "输入是目录,但输出是现有的单个文件" -#: upscaler.py:177 +#: upscaler.py:180 msgid "Input path is neither a file nor a directory" msgstr "输入路径既不是文件也不是目录" -#: upscaler.py:186 +#: upscaler.py:189 msgid "FFmpeg or FFprobe cannot be found under the specified path" msgstr "在指定的路径下找不到 FFmpeg 或 FFprobe" -#: upscaler.py:187 upscaler.py:197 +#: upscaler.py:190 upscaler.py:200 msgid "Please check the configuration file settings" msgstr "请检查配置文件设置" -#: upscaler.py:196 +#: upscaler.py:199 msgid "Specified driver executable directory doesn't exist" msgstr "指定驱动的可执行文件不存在" -#: upscaler.py:223 +#: upscaler.py:226 msgid "Failed to parse driver argument: {}" msgstr "解析驱动程序参数失败:{}" -#: upscaler.py:248 -msgid "Anime4KCPP doesn't yet support GIF processing" -msgstr "Anime4KCPP 尚不支持GIF处理" - -#: upscaler.py:263 +#: upscaler.py:258 msgid "Unrecognized driver: {}" msgstr "无法识别的驱动名称:{}" -#: upscaler.py:303 +#: upscaler.py:298 msgid "Starting progress monitor" msgstr "启动进度监视器" -#: upscaler.py:308 +#: upscaler.py:303 msgid "Starting upscaled image cleaner" msgstr "启动已放大图像清理程序" -#: upscaler.py:317 upscaler.py:334 +#: upscaler.py:312 upscaler.py:329 msgid "Killing progress monitor" msgstr "终结进度监视器" -#: upscaler.py:320 upscaler.py:337 +#: upscaler.py:315 upscaler.py:332 msgid "Killing upscaled image cleaner" msgstr "终结已放大图像清理程序" -#: upscaler.py:341 +#: upscaler.py:336 msgid "Terminating all processes" msgstr "正在终止所有进程" -#: upscaler.py:348 +#: upscaler.py:343 msgid "Main process waiting for subprocesses to exit" msgstr "主进程开始等待子进程结束" -#: upscaler.py:367 upscaler.py:371 +#: upscaler.py:362 upscaler.py:366 msgid "Subprocess {} exited with code {}" msgstr "子进程 {} 结束,返回码 {}" -#: upscaler.py:377 +#: upscaler.py:372 msgid "Stop signal received" msgstr "收到停止信号" -#: upscaler.py:382 +#: upscaler.py:377 msgid "Subprocess execution ran into an error" msgstr "子进程执行遇到错误" -#: upscaler.py:430 +#: upscaler.py:425 msgid "Upscaling single file: {}" msgstr "放大单个文件:{}" -#: upscaler.py:466 +#: upscaler.py:461 msgid "Starting to upscale image" msgstr "开始放大图像" -#: upscaler.py:469 upscaler.py:487 upscaler.py:545 +#: upscaler.py:464 upscaler.py:526 msgid "Upscaling completed" msgstr "放大完成" -#: upscaler.py:482 -msgid "Starting to upscale video with Anime4KCPP" -msgstr "开始用 Anime4KCPP 放大视频" - -#: upscaler.py:496 +#: upscaler.py:478 msgid "Reading video information" msgstr "读取视频信息" -#: upscaler.py:510 +#: upscaler.py:492 msgid "Aborting: No video stream found" msgstr "程序中止:文件中未找到视频流" -#: upscaler.py:531 -msgid "Unsupported pixel format: {}" -msgstr "不支持的像素格式:{}" - -#: upscaler.py:534 +#: upscaler.py:497 msgid "Framerate: {}" msgstr "帧率:{}" -#: upscaler.py:543 +#: upscaler.py:514 +msgid "Unsupported pixel format: {}" +msgstr "不支持的像素格式:{}" + +#: upscaler.py:524 msgid "Starting to upscale extracted frames" msgstr "开始对提取的帧进行放大" -#: upscaler.py:550 +#: upscaler.py:531 msgid "File {} ({}) neither an image of a video" msgstr "文件 {} ({}) 既不是图片也不是视频" -#: upscaler.py:551 +#: upscaler.py:532 msgid "Skipping this file" msgstr "将跳过此文件" -#: upscaler.py:561 +#: upscaler.py:542 msgid "Converting extracted frames into GIF image" msgstr "正在将提取的帧转换为 GIF" -#: upscaler.py:565 upscaler.py:574 +#: upscaler.py:546 upscaler.py:555 msgid "Conversion completed" msgstr "转换已完成" -#: upscaler.py:570 +#: upscaler.py:551 msgid "Converting extracted frames into video" msgstr "正在将提取的帧转换为视频" -#: upscaler.py:578 +#: upscaler.py:559 msgid "Migrating audio, subtitles and other streams to upscaled video" msgstr "正在将音频、字幕和其他流迁移到放大后的视频" -#: upscaler.py:587 +#: upscaler.py:569 msgid "Failed to migrate streams" msgstr "迁移流失败" -#: upscaler.py:588 +#: upscaler.py:570 msgid "Trying to output video without additional streams" msgstr "正在尝试输出不含其他流的视频" -#: upscaler.py:599 -msgid "Output video file exists, aborting" -msgstr "输出目标文件已存在,取消输出" +#: upscaler.py:586 +msgid "Output video file exists" +msgstr "输出目标文件已存在" -#: upscaler.py:603 +#: upscaler.py:590 +msgid "Created temporary directory to contain file" +msgstr "为文件创建了临时目录" + +#: upscaler.py:593 msgid "Writing intermediate file to: {}" msgstr "正在将中间视频文件写入至:{}" -#: video2x.py:84 +#: video2x.py:85 msgid "" -"Video2X Version: {}\n" +"Video2X CLI Version: {}\n" +"Upscaler Version: {}\n" "Author: K4YT3X\n" "License: GNU GPL v3\n" "Github Page: https://github.com/k4yt3x/video2x\n" "Contact: k4yt3x@k4yt3x.com" msgstr "" "Video2X 版本: {}\n" +"放大组件版本:{}\n" "作者: K4YT3X\n" "开源许可: GNU GPL v3\n" "GitHub 主页:https://github.com/k4yt3x/video2x\n" "联系方式:k4yt3x@k4yt3x.com" -#: video2x.py:106 +#: video2x.py:108 msgid "Video2X Options" msgstr "Video2X 选项" -#: video2x.py:107 +#: video2x.py:109 msgid "show this help message and exit" msgstr "显示此帮助消息并退出" -#: video2x.py:108 +#: video2x.py:110 msgid "source video file/directory" msgstr "源视频文件/目录" -#: video2x.py:109 +#: video2x.py:111 msgid "output video file/directory" msgstr "输出视频文件/目录" -#: video2x.py:110 +#: video2x.py:112 msgid "video2x config file path" msgstr "video2x 配置文件路径" -#: video2x.py:112 +#: video2x.py:114 msgid "display version, lawful information and exit" msgstr "显示版本和法律信息并退出" -#: video2x.py:115 +#: video2x.py:117 msgid "Upscaling Options" msgstr "视频放大选项" -#: video2x.py:116 +#: video2x.py:118 msgid "upscaling driver" msgstr "视频放大驱动" -#: video2x.py:117 +#: video2x.py:119 msgid "scaling ratio" msgstr "缩放比" -#: video2x.py:118 +#: video2x.py:120 msgid "number of processes to use for upscaling" msgstr "并发进程数" -#: video2x.py:119 +#: video2x.py:121 msgid "preserve extracted and upscaled frames" msgstr "保留提取的和放大的帧" -#: video2x.py:159 +#: video2x.py:161 msgid "This file cannot be imported" msgstr "此文件无法被当作模块导入" -#: video2x.py:234 +#: video2x.py:236 msgid "Program completed, taking {} seconds" msgstr "程序执行完毕,总计花费 {} 秒" -#: video2x.py:237 +#: video2x.py:239 msgid "An exception has occurred" msgstr "发生了异常" +#~ msgid "Anime4KCPP doesn't yet support GIF processing" +#~ msgstr "Anime4KCPP 尚不支持GIF处理" + +#~ msgid "Starting to upscale video with Anime4KCPP" +#~ msgstr "开始用 Anime4KCPP 放大视频" + #~ msgid "output video width" #~ msgstr "输出视频宽度" diff --git a/src/video2x.pot b/src/video2x.pot index 4b6f5bb..2ef26fc 100644 --- a/src/video2x.pot +++ b/src/video2x.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2020-05-12 04:27-0400\n" +"POT-Creation-Date: 2020-05-17 10:10-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -19,268 +19,265 @@ msgstr "" msgid "Upscaling Progress" msgstr "" -#: upscaler.py:106 +#: upscaler.py:109 msgid "Specified or default cache directory is a file/link" msgstr "" -#: upscaler.py:112 +#: upscaler.py:115 msgid "Creating cache directory {}" msgstr "" -#: upscaler.py:115 +#: upscaler.py:118 msgid "Unable to create {}" msgstr "" -#: upscaler.py:120 +#: upscaler.py:123 msgid "Extracted frames are being saved to: {}" msgstr "" -#: upscaler.py:122 +#: upscaler.py:125 msgid "Upscaled frames are being saved to: {}" msgstr "" -#: upscaler.py:132 +#: upscaler.py:135 msgid "Cleaning up cache directory: {}" msgstr "" -#: upscaler.py:135 +#: upscaler.py:138 msgid "Unable to delete: {}" msgstr "" -#: upscaler.py:141 upscaler.py:156 upscaler.py:167 +#: upscaler.py:144 upscaler.py:159 upscaler.py:170 msgid "Input and output path type mismatch" msgstr "" -#: upscaler.py:142 +#: upscaler.py:145 msgid "Input is multiple files but output is not directory" msgstr "" -#: upscaler.py:146 +#: upscaler.py:149 msgid "Input path {} is neither a file nor a directory" msgstr "" -#: upscaler.py:150 upscaler.py:172 +#: upscaler.py:153 upscaler.py:175 msgid "Input directory and output directory cannot be the same" msgstr "" -#: upscaler.py:157 +#: upscaler.py:160 msgid "Input is single file but output is directory" msgstr "" -#: upscaler.py:160 +#: upscaler.py:163 msgid "No suffix found in output file path" msgstr "" -#: upscaler.py:161 +#: upscaler.py:164 msgid "Suffix must be specified" msgstr "" -#: upscaler.py:168 +#: upscaler.py:171 msgid "Input is directory but output is existing single file" msgstr "" -#: upscaler.py:177 +#: upscaler.py:180 msgid "Input path is neither a file nor a directory" msgstr "" -#: upscaler.py:186 +#: upscaler.py:189 msgid "FFmpeg or FFprobe cannot be found under the specified path" msgstr "" -#: upscaler.py:187 upscaler.py:197 +#: upscaler.py:190 upscaler.py:200 msgid "Please check the configuration file settings" msgstr "" -#: upscaler.py:196 +#: upscaler.py:199 msgid "Specified driver executable directory doesn't exist" msgstr "" -#: upscaler.py:223 +#: upscaler.py:226 msgid "Failed to parse driver argument: {}" msgstr "" -#: upscaler.py:248 -msgid "Anime4KCPP doesn't yet support GIF processing" -msgstr "" - -#: upscaler.py:263 +#: upscaler.py:258 msgid "Unrecognized driver: {}" msgstr "" -#: upscaler.py:303 +#: upscaler.py:298 msgid "Starting progress monitor" msgstr "" -#: upscaler.py:308 +#: upscaler.py:303 msgid "Starting upscaled image cleaner" msgstr "" -#: upscaler.py:317 upscaler.py:334 +#: upscaler.py:312 upscaler.py:329 msgid "Killing progress monitor" msgstr "" -#: upscaler.py:320 upscaler.py:337 +#: upscaler.py:315 upscaler.py:332 msgid "Killing upscaled image cleaner" msgstr "" -#: upscaler.py:341 +#: upscaler.py:336 msgid "Terminating all processes" msgstr "" -#: upscaler.py:348 +#: upscaler.py:343 msgid "Main process waiting for subprocesses to exit" msgstr "" -#: upscaler.py:367 upscaler.py:371 +#: upscaler.py:362 upscaler.py:366 msgid "Subprocess {} exited with code {}" msgstr "" -#: upscaler.py:377 +#: upscaler.py:372 msgid "Stop signal received" msgstr "" -#: upscaler.py:382 +#: upscaler.py:377 msgid "Subprocess execution ran into an error" msgstr "" -#: upscaler.py:430 +#: upscaler.py:425 msgid "Upscaling single file: {}" msgstr "" -#: upscaler.py:466 +#: upscaler.py:461 msgid "Starting to upscale image" msgstr "" -#: upscaler.py:469 upscaler.py:487 upscaler.py:545 +#: upscaler.py:464 upscaler.py:526 msgid "Upscaling completed" msgstr "" -#: upscaler.py:482 -msgid "Starting to upscale video with Anime4KCPP" -msgstr "" - -#: upscaler.py:496 +#: upscaler.py:478 msgid "Reading video information" msgstr "" -#: upscaler.py:510 +#: upscaler.py:492 msgid "Aborting: No video stream found" msgstr "" -#: upscaler.py:531 -msgid "Unsupported pixel format: {}" -msgstr "" - -#: upscaler.py:534 +#: upscaler.py:497 msgid "Framerate: {}" msgstr "" -#: upscaler.py:543 +#: upscaler.py:514 +msgid "Unsupported pixel format: {}" +msgstr "" + +#: upscaler.py:524 msgid "Starting to upscale extracted frames" msgstr "" -#: upscaler.py:550 +#: upscaler.py:531 msgid "File {} ({}) neither an image of a video" msgstr "" -#: upscaler.py:551 +#: upscaler.py:532 msgid "Skipping this file" msgstr "" -#: upscaler.py:561 +#: upscaler.py:542 msgid "Converting extracted frames into GIF image" msgstr "" -#: upscaler.py:565 upscaler.py:574 +#: upscaler.py:546 upscaler.py:555 msgid "Conversion completed" msgstr "" -#: upscaler.py:570 +#: upscaler.py:551 msgid "Converting extracted frames into video" msgstr "" -#: upscaler.py:578 +#: upscaler.py:559 msgid "Migrating audio, subtitles and other streams to upscaled video" msgstr "" -#: upscaler.py:587 +#: upscaler.py:569 msgid "Failed to migrate streams" msgstr "" -#: upscaler.py:588 +#: upscaler.py:570 msgid "Trying to output video without additional streams" msgstr "" -#: upscaler.py:599 -msgid "Output video file exists, aborting" +#: upscaler.py:586 +msgid "Output video file exists" msgstr "" -#: upscaler.py:603 +#: upscaler.py:590 +msgid "Created temporary directory to contain file" +msgstr "" + +#: upscaler.py:593 msgid "Writing intermediate file to: {}" msgstr "" -#: video2x.py:84 +#: video2x.py:85 msgid "" -"Video2X Version: {}\n" +"Video2X CLI Version: {}\n" +"Upscaler 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 +#: video2x.py:108 msgid "Video2X Options" msgstr "" -#: video2x.py:107 +#: video2x.py:109 msgid "show this help message and exit" msgstr "" -#: video2x.py:108 +#: video2x.py:110 msgid "source video file/directory" msgstr "" -#: video2x.py:109 +#: video2x.py:111 msgid "output video file/directory" msgstr "" -#: video2x.py:110 +#: video2x.py:112 msgid "video2x config file path" msgstr "" -#: video2x.py:112 +#: video2x.py:114 msgid "display version, lawful information and exit" msgstr "" -#: video2x.py:115 +#: video2x.py:117 msgid "Upscaling Options" msgstr "" -#: video2x.py:116 +#: video2x.py:118 msgid "upscaling driver" msgstr "" -#: video2x.py:117 +#: video2x.py:119 msgid "scaling ratio" msgstr "" -#: video2x.py:118 +#: video2x.py:120 msgid "number of processes to use for upscaling" msgstr "" -#: video2x.py:119 +#: video2x.py:121 msgid "preserve extracted and upscaled frames" msgstr "" -#: video2x.py:159 +#: video2x.py:161 msgid "This file cannot be imported" msgstr "" -#: video2x.py:234 +#: video2x.py:236 msgid "Program completed, taking {} seconds" msgstr "" -#: video2x.py:237 +#: video2x.py:239 msgid "An exception has occurred" msgstr ""