diff --git a/src/includes/footer.pug b/src/includes/footer.pug index 9aa0e92bd7537a72354f94e1767393860207bd09..013ae8fbd9fd89b000ff0146e9d03ffa459cc0eb 100644 --- a/src/includes/footer.pug +++ b/src/includes/footer.pug @@ -18,6 +18,6 @@ img.textMore(src=`${client_domain}/images/logo_UE.jpg` alt="European Union Logo") div p Co-funded - p by the + p by the p European Union - p.footer_warning.flex_item_center This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union. \ No newline at end of file + p.footer_warning.flex_item_center=`${data.FooterFundingNotice}` \ No newline at end of file diff --git a/src/includes/head.pug b/src/includes/head.pug index b173e73aa142147aaeabfb1993cd07b405539eef..2bc07a01ffffe1956e8deb42cfd987b27a666ccd 100644 --- a/src/includes/head.pug +++ b/src/includes/head.pug @@ -16,6 +16,9 @@ head window.navigator.userAgent.indexOf("Edge/") > -1) { alert("Please either update your Edge browser to the last version (>= 80, you can check that in ... -> Settings -> General) or switch to another browser (Chrome / Safari / Firefox)"); } + script. + uploadPreviewImageLabel = '#{data.UploadPreviewImage}'; + uploadProfilePictureLabel = '#{data.UploadProfilePictureLabel}'; script(src="/scripts/coopstarter.js") script(async src="https://platform.twitter.com/widgets.js" charset="utf-8") script(src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js" integrity="sha384-wF7Jc4ZlWVxe/L8Ji3hOIBeTgo/HwFuaeEfjGmS3EXAG7Y+7Kjjr91gJpJtr+PAT" crossorigin="anonymous") @@ -38,4 +41,3 @@ head "jabberID": "foaf:jabberID", "picture": "foaf:depiction" } - diff --git a/src/includes/mentor/resources/confirmation.pug b/src/includes/mentor/resources/confirmation.pug index c991852a84c0bc93e9ae7ae9ff2c3b77917c257f..faa823230b7b16ab386ebf5cc838e83e2c49794f 100644 --- a/src/includes/mentor/resources/confirmation.pug +++ b/src/includes/mentor/resources/confirmation.pug @@ -16,7 +16,7 @@ div.block_list div p.flex - sib-link(class="backlink pull-right", next="resource-validation-process-confirmation") What is a validation process ? + sib-link(class="backlink pull-right", next="resource-validation-process-confirmation")=`${data.WhatValidationProcess}` div.flex h3.button_base diff --git a/src/includes/mentor/resources/list.pug b/src/includes/mentor/resources/list.pug index 644e3a0510c7804868cb55232c9dceab05750d7d..1d1733d01e3366c2fafb280940c67da1a4ac0685 100644 --- a/src/includes/mentor/resources/list.pug +++ b/src/includes/mentor/resources/list.pug @@ -42,17 +42,17 @@ div.block_list div#loader-review-mentor hidden i.fas.fa-spinner.fa-spin - sib-link(class="backlink pull-right", next="resource-validation-process") What is a validation process ? + sib-link(class="backlink pull-right", next="resource-validation-process")=`${data.WhatValidationProcess}` sib-display#pending_resources( loader-id="loader-review-mentor" data-src=`${endpoints.resources}pending/` fields='content(name, info(resource_author, publication_year)), validate', widget-publication_year='cs-display-resource-property' - label-publication_year='Posted on:' + label-publication_year=`${data.DatePublication}: ` widget-resource_author='cs-display-resource-property' - label-resource_author='Author:' + label-resource_author=`${data.Author}: ` action-validate='mentor-resource-validate' label-validate='Check ->' @@ -73,12 +73,15 @@ div.block_list data-src=`${endpoints.requests}` fields='name, content(description, info(fields, language.name, target, submitter.email, status))', search-fields='status' - label-target='Target audience:' - label-language.name='Language:' - label-submitter.email="Submitter email:" - label-fields='Fields:' + + label-target=`${data.TargetAudienceLabel}: ` + label-language.name=`${data.LanguageLabel}: ` + label-submitter.email=`${data.SubmitterEmailLabel}: ` + + label-fields=`${data.FieldsInputLabel}: ` each-label-fields='' multiple-fields + widget-fields='cs-display-multiple-property' widget-language.name='cs-display-resource-property' widget-target='cs-display-resource-property' @@ -87,10 +90,9 @@ div.block_list search-widget-status='hidden-widget' search-value-status='pending' - label-status='Dealt with' + label-status=`${data.RequestDealtWith}` widget-status='cs-request-status-action' action-status="status" - ) diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index c3d0df7eebfc90cb46da9befa9562da00a9a831c..ec40d26f91ac4f06bdab4b3b307cd224c2280431 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -920,11 +920,11 @@ document.addEventListener("DOMContentLoaded", event => { }); //Init the form file behaviour - initFileUpload("resource_creation_form", "preview_image", "Upload a preview image"); - initFileUpload("resource_edition_form", "preview_image", "Upload a preview image"); + initFileUpload("resource_creation_form", "preview_image", uploadPreviewImageLabel); + initFileUpload("resource_edition_form", "preview_image", uploadPreviewImageLabel); // initFileUpload("mentor_profile_creation", "account.picture", "Upload a file"); - initFileUpload("mentor_profile_picture", "picture", "Upload a file"); + initFileUpload("mentor_profile_picture", "picture", uploadProfilePictureLabel); refreshRequestList("change_status_request", "request_list"); //Refresh data list on delete resources diff --git a/translation/en.yml b/translation/en.yml index b57d3d7ae2b90115542e38bbb1f530034ce3f78f..07e29a2a445efbd589095807dea9986191b70728 100644 --- a/translation/en.yml +++ b/translation/en.yml @@ -119,4 +119,11 @@ DescriptionRequestEntrepreneur : How can we help? WhatIsAContributor : A contributor feeds the database and is part of the validation process of the resources. WhatIsASearcher : A searcher uses the database and can post requests for new resources. AboutField : The fields you choose here must be related to your own field of expertise. Resources available for validation will be filtered based on that selection. The same thing is true regarding the languages you select here. -AboutYouExplanation : These information will appear on your profile to inform searchers about your skills and activities. We will also use those information to define which resources you are best suited to validate. \ No newline at end of file +AboutYouExplanation : These information will appear on your profile to inform searchers about your skills and activities. We will also use those information to define which resources you are best suited to validate. +FooterFundingNotice : This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union. +TargetAudienceLabel: Target audience +SubmitterEmailLabel: Submitter email +FieldsInputLabel: Fields +LanguageLabel: Language +RequestDealtWith: Dealt With +UploadProfilePictureLabel: Upload a profile picture \ No newline at end of file