Skip to content

Commit

Permalink
Add content hub and a11y changes from Drupal git
Browse files Browse the repository at this point in the history
See Drupal 7 git for git history for these commits.
  • Loading branch information
thomasmars committed Aug 28, 2020
1 parent 9c6f428 commit 04bd75b
Show file tree
Hide file tree
Showing 37 changed files with 468 additions and 70 deletions.
8 changes: 8 additions & 0 deletions h5peditor-ajax.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ public function action($endpoint) {
H5PCore::ajaxSuccess($this->getContentTypeCache(!$this->isContentTypeCacheUpdated()), TRUE);
break;

case H5PEditorEndpoints::CONTENT_HUB_METADATA_CACHE:
if (!$this->isHubOn()) return;
global $user;
header('Cache-Control: no-cache');
header('Content-Type: application/json; charset=utf-8');
print '{"success":true,"data":' . $this->core->getUpdatedContentHubMetadataCache($user->language) . '}';
break;

case H5PEditorEndpoints::LIBRARY_INSTALL:
if (!$this->isPostRequest()) return;

Expand Down
4 changes: 3 additions & 1 deletion language/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/bs.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
6 changes: 4 additions & 2 deletions language/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ H5PEditor.language.core = {
pasteContentNotSupported: 'Der Inhalt der Zwischenablage kann an dieser Stelle nicht eingefügt werden',
pasteContentRestricted: 'Der Inhalt der Zwischenlage kann auf dieser Seite nicht eingefügt werden, da die Nutzung des Inhaltstyps von den Administratoren eingeschränkt wurde',
pasteTooOld: 'Der Inhalt in der Zwischenablage liegt in einer zu alten Version vor (:clip), die nicht an dieser Stelle eingefügt werden kann (erfordert :local). Aktualisiere bitte den Inhalt, den du einfügen möchtest, kopiere ihn erneut und füge ihn dann hier wieder ein.',
pasteTooNew: 'Der Inhalt in der Zwischenablage liegt in einer zu neuen Version vor (:clip), die nicht an dieser Stelle eingefügt werden kann (erfordert: local). Aktualisiere bitte den Inhalt, in den du hineinkopieren möchtest und versuche es dann erneut. ',
pasteTooNew: 'Der Inhalt in der Zwischenablage liegt in einer zu neuen Version vor (:clip), die nicht an dieser Stelle eingefügt werden kann (erfordert: local). Aktualisiere bitte den Inhalt, in den du hineinkopieren möchtest und versuche es dann erneut. ',
ok: 'OK',
avTablistLabel: 'Einfügen über',
tabTitleBasicFileUpload: 'Datei hochladen',
Expand All @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Leider ist der ausgewählte Inhaltstyp \'%lib\' auf dieser Seite nicht installiert.',
proceedButtonLabel: 'Weiter zum Speichern',
enterFullscreenButtonLabel: 'Vollbild',
exitFullscreenButtonLabel: 'Vollbild beenden'
exitFullscreenButtonLabel: 'Vollbild beenden',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
77 changes: 76 additions & 1 deletion language/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,80 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
noContentHeader: 'No Fitting Content?',
noContentSuggestion: 'Create one yourself!',
tutorials: 'Tutorials',
contentSectionAll: 'All shared content',
popularContent: 'Popular Content',
allPopular: 'All Popular',
newOnTheHub: 'New on the Hub',
allNew: 'All New',
filterBy: 'Filter by',
filter: 'Filter',
filters: {
level: {
dropdownLabel: 'Level',
dialogHeader: 'Select level of education',
dialogButtonLabel: 'Filter level of education'
},
language: {
dropdownLabel: 'Language',
dialogHeader: 'Select language(s)',
dialogButtonLabel: 'Filter languages',
searchPlaceholder: 'Select one or more languages'
},
reviewed: {
dropdownLabel: 'Reviewed',
dialogHeader: 'Reviewed Content',
dialogButtonLabel: 'Filter',
optionLabel: 'Show only reviewed content'
},
contentTypes: {
dropdownLabel: 'Content types',
dialogHeader: 'Select Content type(s)',
dialogButtonLabel: 'Filter Content Types',
searchPlaceholder: 'Select one or more content types'
},
disciplines: {
dropdownLabel: 'Discipline',
dialogHeader: 'Select Your Discipline',
dialogButtonLabel: 'Filter Disciplines',
searchPlaceholder: 'Select one or more disciplines'
},
licenses: {
dropdownLabel: 'License',
dialogHeader: 'Select preferred rights of use',
dialogButtonLabel: 'Filter licenses',
options: {
modified: 'Can be modified',
commercial: 'Allows commercial use'
}
}
},
clearFilters: 'Clear all filters',
contentSearchFieldPlaceholder: 'Search for Content',
loadingContentTitle: 'We are loading content for you...',
loadingContentSubtitle: 'Please wait',
by: 'By',
dropdownButton: 'Open dropdown',
paginationNavigation: 'Pagination navigation',
page: 'Page',
currentPage: 'Current page',
nextPage: 'Go to next page',
previousPage: 'Go to previous page',
contentPreviewButtonLabel: 'Preview',
contentDownloadButtonLabel: 'Get Content',
reuseContentTabLabel: 'Get Shared Content',
contentPublisherPanelHeader: 'Publisher Info',
noContentFoundDesc: 'There is no content that matches your search criteria.',
h5pType: 'H5P Type',
level: 'Level',
size: 'Size',
failedFetchingData: 'Failed fetching data',
filterErrorMessage: 'Something went wrong. Please reload the page.',
in: 'in',
navigateToParent: 'Navigate to parent',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
2 changes: 2 additions & 0 deletions language/es-cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@ H5PEditor.language.core = {
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
2 changes: 2 additions & 0 deletions language/es-mx.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@ H5PEditor.language.core = {
proceedButtonLabel: 'Proceder a guardar',
enterFullscreenButtonLabel: 'Ir a pantalla completa',
exitFullscreenButtonLabel: 'Salir de pantalla completa',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Desafortunadamente, el tipo de contendo seleccionado \'%lib\' no está instalado en este sistema.',
proceedButtonLabel: 'Proceder a guardar',
enterFullscreenButtonLabel: 'Ir a pantalla completa',
exitFullscreenButtonLabel: 'Salir de pantalla completa'
exitFullscreenButtonLabel: 'Salir de pantalla completa',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/et.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Kahjuks ei ole valitud sisutüüp \'%lib\' sellesse süsteemi paigaldatud.',
proceedButtonLabel: 'Edasi salvestama',
enterFullscreenButtonLabel: 'Ava täisekraanis',
exitFullscreenButtonLabel: 'Välju täisekraanist'
exitFullscreenButtonLabel: 'Välju täisekraanist',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/eu.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Tamalez, aukeratutako \'%lib\' eduki-mota ez dago sistema honetan instalatuta.',
proceedButtonLabel: 'Jarraitu eta gorde',
enterFullscreenButtonLabel: 'Erabili pantaila osoko modura',
exitFullscreenButtonLabel: 'Irten pantaila osoko modutik'
exitFullscreenButtonLabel: 'Irten pantaila osoko modutik',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Valitettavasti valittua sisältötyyppiä \'%lib\' ei ole asennettuna tähän järjestelmään. Olethan yhteydessä ylläpitoon.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Malheureusement, la bibliothèque pour le type de contenu sélectionné \'%lib\' n\'est pas installée sur votre système.',
proceedButtonLabel: 'Enregistrer',
enterFullscreenButtonLabel: 'Afficher en plein écran',
exitFullscreenButtonLabel: 'Quitter le mode plein écran'
exitFullscreenButtonLabel: 'Quitter le mode plein écran',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
77 changes: 76 additions & 1 deletion language/nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,80 @@ H5PEditor.language.core = {
unknownLibrary: 'Dessverre var ikke den valgte \'%lib\'-innholdstypen installert på dette systemet.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
noContentHeader: 'No Fitting Content?',
noContentSuggestion: 'Create one yourself!',
tutorials: 'Tutorials',
contentSectionAll: 'All shared content',
popularContent: 'Popular Content',
allPopular: 'All Popular',
newOnTheHub: 'New on the Hub',
allNew: 'All New',
filterBy: 'Filter by',
filter: 'Filter',
filters: {
level: {
dropdownLabel: 'Level',
dialogHeader: 'Select level of education',
dialogButtonLabel: 'Filter level of education'
},
language: {
dropdownLabel: 'Language',
dialogHeader: 'Select language(s)',
dialogButtonLabel: 'Filter languages',
searchPlaceholder: 'Select one or more languages'
},
reviewed: {
dropdownLabel: 'Reviewed',
dialogHeader: 'Reviewed Content',
dialogButtonLabel: 'Filter',
optionLabel: 'Show only reviewed content'
},
contentTypes: {
dropdownLabel: 'Content types',
dialogHeader: 'Select Content type(s)',
dialogButtonLabel: 'Filter Content Types',
searchPlaceholder: 'Select one or more content types'
},
disciplines: {
dropdownLabel: 'Discipline',
dialogHeader: 'Select Your Discipline',
dialogButtonLabel: 'Filter Disciplines',
searchPlaceholder: 'Select one or more disciplines'
},
licenses: {
dropdownLabel: 'License',
dialogHeader: 'Select preferred rights of use',
dialogButtonLabel: 'Filter licenses',
options: {
modified: 'Can be modified',
commercial: 'Allows commercial use'
}
}
},
clearFilters: 'Clear all filters',
contentSearchFieldPlaceholder: 'Search for Content',
loadingContentTitle: 'We are loading content for you...',
loadingContentSubtitle: 'Please wait',
by: 'By',
dropdownButton: 'Open dropdown',
paginationNavigation: 'Pagination navigation',
page: 'Page',
currentPage: 'Current page',
nextPage: 'Go to next page',
previousPage: 'Go to previous page',
contentPreviewButtonLabel: 'Preview',
contentDownloadButtonLabel: 'Get Content',
reuseContentTabLabel: 'Get Shared Content',
contentPublisherPanelHeader: 'Publisher Info',
noContentFoundDesc: 'There is no content that matches your search criteria.',
h5pType: 'H5P Type',
level: 'Level',
size: 'Size',
failedFetchingData: 'Failed fetching data',
filterErrorMessage: 'Something went wrong. Please reload the page.',
in: 'in',
navigateToParent: 'Navigate to parent',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Jammer genoeg is het geselecteerde content type \'%lib\' niet geïnstalleerd op dit systeem.',
proceedButtonLabel: 'Doorgaan naar opslaan',
enterFullscreenButtonLabel: 'In volledig scherm werken',
exitFullscreenButtonLabel: 'Volledig scherm afsluiten'
exitFullscreenButtonLabel: 'Volledig scherm afsluiten',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/nn.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Dessverre var ikke den valgte \'%lib\'-innholdstypen installert på dette systemet.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/pt-br.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@ H5PEditor.language.core = {
unknownLibrary: 'Unfortunately, the selected content type \'%lib\' isn\'t installed on this system.',
proceedButtonLabel: 'Proceed to save',
enterFullscreenButtonLabel: 'Enter fullscreen',
exitFullscreenButtonLabel: 'Exit fullscreen'
exitFullscreenButtonLabel: 'Exit fullscreen',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
2 changes: 2 additions & 0 deletions language/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@ H5PEditor.language.core = {
proceedButtonLabel: 'Prosseguir para guardar',
enterFullscreenButtonLabel: 'Mostrar em ecrã inteiro',
exitFullscreenButtonLabel: 'Sair de ecrã inteiro',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
4 changes: 3 additions & 1 deletion language/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,7 @@ H5PEditor.language.core = {
unknownLibrary: 'К сожалению, выбранный тип контента \'%lib\' isn\ не установлен в этой системе.',
proceedButtonLabel: 'Перейти к сохранению',
enterFullscreenButtonLabel: 'Войти в полноэкранный режим',
exitFullscreenButtonLabel: 'Покинуть полноэкранный режим'
exitFullscreenButtonLabel: 'Покинуть полноэкранный режим',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
2 changes: 2 additions & 0 deletions language/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,6 @@ H5PEditor.language.core = {
proceedButtonLabel: 'Kaydetmeye devam et',
enterFullscreenButtonLabel: 'Tam ekran yap',
exitFullscreenButtonLabel: 'Tam ekrandan çık',
a11yTitleShowLabel: 'Show label for AT',
a11yTitleHideLabel: 'Hide label for AT',
};
Loading

0 comments on commit 04bd75b

Please sign in to comment.