Skip to content

Commit aa88a0f

Browse files
committed
Update AblePlayer build & German translation
1 parent 56dfebc commit aa88a0f

File tree

9 files changed

+61
-56
lines changed

9 files changed

+61
-56
lines changed

src/build/ableplayer.dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 with DOMPurify included */
1+
/*! ableplayer V4.8.0 with DOMPurify included */
22
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
33

44
(function (global, factory) {
@@ -5070,7 +5070,7 @@ var AblePlayerInstances = [];
50705070

50715071
var preProcessing = {
50725072
transformCSSClasses: function (vttContent) {
5073-
if ( vttContent > 1000 ) {
5073+
if ( vttContent.length > 1000 ) {
50745074
throw new Error( "Input too long" );
50755075
}
50765076
return vttContent.replace(
@@ -13321,7 +13321,7 @@ if (typeof module !== "undefined" && module.exports) {
1332113321
$('#able-vts-save').on('click',function(e) {
1332213322
e.stopPropagation();
1332313323
if ($(this).attr('value') == 'save') {
13324-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
13324+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1332513325
$savedTable = $('#able-vts table');
1332613326
$('#able-vts-instructions').hide();
1332713327
$('#able-vts > fieldset').hide();
@@ -13335,7 +13335,7 @@ if (typeof module !== "undefined" && module.exports) {
1333513335
$('#able-vts > fieldset').show();
1333613336
$('#able-vts').append($savedTable);
1333713337
$('#able-vts').append(thisObj.getIconCredit());
13338-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
13338+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1333913339
}
1334013340
});
1334113341
}
@@ -14022,7 +14022,7 @@ if (typeof module !== "undefined" && module.exports) {
1402214022
if ($.inArray(kind,kinds) !== -1) {
1402314023
start = $rows.eq(i).find('td').eq(2).text();
1402414024
end = $rows.eq(i).find('td').eq(3).text();
14025-
content = $rows.eq(i).find('td').eq(4).text();
14025+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1402614026
if (start !== undefined && end !== undefined) {
1402714027
vtt[kind] += start + ' --> ' + end + "\n";
1402814028
if (content !== 'undefined') {

src/build/ableplayer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 with DOMPurify included */
1+
/*! ableplayer V4.8.0 with DOMPurify included */
22
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
33

44
(function (global, factory) {
@@ -6149,7 +6149,7 @@ var preProcessing = {
61496149
transformCSSClasses: function (vttContent) {
61506150
// This function should only be passed one cue at a time.
61516151
// Throw an error if the string checked is more than 1000 characters.
6152-
if ( vttContent > 1000 ) {
6152+
if ( vttContent.length > 1000 ) {
61536153
throw new Error( "Input too long" );
61546154
}
61556155
return vttContent.replace(
@@ -15746,7 +15746,7 @@ if (typeof module !== "undefined" && module.exports) {
1574615746
e.stopPropagation();
1574715747
if ($(this).attr('value') == 'save') {
1574815748
// replace table with WebVTT output in textarea fields (for copying/pasting)
15749-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
15749+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1575015750
$savedTable = $('#able-vts table');
1575115751
$('#able-vts-instructions').hide();
1575215752
$('#able-vts > fieldset').hide();
@@ -15761,7 +15761,7 @@ if (typeof module !== "undefined" && module.exports) {
1576115761
$('#able-vts > fieldset').show();
1576215762
$('#able-vts').append($savedTable);
1576315763
$('#able-vts').append(thisObj.getIconCredit());
15764-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
15764+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1576515765
}
1576615766
});
1576715767
}
@@ -16584,7 +16584,7 @@ if (typeof module !== "undefined" && module.exports) {
1658416584
if ($.inArray(kind,kinds) !== -1) {
1658516585
start = $rows.eq(i).find('td').eq(2).text();
1658616586
end = $rows.eq(i).find('td').eq(3).text();
16587-
content = $rows.eq(i).find('td').eq(4).text();
16587+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1658816588
if (start !== undefined && end !== undefined) {
1658916589
vtt[kind] += start + ' --> ' + end + "\n";
1659016590
if (content !== 'undefined') {

src/build/ableplayer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/separate-dompurify/ableplayer.dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
1+
/*! ableplayer V4.8.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
22
/*jslint node: true, browser: true, white: true, indent: 2, unparam: true, plusplus: true */
33
/*global $, jQuery */
44
"use strict";
@@ -4754,7 +4754,7 @@ var preProcessing = {
47544754
transformCSSClasses: function (vttContent) {
47554755
// This function should only be passed one cue at a time.
47564756
// Throw an error if the string checked is more than 1000 characters.
4757-
if ( vttContent > 1000 ) {
4757+
if ( vttContent.length > 1000 ) {
47584758
throw new Error( "Input too long" );
47594759
}
47604760
return vttContent.replace(
@@ -14337,7 +14337,7 @@ if (typeof module !== "undefined" && module.exports) {
1433714337
e.stopPropagation();
1433814338
if ($(this).attr('value') == 'save') {
1433914339
// replace table with WebVTT output in textarea fields (for copying/pasting)
14340-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
14340+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1434114341
$savedTable = $('#able-vts table');
1434214342
$('#able-vts-instructions').hide();
1434314343
$('#able-vts > fieldset').hide();
@@ -14352,7 +14352,7 @@ if (typeof module !== "undefined" && module.exports) {
1435214352
$('#able-vts > fieldset').show();
1435314353
$('#able-vts').append($savedTable);
1435414354
$('#able-vts').append(thisObj.getIconCredit());
14355-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
14355+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1435614356
}
1435714357
});
1435814358
}
@@ -15175,7 +15175,7 @@ if (typeof module !== "undefined" && module.exports) {
1517515175
if ($.inArray(kind,kinds) !== -1) {
1517615176
start = $rows.eq(i).find('td').eq(2).text();
1517715177
end = $rows.eq(i).find('td').eq(3).text();
15178-
content = $rows.eq(i).find('td').eq(4).text();
15178+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1517915179
if (start !== undefined && end !== undefined) {
1518015180
vtt[kind] += start + ' --> ' + end + "\n";
1518115181
if (content !== 'undefined') {

src/build/separate-dompurify/ableplayer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
1+
/*! ableplayer V4.8.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
22
/*jslint node: true, browser: true, white: true, indent: 2, unparam: true, plusplus: true */
33
/*global $, jQuery */
44
"use strict";
@@ -4754,7 +4754,7 @@ var preProcessing = {
47544754
transformCSSClasses: function (vttContent) {
47554755
// This function should only be passed one cue at a time.
47564756
// Throw an error if the string checked is more than 1000 characters.
4757-
if ( vttContent > 1000 ) {
4757+
if ( vttContent.length > 1000 ) {
47584758
throw new Error( "Input too long" );
47594759
}
47604760
return vttContent.replace(
@@ -14351,7 +14351,7 @@ if (typeof module !== "undefined" && module.exports) {
1435114351
e.stopPropagation();
1435214352
if ($(this).attr('value') == 'save') {
1435314353
// replace table with WebVTT output in textarea fields (for copying/pasting)
14354-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
14354+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1435514355
$savedTable = $('#able-vts table');
1435614356
$('#able-vts-instructions').hide();
1435714357
$('#able-vts > fieldset').hide();
@@ -14366,7 +14366,7 @@ if (typeof module !== "undefined" && module.exports) {
1436614366
$('#able-vts > fieldset').show();
1436714367
$('#able-vts').append($savedTable);
1436814368
$('#able-vts').append(thisObj.getIconCredit());
14369-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
14369+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1437014370
}
1437114371
});
1437214372
}
@@ -15189,7 +15189,7 @@ if (typeof module !== "undefined" && module.exports) {
1518915189
if ($.inArray(kind,kinds) !== -1) {
1519015190
start = $rows.eq(i).find('td').eq(2).text();
1519115191
end = $rows.eq(i).find('td').eq(3).text();
15192-
content = $rows.eq(i).find('td').eq(4).text();
15192+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1519315193
if (start !== undefined && end !== undefined) {
1519415194
vtt[kind] += start + ' --> ' + end + "\n";
1519515195
if (content !== 'undefined') {

src/build/separate-dompurify/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/ableplayer.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@
248248

249249
.able .able-vidcap-container video {
250250
max-width: 100%;
251+
width: 100%;
251252
display: block; /* Prevents excess height after element */
252253
}
253254

@@ -1353,6 +1354,10 @@ button.able-search-results-time {
13531354
color: #323232;
13541355
}
13551356

1357+
#able-vts table td[contenteditable="true"] {
1358+
white-space: pre-wrap;
1359+
}
1360+
13561361
#able-vts table td[contenteditable="true"]:hover {
13571362
background: #fff;
13581363
color: #333;

src/translations/de.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"audio": "Audio",
33
"video": "Video",
4-
"playerHeading": "Media Player",
5-
"audioPlayer": "Audio player",
6-
"videoPlayer": "Video player",
4+
"playerHeading": "Medienplayer",
5+
"audioPlayer": "Audioplayer",
6+
"videoPlayer": "Videoplayer",
77
"faster": "Schneller",
88
"slower": "Langsamer",
99
"chapters": "Kapitel",
@@ -41,7 +41,7 @@
4141
"enterFullScreen": "Vollbildmodus einschalten",
4242
"exitFullScreen": "Vollbildmodus verlassen",
4343
"fullScreen": "Vollbildmodus",
44-
"fullScreenTitle": "Full screen video player",
44+
"fullScreenTitle": "Vollbild-Videoplayer",
4545
"speed": "Geschwindigkeit",
4646
"and": "und",
4747
"or": "oder",
@@ -95,7 +95,7 @@
9595
"prefAltKey": "Alt",
9696
"prefCtrlKey": "Strg",
9797
"prefShiftKey": "Umschalttaste",
98-
"prefNoKeyShortcuts": "Disable keyboard shortcuts",
98+
"prefNoKeyShortcuts": "Tastenkombinationen deaktivieren",
9999
"escapeKey": "ESC Taste",
100100
"escapeKeyFunction": "Dialogfenster schließen",
101101
"prefDescFormat": "Bevorzugtes Format",
@@ -156,13 +156,13 @@
156156
"dismissButton": "Dismiss",
157157
"windowButtonLabel": "Fenstereinstellungen",
158158
"windowMove": "Verschieben",
159-
"windowMoveLeft": "Window moved left",
160-
"windowMoveRight": "Window moved right",
161-
"windowMoveUp": "Window moved up",
162-
"windowMoveDown": "Window moved down",
163-
"windowMoveStopped": "Window move stopped",
164-
"transcriptControls": "Transcript Window Controls",
165-
"signControls": "Sign Language Window Controls",
159+
"windowMoveLeft": "Das Fenster verschob sich nach links",
160+
"windowMoveRight": "Das Fenster verschob sich nach rechts",
161+
"windowMoveUp": "Das Fenster verschob sich nach oben",
162+
"windowMoveDown": "Das Fenster verschob sich nach unten",
163+
"windowMoveStopped": "Das Fenster hörte auf sich zu verschieben",
164+
"transcriptControls": "Bedienelemente des Transkriptionsfensters",
165+
"signControls": "Bedienelemente des Gebärdensprache-Fensters",
166166
"windowMoveAlert": "Fenster mit Pfeiltasten oder Maus verschieben; beenden mit Eingabetaste",
167167
"windowResize": "Größe verändern",
168168
"windowResizeHeading": "Größe des Gebärdensprache-Fenster",
@@ -186,23 +186,23 @@
186186
"minutes": "Minuten",
187187
"seconds": "Sekunden",
188188
"enableKeyboardShortcuts": "Tastaturkürzel aktivieren",
189-
"vtsHeading": "Video Transcript Sorter",
190-
"vtsInstructions1": "Use the Video Transcript Sorter to modify text tracks:",
191-
"vtsInstructions2": "Reorder chapters, descriptions, captions, and/or subtitles so they appear in the proper sequence in Able Player's auto-generated transcript.",
192-
"vtsInstructions3": "Modify content or start/end times (all are directly editable within the table).",
193-
"vtsInstructions4": "Add new content, such as chapters or descriptions.",
194-
"vtsInstructions5": "After editing, click the \"Save Changes\" button to generate new content for all relevant timed text files. The new text can be copied and pasted into new WebVTT files.",
195-
"vtsSelectLanguage": "Select a language",
196-
"vtsSave": "Generate new .vtt content",
197-
"vtsReturn": "Return to Editor",
198-
"vtsCancel": "Cancelling saving. Any edits you made have been restored in the VTS table.",
199-
"vtsRow": "Row",
200-
"vtsKind": "Kind",
201-
"vtsStart": "Start",
202-
"vtsEnd": "End",
203-
"vtsContent": "Content",
204-
"vtsActions": "Actions",
205-
"vtsNewRow": "A new row %1 has been inserted.",
206-
"vtsDeletedRow": "Row %1 has been deleted.",
207-
"vtsMovedRow": "Row %1 has been moved %2 and is now Row %3."
189+
"vtsHeading": "Transkriptions-Sortierer für Videos",
190+
"vtsInstructions1": "Verwenden Sie den Transkription-Sortierer für Videos, um Textspuren zu ändern:",
191+
"vtsInstructions2": "Ordnen Sie Kapitel, Beschreibungen, Bildunterschriften, und/oder Untertitel so, dass diese in der richtigen Reihenfolge in der selbsterzeugten Transkription des Able Players erscheinen.",
192+
"vtsInstructions3": "Verändern Sie Inhalt oder Anfangs- bzw. Endzeiten (alle sind direkt innerhalb der Tabelle editierbar).",
193+
"vtsInstructions4": "Fügen Sie neuen Inhalt, wie Kapitel oder Beschreibungen hinzu.",
194+
"vtsInstructions5": "Nach dem Editieren klicken Sie auf die Schaltfläche \"Änderungen speichern\" um neuen Inhalt für alle wichtigen zeitgesteuerten Textdateien zu erzeugen. Der neue Text kann in neue WebVTT-Dateien kopiert und eingefügt werden.",
195+
"vtsSelectLanguage": "Wählen Sie eine Sprache aus",
196+
"vtsSave": "Erzeugen Sie neuen .vtt-Inhalt",
197+
"vtsReturn": "Gehen Sie zurück zum Editor",
198+
"vtsCancel": "Abbruch des Speicherns. Jegliche Bearbeitungen, die Sie vorgenommen haben, wurden in der VTS-Tabelle gesichert.",
199+
"vtsRow": "Reihe",
200+
"vtsKind": "Art",
201+
"vtsStart": "Anfang",
202+
"vtsEnd": "Ende",
203+
"vtsContent": "Inhalt",
204+
"vtsActions": "Aktionen",
205+
"vtsNewRow": "Eine neue Reihe %1 wurde eingefügt.",
206+
"vtsDeletedRow": "Reihe %1 wurde gelöscht.",
207+
"vtsMovedRow": "Reihe %1 wurde verschoben %2 ist nun Reihe %3."
208208
}

0 commit comments

Comments
 (0)