From 3e673040b3d325ce36c60531cf425bab8d673a5b Mon Sep 17 00:00:00 2001 From: Tom Johnson Date: Tue, 23 Sep 2014 21:01:56 -0700 Subject: [PATCH 1/2] language translations --- lang/de.json | 44 ++++++++++++++++++++++---------------------- lang/es.json | 44 ++++++++++++++++++++++---------------------- lang/fr.json | 28 ++++++++++++++-------------- lang/ja.json | 26 ++++++++++++++++++++++++++ lang/ko.json | 26 ++++++++++++++++++++++++++ 5 files changed, 110 insertions(+), 58 deletions(-) create mode 100644 lang/ja.json create mode 100644 lang/ko.json diff --git a/lang/de.json b/lang/de.json index bfcb6b2750..a0510ba731 100644 --- a/lang/de.json +++ b/lang/de.json @@ -1,26 +1,26 @@ { - "Play": "abspielen", - "Pause": "pausieren", - "Current Time": "aktueller Zeitpunkt", - "Duration Time": "gesamte Laufzeit", - "Remaining Time": "verbleibende Laufzeit", - "Stream Type": "Übertragungstyp", + "Play": "Wiedergabe", + "Pause": "Pause", + "Current Time": "Aktuelle Uhrzeit", + "Duration Time": "Laufzeit", + "Remaining Time": "Verbleibende Zeit", + "Stream Type": "Streamtyp", "LIVE": "LIVE", - "Loaded": "geladen", - "Progress": "Fortschritt", - "Fullscreen": "Vollbildschirm AN", - "Non-Fullscreen": "Vollbildschirm AUS", - "Mute": "Ton AUS", - "Unmuted": "Ton AN", - "Playback Rate": "Wiedergabegeschwindigkeit", - "Subtitles": "Untertitel AN", - "subtitles off": "Untertitel AUS", - "Captions": "Titel AN", - "captions off": "Titel AUS", + "Loaded": "Geladen", + "Progress": "Status", + "Fullscreen": "Vollbild", + "Non-Fullscreen": "Kein Vollbild", + "Mute": "Ton aus", + "Unmuted": "Ton ein", + "Playback Rate": "Wiedergaberate", + "Subtitles": "Untertitel", + "subtitles off": "Untertitel aus", + "Captions": "Geschlossene Untertitel", + "captions off": "Geschlossene Untertitel aus", "Chapters": "Kapitel", - "You aborted the video playback": "Sie haben die Video-Wiedergabe abgebrochen.", - "A network error caused the video download to fail part-way.": "Ein Fehler bei der Verbindung verursachte eine Unterbrechung mitten im Download.", - "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Das Video konnte nicht geladen werden, entweder weil der Server bzw. die Verbindung gestört ist, oder weil das Format nicht kompatibel ist.", - "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Die Wiedergabe des Videos wurde unterbrochen. Entweder ist das Video beschädigt oder es benutzt ein Feature welches von diesem Browser nicht unterstützt wird.", + "You aborted the video playback": "Sie haben die Videowiedergabe abgebrochen.", + "A network error caused the video download to fail part-way.": "Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.", "No compatible source was found for this video.": "Für dieses Video wurde keine kompatible Quelle gefunden." -} +} \ No newline at end of file diff --git a/lang/es.json b/lang/es.json index d58a670540..bd58e3c035 100644 --- a/lang/es.json +++ b/lang/es.json @@ -1,26 +1,26 @@ { - "Play": "Juego", + "Play": "Reproducción", "Pause": "Pausa", - "Current Time": "Tiempo Actual", - "Duration Time": "Tiempo de Duracion", - "Remaining Time": "Tiempo Restante", - "Stream Type": "Tipo de Transmision", - "LIVE": "En Vivo", + "Current Time": "Tiempo reproducido", + "Duration Time": "Duración total", + "Remaining Time": "Tiempo restante", + "Stream Type": "Tipo de secuencia", + "LIVE": "DIRECTO", "Loaded": "Cargado", "Progress": "Progreso", - "Fullscreen": "Pantalla Completa", - "Non-Fullscreen": "No Pantalla Completa", - "Mute": "Mudo", - "Unmuted": "Activar sonido", - "Playback Rate": "Reproduccion Cambio", - "Subtitles": "Subtitulos", - "subtitles off": "subtitulos fuera", - "Captions": "Subtitulos", - "captions off": "subtitulos fuera", - "Chapters": "Capitulos", - "You aborted the video playback": "Ha anulado la reproduccion de video", - "A network error caused the video download to fail part-way.": "Un error en la red hizo que la descarga de video falle parte del camino.", - "The video could not be loaded, either because the server or network failed or because the format is not supported.": "El video no se puede cargar, ya sea porque el servidor o la red fracasaron o porque el formato no es compatible.", - "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproduccion de video se ha cancelado debido a un problema de corrupcion o porque el video utilizado cuenta con su navegador no soporta.", - "No compatible source was found for this video.": "Ninguna fuente compatible se encontro para este video." -} + "Fullscreen": "Pantalla completa", + "Non-Fullscreen": "Pantalla no completa", + "Mute": "Silenciar", + "Unmuted": "No silenciado", + "Playback Rate": "Velocidad de reproducción", + "Subtitles": "Subtítulos", + "subtitles off": "Subtítulos desactivados", + "Captions": "Subtítulos especiales", + "captions off": "Subtítulos especiales desactivados", + "Chapters": "Capítulos", + "You aborted the video playback": "Ha interrumpido la reproducción del vídeo.", + "A network error caused the video download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.", + "No compatible source was found for this video.": "No se ha encontrado ninguna fuente compatible con este vídeo." +} \ No newline at end of file diff --git a/lang/fr.json b/lang/fr.json index 6e5ff0007b..75a3023cba 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -1,26 +1,26 @@ { - "Play": "Jouer", + "Play": "Lecture", "Pause": "Pause", - "Current Time": "Actuel", + "Current Time": "Temps actuel", "Duration Time": "Durée", - "Remaining Time": "Restant", + "Remaining Time": "Temps restant", "Stream Type": "Type de flux", - "LIVE": "LIVE", + "LIVE": "EN DIRECT", "Loaded": "Chargé", "Progress": "Progression", "Fullscreen": "Plein écran", "Non-Fullscreen": "Fenêtré", - "Mute": "Couper le son", - "Unmuted": "Rétablir le son", + "Mute": "Sourdine", + "Unmuted": "Son activé", "Playback Rate": "Vitesse de lecture", "Subtitles": "Sous-titres", - "subtitles off": "Désactiver", - "Captions": "Annotations", - "captions off": "Désactiver", + "subtitles off": "Sous-titres désactivés", + "Captions": "Sous-titres", + "captions off": "Sous-titres désactivés", "Chapters": "Chapitres", "You aborted the video playback": "Vous avez interrompu la lecture de la vidéo.", - "A network error caused the video download to fail part-way.": "Une erreur réseau a fait échouer le téléchargement.", - "The video could not be loaded, either because the server or network failed or because the format is not supported.": "La vidéo n'a pas pu être chargée, soit parce que le serveur ou le réseau ont rencontré une erreur, soit parce que le format n'est pas supporté.", - "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La lecture a été interrompue à cause d'un problème de corruption ou parce que la vidéo requiert une fonctionnalité non supportée par votre navigateur.", - "No compatible source was found for this video.": "Aucune source compatible n'a pu être trouvée pour cette vidéo." -} + "A network error caused the video download to fail part-way.": "Une erreur de réseau a interrompu le téléchargement de la vidéo.", + "The video could not be loaded, either because the server or network failed or because the format is not supported.": "Cette vidéo n'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n'est pas reconnu.", + "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La lecture de la vidéo a été interrompue à cause d'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.", + "No compatible source was found for this video.": "Aucune source compatible n'a été trouvée pour cette vidéo." +} \ No newline at end of file diff --git a/lang/ja.json b/lang/ja.json new file mode 100644 index 0000000000..44e6613ce1 --- /dev/null +++ b/lang/ja.json @@ -0,0 +1,26 @@ +{ + "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.": "この動画に対して互換性のあるソースが見つかりませんでした" +} diff --git a/lang/ko.json b/lang/ko.json new file mode 100644 index 0000000000..08eafa0dcc --- /dev/null +++ b/lang/ko.json @@ -0,0 +1,26 @@ +{ + "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.": "비디오에 호환되지 않는 소스가 있습니다." +} \ No newline at end of file From a90cc4592002b1eea8c9cb07310f33e0a0239e19 Mon Sep 17 00:00:00 2001 From: Tom Johnson Date: Tue, 23 Sep 2014 21:24:46 -0700 Subject: [PATCH 2/2] documentation update for grunt-videojs-language task usage --- docs/guides/languages.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/guides/languages.md b/docs/guides/languages.md index b41a83be2e..f5c540c555 100644 --- a/docs/guides/languages.md +++ b/docs/guides/languages.md @@ -45,7 +45,12 @@ Adding Languages to Video.js ---------------------------- Additional language support can be added to Video.js in multiple ways. -1. Add your JSON objects via the videojs.addLanguage API. Preferably in the HEAD element of your DOM or otherwise prior to player instantiation. +1. Create language scripts out of your JSON objects by using our custom grunt task `vjslanguages`. This task is automatically run as part of the default grunt task in Video.JS, but can be configured to match your src/dist directories if different. Once these scripts are created, just add them to your DOM like any other script. + +NOTE: These need to be added after the core Video.js script. + + +2. Add your JSON objects via the videojs.addLanguage API. Preferably in the HEAD element of your DOM or otherwise prior to player instantiation. ```html @@ -81,7 +86,7 @@ Additional language support can be added to Video.js in multiple ways. ``` -2. During a Video.js player instantiation. Adding the languages to the configuration object provided in the data-setup attribute. +3. During a Video.js player instantiation. Adding the languages to the configuration object provided in the data-setup attribute. ```html