1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #760 from nyanmisaka/master

Add some translations for playback info
This commit is contained in:
dkanada 2020-02-04 11:43:41 +09:00 committed by GitHub
commit f3a6a27da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 10 deletions

View file

@ -1,4 +1,4 @@
define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackManager', 'appRouter', 'appSettings', 'connectionManager', 'htmlMediaHelper', 'itemHelper', 'fullscreenManager'], function (browser, require, events, appHost, loading, dom, playbackManager, appRouter, appSettings, connectionManager, htmlMediaHelper, itemHelper, fullscreenManager) { define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackManager', 'appRouter', 'appSettings', 'connectionManager', 'htmlMediaHelper', 'itemHelper', 'fullscreenManager', 'globalize'], function (browser, require, events, appHost, loading, dom, playbackManager, appRouter, appSettings, connectionManager, htmlMediaHelper, itemHelper, fullscreenManager, globalize) {
"use strict"; "use strict";
var mediaManager; var mediaManager;
@ -1855,7 +1855,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (protocol) { if (protocol) {
mediaCategory.stats.push({ mediaCategory.stats.push({
label: 'Protocol:', label: globalize.translate("LabelProtocol"),
value: protocol value: protocol
}); });
} }
@ -1865,12 +1865,12 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (this._hlsPlayer || this._shakaPlayer) { if (this._hlsPlayer || this._shakaPlayer) {
mediaCategory.stats.push({ mediaCategory.stats.push({
label: 'Stream type:', label: globalize.translate("LabelStreamType"),
value: 'HLS' value: 'HLS'
}); });
} else { } else {
mediaCategory.stats.push({ mediaCategory.stats.push({
label: 'Stream type:', label: globalize.translate("LabelStreamType"),
value: 'Video' value: 'Video'
}); });
} }
@ -1882,13 +1882,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
categories.push(videoCategory); categories.push(videoCategory);
var rect = mediaElement.getBoundingClientRect ? mediaElement.getBoundingClientRect() : {}; var rect = mediaElement.getBoundingClientRect ? mediaElement.getBoundingClientRect() : {};
var height = rect.height; var height = parseInt(rect.height);
var width = rect.width; var width = parseInt(rect.width);
// Don't show player dimensions on smart TVs because the app UI could be lower resolution than the video and this causes users to think there is a problem // Don't show player dimensions on smart TVs because the app UI could be lower resolution than the video and this causes users to think there is a problem
if (width && height && !browser.tv) { if (width && height && !browser.tv) {
videoCategory.stats.push({ videoCategory.stats.push({
label: 'Player dimensions:', label: globalize.translate("LabelPlayerDimensions"),
value: width + 'x' + height value: width + 'x' + height
}); });
} }
@ -1898,7 +1898,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
if (width && height) { if (width && height) {
videoCategory.stats.push({ videoCategory.stats.push({
label: 'Video resolution:', label: globalize.translate("LabelVideoResolution"),
value: width + 'x' + height value: width + 'x' + height
}); });
} }
@ -1908,13 +1908,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
var droppedVideoFrames = playbackQuality.droppedVideoFrames || 0; var droppedVideoFrames = playbackQuality.droppedVideoFrames || 0;
videoCategory.stats.push({ videoCategory.stats.push({
label: 'Dropped frames:', label: globalize.translate("LabelDroppedFrames"),
value: droppedVideoFrames value: droppedVideoFrames
}); });
var corruptedVideoFrames = playbackQuality.corruptedVideoFrames || 0; var corruptedVideoFrames = playbackQuality.corruptedVideoFrames || 0;
videoCategory.stats.push({ videoCategory.stats.push({
label: 'Corrupted frames:', label: globalize.translate("LabelCorruptedFrames"),
value: corruptedVideoFrames value: corruptedVideoFrames
}); });
} }

View file

@ -575,6 +575,7 @@
"LabelCollection": "Collection:", "LabelCollection": "Collection:",
"LabelCommunityRating": "Community rating:", "LabelCommunityRating": "Community rating:",
"LabelContentType": "Content type:", "LabelContentType": "Content type:",
"LabelCorruptedFrames": "Corrupted frames:",
"LabelCountry": "Country:", "LabelCountry": "Country:",
"LabelCriticRating": "Critic rating:", "LabelCriticRating": "Critic rating:",
"LabelCurrentPassword": "Current password:", "LabelCurrentPassword": "Current password:",
@ -609,6 +610,7 @@
"LabelDownMixAudioScaleHelp": "Boost audio when downmixing. A value of one will preserve the original volume.", "LabelDownMixAudioScaleHelp": "Boost audio when downmixing. A value of one will preserve the original volume.",
"LabelDownloadLanguages": "Download languages:", "LabelDownloadLanguages": "Download languages:",
"LabelDropImageHere": "Drop image here, or click to browse.", "LabelDropImageHere": "Drop image here, or click to browse.",
"LabelDroppedFrames": "Dropped frames:",
"LabelDropShadow": "Drop shadow:", "LabelDropShadow": "Drop shadow:",
"LabelDynamicExternalId": "{0} Id:", "LabelDynamicExternalId": "{0} Id:",
"LabelEasyPinCode": "Easy pin code:", "LabelEasyPinCode": "Easy pin code:",
@ -757,6 +759,7 @@
"LabelPlaceOfBirth": "Place of birth:", "LabelPlaceOfBirth": "Place of birth:",
"LabelPlayDefaultAudioTrack": "Play default audio track regardless of language", "LabelPlayDefaultAudioTrack": "Play default audio track regardless of language",
"LabelPlayer": "Player:", "LabelPlayer": "Player:",
"LabelPlayerDimensions": "Player dimensions:",
"LabelPlaylist": "Playlist:", "LabelPlaylist": "Playlist:",
"LabelPlayMethod": "Play method:", "LabelPlayMethod": "Play method:",
"LabelPleaseRestart": "Changes will take effect after manually reloading the web client.", "LabelPleaseRestart": "Changes will take effect after manually reloading the web client.",
@ -830,6 +833,7 @@
"LabelStatus": "Status:", "LabelStatus": "Status:",
"LabelStopWhenPossible": "Stop when possible:", "LabelStopWhenPossible": "Stop when possible:",
"LabelStopping": "Stopping", "LabelStopping": "Stopping",
"LabelStreamType": "Stream type:",
"LabelSubtitleDownloaders": "Subtitle downloaders:", "LabelSubtitleDownloaders": "Subtitle downloaders:",
"LabelSubtitleFormatHelp": "Example: srt", "LabelSubtitleFormatHelp": "Example: srt",
"LabelSubtitlePlaybackMode": "Subtitle mode:", "LabelSubtitlePlaybackMode": "Subtitle mode:",
@ -882,6 +886,7 @@
"LabelVideo": "Video:", "LabelVideo": "Video:",
"LabelVideoBitrate": "Video bitrate:", "LabelVideoBitrate": "Video bitrate:",
"LabelVideoCodec": "Video codec:", "LabelVideoCodec": "Video codec:",
"LabelVideoResolution": "Video resolution:",
"LabelWeb": "Web:", "LabelWeb": "Web:",
"LabelXDlnaCap": "X-DLNA cap:", "LabelXDlnaCap": "X-DLNA cap:",
"LabelXDlnaCapHelp": "Determines the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.", "LabelXDlnaCapHelp": "Determines the content of the X_DLNACAP element in the urn:schemas-dlna-org:device-1-0 namespace.",

View file

@ -506,6 +506,7 @@
"LabelCollection": "收藏:", "LabelCollection": "收藏:",
"LabelCommunityRating": "公众评分:", "LabelCommunityRating": "公众评分:",
"LabelContentType": "内容类型:", "LabelContentType": "内容类型:",
"LabelCorruptedFrames": "损坏的帧:",
"LabelCountry": "国家:", "LabelCountry": "国家:",
"LabelCriticRating": "影评人评分:", "LabelCriticRating": "影评人评分:",
"LabelCurrentPassword": "当前密码:", "LabelCurrentPassword": "当前密码:",
@ -540,6 +541,7 @@
"LabelDownMixAudioScaleHelp": "缩混音频增强。值为A将保留原来的音量。", "LabelDownMixAudioScaleHelp": "缩混音频增强。值为A将保留原来的音量。",
"LabelDownloadLanguages": "下载语言:", "LabelDownloadLanguages": "下载语言:",
"LabelDropImageHere": "拖拽或点击选择图像于此处。", "LabelDropImageHere": "拖拽或点击选择图像于此处。",
"LabelDroppedFrames": "丢弃的帧:",
"LabelDropShadow": "阴影:", "LabelDropShadow": "阴影:",
"LabelDynamicExternalId": "{0} Id", "LabelDynamicExternalId": "{0} Id",
"LabelEasyPinCode": "简易PIN码", "LabelEasyPinCode": "简易PIN码",
@ -681,6 +683,7 @@
"LabelPersonRole": "角色:", "LabelPersonRole": "角色:",
"LabelPlaceOfBirth": "出生地:", "LabelPlaceOfBirth": "出生地:",
"LabelPlayDefaultAudioTrack": "播放默认音轨无论是什么语言", "LabelPlayDefaultAudioTrack": "播放默认音轨无论是什么语言",
"LabelPlayerDimensions": "播放器尺寸:",
"LabelPlaylist": "播放列表:", "LabelPlaylist": "播放列表:",
"LabelPostProcessor": "后处理应用程序:", "LabelPostProcessor": "后处理应用程序:",
"LabelPostProcessorArguments": "处理器后命令行参数:", "LabelPostProcessorArguments": "处理器后命令行参数:",
@ -746,6 +749,7 @@
"LabelStatus": "状态:", "LabelStatus": "状态:",
"LabelStopWhenPossible": "当可能时自动停止:", "LabelStopWhenPossible": "当可能时自动停止:",
"LabelStopping": "停止", "LabelStopping": "停止",
"LabelStreamType": "串流类型:",
"LabelSubtitleDownloaders": "字幕下载器:", "LabelSubtitleDownloaders": "字幕下载器:",
"LabelSubtitleFormatHelp": "例如SRT", "LabelSubtitleFormatHelp": "例如SRT",
"LabelSubtitlePlaybackMode": "字幕模式:", "LabelSubtitlePlaybackMode": "字幕模式:",
@ -787,6 +791,7 @@
"LabelVersion": "版本:", "LabelVersion": "版本:",
"LabelVersionInstalled": "{0} 已安装", "LabelVersionInstalled": "{0} 已安装",
"LabelVersionNumber": "版本 {0}", "LabelVersionNumber": "版本 {0}",
"LabelVideoResolution": "视频分辨率:",
"LabelXDlnaCap": "X-DLNA CAP", "LabelXDlnaCap": "X-DLNA CAP",
"LabelXDlnaCapHelp": "决定在 urn:schemas-dlna-org:device-1-0 namespace 中的 X_DLNACAP 元素的内容。", "LabelXDlnaCapHelp": "决定在 urn:schemas-dlna-org:device-1-0 namespace 中的 X_DLNACAP 元素的内容。",
"LabelXDlnaDoc": "X-DLNA DOC", "LabelXDlnaDoc": "X-DLNA DOC",