Skip to content

Commit

Permalink
Merge pull request #77 from tunapanda/fix/stop-overriding-integration
Browse files Browse the repository at this point in the history
feat: do not stop override existing H5P integration properties
  • Loading branch information
murage authored Apr 23, 2021
2 parents 40c8954 + f5f3a29 commit a253a44
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion dist/main.bundle.js

Large diffs are not rendered by default.

144 changes: 72 additions & 72 deletions src/js/h5p-integration.js
Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
const H5PIntegration = {};

H5PIntegration.l10n = {
H5P: {
"fullscreen": "Fullscreen",
"disableFullscreen": "Disable fullscreen",
"download": "Download",
"copyrights": "Rights of use",
"embed": "Embed",
"size": "Size",
"showAdvanced": "Show advanced",
"hideAdvanced": "Hide advanced",
"advancedHelp": "Include this script on your website if you want dynamic sizing of the embedded content:",
"copyrightInformation": "Rights of use",
"close": "Close",
"title": "Title",
"author": "Author",
"year": "Year",
"source": "Source",
"license": "License",
"thumbnail": "Thumbnail",
"noCopyrights": "No copyright information available for this content.",
"reuse": "Reuse",
"reuseContent": "Reuse Content",
"reuseDescription": "Reuse this content.",
"downloadDescription": "Download this content as a H5P file.",
"copyrightsDescription": "View copyright information for this content.",
"embedDescription": "View the embed code for this content.",
"h5pDescription": "Visit H5P.org to check out more cool content.",
"contentChanged": "This content has changed since you last used it.",
"startingOver": "You'll be starting over.",
"by": "by",
"showMore": "Show more",
"showLess": "Show less",
"subLevel": "Sublevel",
"confirmDialogHeader": "Confirm action",
"confirmDialogBody": "Please confirm that you wish to proceed. This action is not reversible.",
"cancelLabel": "Cancel",
"confirmLabel": "Confirm",
"licenseU": "Undisclosed",
"licenseCCBY": "Attribution",
"licenseCCBYSA": "Attribution-ShareAlike",
"licenseCCBYND": "Attribution-NoDerivs",
"licenseCCBYNC": "Attribution-NonCommercial",
"licenseCCBYNCSA": "Attribution-NonCommercial-ShareAlike",
"licenseCCBYNCND": "Attribution-NonCommercial-NoDerivs",
"licenseCC40": "4.0 International",
"licenseCC30": "3.0 Unported",
"licenseCC25": "2.5 Generic",
"licenseCC20": "2.0 Generic",
"licenseCC10": "1.0 Generic",
"licenseGPL": "General Public License",
"licenseV3": "Version 3",
"licenseV2": "Version 2",
"licenseV1": "Version 1",
"licensePD": "Public Domain",
"licenseCC010": "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"licensePDM": "Public Domain Mark",
"licenseC": "Copyright",
"contentType": "Content Type",
"licenseExtras": "License Extras",
"changes": "Changelog",
"contentCopied": "Content is copied to the clipboard",
"connectionLost": "Connection lost. Results will be stored and sent when you regain connection.",
"connectionReestablished": "Connection reestablished.",
"resubmitScores": "Attempting to submit stored results.",
"offlineDialogHeader": "Your connection to the server was lost",
"offlineDialogBody": "We were unable to send information about your completion of this task. Please check your internet connection.",
"offlineDialogRetryMessage": "Retrying in :num....",
"offlineDialogRetryButtonLabel": "Retry now",
"offlineSuccessfulSubmit": "Successfully submitted results."
const integration = {
l10n: {
H5P: {
"fullscreen": "Fullscreen",
"disableFullscreen": "Disable fullscreen",
"download": "Download",
"copyrights": "Rights of use",
"embed": "Embed",
"size": "Size",
"showAdvanced": "Show advanced",
"hideAdvanced": "Hide advanced",
"advancedHelp": "Include this script on your website if you want dynamic sizing of the embedded content:",
"copyrightInformation": "Rights of use",
"close": "Close",
"title": "Title",
"author": "Author",
"year": "Year",
"source": "Source",
"license": "License",
"thumbnail": "Thumbnail",
"noCopyrights": "No copyright information available for this content.",
"reuse": "Reuse",
"reuseContent": "Reuse Content",
"reuseDescription": "Reuse this content.",
"downloadDescription": "Download this content as a H5P file.",
"copyrightsDescription": "View copyright information for this content.",
"embedDescription": "View the embed code for this content.",
"h5pDescription": "Visit H5P.org to check out more cool content.",
"contentChanged": "This content has changed since you last used it.",
"startingOver": "You'll be starting over.",
"by": "by",
"showMore": "Show more",
"showLess": "Show less",
"subLevel": "Sublevel",
"confirmDialogHeader": "Confirm action",
"confirmDialogBody": "Please confirm that you wish to proceed. This action is not reversible.",
"cancelLabel": "Cancel",
"confirmLabel": "Confirm",
"licenseU": "Undisclosed",
"licenseCCBY": "Attribution",
"licenseCCBYSA": "Attribution-ShareAlike",
"licenseCCBYND": "Attribution-NoDerivs",
"licenseCCBYNC": "Attribution-NonCommercial",
"licenseCCBYNCSA": "Attribution-NonCommercial-ShareAlike",
"licenseCCBYNCND": "Attribution-NonCommercial-NoDerivs",
"licenseCC40": "4.0 International",
"licenseCC30": "3.0 Unported",
"licenseCC25": "2.5 Generic",
"licenseCC20": "2.0 Generic",
"licenseCC10": "1.0 Generic",
"licenseGPL": "General Public License",
"licenseV3": "Version 3",
"licenseV2": "Version 2",
"licenseV1": "Version 1",
"licensePD": "Public Domain",
"licenseCC010": "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"licensePDM": "Public Domain Mark",
"licenseC": "Copyright",
"contentType": "Content Type",
"licenseExtras": "License Extras",
"changes": "Changelog",
"contentCopied": "Content is copied to the clipboard",
"connectionLost": "Connection lost. Results will be stored and sent when you regain connection.",
"connectionReestablished": "Connection reestablished.",
"resubmitScores": "Attempting to submit stored results.",
"offlineDialogHeader": "Your connection to the server was lost",
"offlineDialogBody": "We were unable to send information about your completion of this task. Please check your internet connection.",
"offlineDialogRetryMessage": "Retrying in :num....",
"offlineDialogRetryButtonLabel": "Retry now",
"offlineSuccessfulSubmit": "Successfully submitted results."
}
}
};

window.H5PIntegration = H5PIntegration;
window.H5PIntegration = window.H5PIntegration ? {...window.H5PIntegration,...integration} : integration;

0 comments on commit a253a44

Please sign in to comment.