From a7f2054101da8135b8d4724c4ea93da3e5e3048b Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 4 Sep 2020 11:19:34 +0200 Subject: [PATCH] Update translations and sharing UI --- h5p.classes.php | 7 +++++++ js/h5p-hub-sharing.js | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index fb36276..0d842f1 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -3634,16 +3634,19 @@ class H5PCore { 'offlineDialogRetryButtonLabel' => $this->h5pF->t('Retry now'), 'offlineSuccessfulSubmit' => $this->h5pF->t('Successfully submitted results.'), 'mainTitle' => $this->h5pF->t('Sharing :title'), + 'editInfoTitle' => $this->h5pF->t('Edit info for :title'), 'cancel' => $this->h5pF->t('Cancel'), 'back' => $this->h5pF->t('Back'), 'next' => $this->h5pF->t('Next'), 'reviewInfo' => $this->h5pF->t('Review info'), 'share' => $this->h5pF->t('Share'), + 'saveChanges' => $this->h5pF->t('Save changes'), 'close' => $this->h5pF->t('Close'), 'registerOnHub' => $this->h5pF->t('Register on the Hub'), 'requiredInfo' => $this->h5pF->t('Required Info'), 'optionalInfo' => $this->h5pF->t('Optional Info'), 'reviewAndShare' => $this->h5pF->t('Review & Share'), + 'reviewAndSave' => $this->h5pF->t('Review & Save'), 'shared' => $this->h5pF->t('Shared'), 'currentStep' => $this->h5pF->t('Step :step of :total'), 'sharingNote' => $this->h5pF->t('All content details can be edited after sharing'), @@ -3673,6 +3676,7 @@ class H5PCore { 'screenshots' => $this->h5pF->t('Screenshots'), 'helpChoosingLicense' => $this->h5pF->t('Help me choose a license'), 'shareFailed' => $this->h5pF->t('Share failed.'), + 'editingFailed' => $this->h5pF->t('Editing failed.'), 'shareTryAgain' => $this->h5pF->t('Something went wrong, please try to share agian.'), 'pleaseWait' => $this->h5pF->t('Please wait...'), 'language' => $this->h5pF->t('Language'), @@ -3684,7 +3688,9 @@ class H5PCore { 'screenshotsDescription' => $this->h5pF->t('Add up to five screenshots of your content'), 'submitted' => $this->h5pF->t('Submitted!'), 'isNowSubmitted' => $this->h5pF->t('Is now submitted to H5P Hub'), + 'changeHasBeenSubmitted' => $this->h5pF->t('A change has been submited for'), 'contentAvailable' => $this->h5pF->t('Your content will soon be available for download'), + 'contentUpdateSoon' => $this->h5pF->t('Your content will update soon'), 'contentLicenseTitle' => $this->h5pF->t('Content License Info'), 'licenseDialogDescription' => $this->h5pF->t('Click on a specific license to get info about proper usage'), 'publisherFieldTitle' => $this->h5pF->t('Publisher'), @@ -3752,6 +3758,7 @@ class H5PCore { 'Accept' => 'application/json', ); + $data['published'] = '1'; $endpoint = H5PHubEndpoints::CONTENT; if ($content_hub_id !== NULL) { $endpoint .= "/{$content_hub_id}"; diff --git a/js/h5p-hub-sharing.js b/js/h5p-hub-sharing.js index 95f71d2..5276dde 100644 --- a/js/h5p-hub-sharing.js +++ b/js/h5p-hub-sharing.js @@ -22,7 +22,7 @@ var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0 * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 - */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,a=void 0,i=void 0,l=function(e,t){h[o]=e,h[o+1]=t,2===(o+=2)&&(i?i(m):w())},u="undefined"!=typeof window?window:void 0,s=u||{},c=s.MutationObserver||s.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(m,1)}}var h=new Array(1e3);function m(){for(var e=0;eN.length&&N.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case i:u=!0}}if(u)return r(o,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;sP.length&&P.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case i:u=!0}}if(u)return r(o,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s