From b4f79f919e5f65589b5891eed12a8ccfc3219543 Mon Sep 17 00:00:00 2001 From: Gavin Date: Fri, 17 Oct 2014 01:57:15 -0700 Subject: [PATCH 1/3] Add Chinese Simplified localization file. Found one new string that may needs localization ("The video is encrypted and we do not have the keys to decrypt it."). Was not able to run test on my Windows 8.1 computer. When run grunt, it complains: Warning: Command failed: 'java' is not recognized as an internal or external command. When run grunt test, it complains: PhantomJS 1.9.7 (Windows 8) Player Minified should be able to access expected player API methods FAILED. Although the tests are failed, I don't see the localization has anything to do with the error. --- lang/chs.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lang/chs.json diff --git a/lang/chs.json b/lang/chs.json new file mode 100644 index 0000000000..45179fea21 --- /dev/null +++ b/lang/chs.json @@ -0,0 +1,27 @@ +{ + "Play": "播放", + "Pause": "暂停", + "Current Time": "当前时间", + "Duration Time": "时长", + "Remaining Time": "剩余时间", + "Stream Type": "媒体流类型", + "LIVE": "直播", + "Loaded": "加载完毕", + "Progress": "进度", + "Fullscreen": "全屏", + "Non-Fullscreen": "退出全屏", + "Mute": "静音", + "Unmuted": "取消静音", + "Playback Rate": "播放码率", + "Subtitles": "字幕", + "subtitles off": "字幕关闭", + "Captions": "内嵌字幕", + "captions off": "内嵌字幕关闭", + "Chapters": "节目段落", + "You aborted the video playback": "视频播放被终止", + "A network error caused the video download to fail part-way.": "网络错误导致视频下载中途失败。", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "视频因格式不支持或者服务器或网络的问题无法加载。", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。", + "No compatible source was found for this video.": "无法找到此视频兼容的源。", + "The video is encrypted and we do not have the keys to decrypt it.": "视频已加密,无法解密。" +} From a814f5cd8eb9ccf3f9d30e76270c8b82f6839564 Mon Sep 17 00:00:00 2001 From: Gavin Date: Fri, 17 Oct 2014 22:59:59 -0700 Subject: [PATCH 2/3] Rename chs.json to zh.json which goes with W3C standard language code http://www.w3schools.com/tags/ref_language_codes.asp --- lang/{chs.json => zh.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lang/{chs.json => zh.json} (100%) diff --git a/lang/chs.json b/lang/zh.json similarity index 100% rename from lang/chs.json rename to lang/zh.json From bda58c5b5e9ca339de56abc7f8350724b18b4293 Mon Sep 17 00:00:00 2001 From: Gavin Date: Sun, 1 Feb 2015 08:39:58 -0800 Subject: [PATCH 3/3] Rename zh.json to zh-CN.json As discussed. https://github.com/videojs/video.js/issues/1826#issuecomment-72195425 --- lang/{zh.json => zh-CN.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lang/{zh.json => zh-CN.json} (100%) diff --git a/lang/zh.json b/lang/zh-CN.json similarity index 100% rename from lang/zh.json rename to lang/zh-CN.json