From 0cc6b707e2c414314c13e1e72b6fe889faa66c76 Mon Sep 17 00:00:00 2001 From: MisRob Date: Fri, 5 May 2023 10:02:24 +0200 Subject: [PATCH] Add strings for error messages --- .../frontend/channelEdit/components/ResourcePanel.vue | 5 +++++ contentcuration/contentcuration/frontend/shared/mixins.js | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue b/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue index 80af74d205..c06f99138d 100644 --- a/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue +++ b/contentcuration/contentcuration/frontend/channelEdit/components/ResourcePanel.vue @@ -689,6 +689,11 @@ fileSize: 'Size', // Validation strings + /* eslint-disable kolibri/vue-no-unused-translations */ + noLearningActivityError: 'Missing learning activity', + noCompletionCriteriaError: 'Missing completion criteria', + noDurationError: 'Missing duration', + /* eslint-enable kolibri/vue-no-unused-translations */ noLicenseError: 'Missing license', noCopyrightHolderError: 'Missing copyright holder', noLicenseDescriptionError: 'Missing license description', diff --git a/contentcuration/contentcuration/frontend/shared/mixins.js b/contentcuration/contentcuration/frontend/shared/mixins.js index 65dbd0603a..e984cd0a60 100644 --- a/contentcuration/contentcuration/frontend/shared/mixins.js +++ b/contentcuration/contentcuration/frontend/shared/mixins.js @@ -52,6 +52,13 @@ const statusStrings = createTranslator('StatusStrings', { noStorageError: 'Not enough space', }); +export const validationStrings = createTranslator('ValidationStrings', () => { + { + ('Missing required information'); + ('An error message displayed when some information required before publishing a channel is missing, for example when a resource has no license set.'); + } +}); + export const fileStatusMixin = { mixins: [fileSizeMixin], computed: {