From 530a8a1f4b5daf76b249c5c7da43b034d6a1c481 Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Fri, 20 Mar 2020 10:53:49 +0100 Subject: [PATCH 1/2] Replacement of mentor and entrepreneur labels to something else --- src/includes/account-creation.pug | 4 +-- src/includes/entrepreneur/profile/create.pug | 2 +- src/includes/mentor/dashboard.pug | 2 +- src/includes/mentor/profile/create.pug | 4 +-- src/includes/mentor/profile/edit.pug | 2 +- src/includes/mentor/validation-process.pug | 2 +- src/scripts/coopstarter.js | 20 +++++++-------- translation/en.yml | 24 +++++++++--------- translation/fr.yml | 26 ++++++++++---------- 9 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/includes/account-creation.pug b/src/includes/account-creation.pug index 583340fe..0d783b57 100644 --- a/src/includes/account-creation.pug +++ b/src/includes/account-creation.pug @@ -14,14 +14,14 @@ sib-router(default-route='account-creation-index') figure.img_log img(src="../images/mentor.png" alt="Create your account as mentor") - h2.button_base=`${data.IAmMentor}` + h2.button_base=`${data.IAmContributor}` sib-link.block_log(next='entrepreneur-new-account') div figure.img_log img(src="../images/fusee.png" alt="Create your account as entrepreneur") - h2.button_base=`${data.IAmEntrepreneur}` + h2.button_base=`${data.IAmSearcher}` #mentor-new-account(hidden).no-sidebar.container include mentor/profile/create.pug diff --git a/src/includes/entrepreneur/profile/create.pug b/src/includes/entrepreneur/profile/create.pug index 37614b5a..7e9412f9 100644 --- a/src/includes/entrepreneur/profile/create.pug +++ b/src/includes/entrepreneur/profile/create.pug @@ -6,7 +6,7 @@ figure.logo.img_log img(src="../images/fusee.png" alt="Create an entrepreneur account") -h2.title_create=`${data.CompleteEntrepreneurAccount}` +h2.title_create=`${data.CompleteSearcherAccount}` sib-form#entrepreneur_profile_creation.block_log.block_creat_count( partial diff --git a/src/includes/mentor/dashboard.pug b/src/includes/mentor/dashboard.pug index d6680a0e..324fd8ab 100644 --- a/src/includes/mentor/dashboard.pug +++ b/src/includes/mentor/dashboard.pug @@ -1,4 +1,4 @@ -// Mentor dashboard, containing +// Contributor dashboard, containing // 3 tabs: // - History of my validated resources // - Resources validation request diff --git a/src/includes/mentor/profile/create.pug b/src/includes/mentor/profile/create.pug index 23aa86ec..14da1346 100644 --- a/src/includes/mentor/profile/create.pug +++ b/src/includes/mentor/profile/create.pug @@ -6,7 +6,7 @@ figure.logo.img_log img(src="../images/mentor.png" alt="Create a mentor account") -h2.title_create= data.CompleteMentorAccount +h2.title_create= data.CompleteContributorAccount sib-form#mentor_profile_creation.block_log.block_creat_count( bind-user @@ -40,7 +40,7 @@ sib-form#mentor_profile_creation.block_log.block_creat_count( label-mentorProfile.city=`${data.City}` label-mentorProfile.country=`${data.Country}` label-mentorProfile.biography=`${data.ActivitiesMore}` - label-mentorProfile.skills=`${data.SkillForEntrepreneur}` + label-mentorProfile.skills=`${data.SkillForSearcher}` label-mentorProfile.linkedin="Linkedin" label-mentorProfile.twitter="Twitter" diff --git a/src/includes/mentor/profile/edit.pug b/src/includes/mentor/profile/edit.pug index a67627c8..7be96a99 100644 --- a/src/includes/mentor/profile/edit.pug +++ b/src/includes/mentor/profile/edit.pug @@ -32,7 +32,7 @@ sib-form#mentor_profile_edition.block_log.block_creat_count( label-mentorProfile.city=`${data.City}` label-mentorProfile.country=`${data.Country}` label-mentorProfile.biography=`${data.ActivitiesMore}` - label-mentorProfile.skills=`${data.SkillForEntrepreneur}` + label-mentorProfile.skills=`${data.SkillForSearcher}` label-mentorProfile.linkedin="Linkedin" label-mentorProfile.twitter="Twitter" diff --git a/src/includes/mentor/validation-process.pug b/src/includes/mentor/validation-process.pug index 008fb788..9fc2df93 100644 --- a/src/includes/mentor/validation-process.pug +++ b/src/includes/mentor/validation-process.pug @@ -7,7 +7,7 @@ div.block_log.block_creat_count.no_shadow figure.w_50 img( src="../images/valid_1.png" alt="") - figcaption.w_75=`${data.MentorUploadResourceToDatabase}` + figcaption.w_75=`${data.ContributorUploadResourceToDatabase}` figure.w_50 img( src="../images/valid_2.png" diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index b93ffe88..9421d399 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -592,16 +592,16 @@ jQuery(document).ready(function($) { //Set the share links $(".twitter-link").on("populate", function (e) { - var regexMentor = /mentor/g - var regexEntrepreneur = /entrepreneur/g - var valUrl = window.location.href.replace(regexMentor, 'public').replace(regexEntrepreneur, 'public') + var regexContributor = /mentor/g + var regexSearcher = /entrepreneur/g + var valUrl = window.location.href.replace(regexContributor, 'public').replace(regexSearcher, 'public') $('.twshare').attr("href", "https://twitter.com/intent/tweet?text=Check%20this%20resource%20from%20Coopstarter%20:%20;original_referer=http%3A%2F%2F127.0.0.1%3A3000%2Fevenements&ref_src=twsrc%5Etfw&tw_p=tweetbutton&url=" + valUrl + "&"); }); $(".email-link").on("populate", function (e) { - var regexMentor = /mentor/g - var regexEntrepreneur = /entrepreneur/g - var valUrl = window.location.href.replace(regexMentor, 'public').replace(regexEntrepreneur, 'public') + var regexContributor = /mentor/g + var regexSearcher = /entrepreneur/g + var valUrl = window.location.href.replace(regexContributor, 'public').replace(regexSearcher, 'public') $('.emshare').attr("href", "mailto:?subject=Coopstarter%20shared%20resource&body=I%20share%20you%20this%20resource%20from%20Coopstarter%20:%20" + valUrl); }); @@ -686,8 +686,8 @@ jQuery(document).ready(function($) { XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ window.setTimeout(() => { //Manage the form to report broken link. - let detailsMentor = document.getElementById("detail-mentor"); - detailsMentor.addEventListener("populate", event => { + let detailsContributor = document.getElementById("detail-mentor"); + detailsContributor.addEventListener("populate", event => { var userWhoSubmitReport = userAccountDataSrc.dataset.src var formBrokenLink = document.getElementById("report-broken-link-mentor"); fillReportBrokenLinkForm(event, userWhoSubmitReport, formBrokenLink); @@ -753,8 +753,8 @@ jQuery(document).ready(function($) { }; //Manage the form to report broken link. - let detailsEntrepreneur = document.getElementById("detail-entrepreneur"); - detailsEntrepreneur.addEventListener("populate", event => { + let detailsSearcher = document.getElementById("detail-entrepreneur"); + detailsSearcher.addEventListener("populate", event => { var formBrokenLink = document.getElementById("report-broken-link-entrepreneur"); var userWhoSubmitReport = userAccountDataSrc.dataset.src fillReportBrokenLinkForm(event, userWhoSubmitReport, formBrokenLink); diff --git a/translation/en.yml b/translation/en.yml index 01921be7..7f502cfa 100644 --- a/translation/en.yml +++ b/translation/en.yml @@ -5,8 +5,8 @@ MyAccount : My account Logout : Logout BackToDashboard : -> Back to dashboard BackToMyAccount : Back to my account -welcome : Welcome to our international index of resources for cooperative mentors and entrepreneurs -generalLabel : International index of resources for cooperative mentors and entrepreneurs +welcome : Welcome to our international index of resources for cooperative contributors and searchers +generalLabel : International index of resources for cooperative contributors and searchers PostResource: Post a new Resource BrowseDatabase: Browse database ResourcesRequestingValidation: Resources requesting validation @@ -44,21 +44,21 @@ Name : Name Surname : Surname AboutYou : About you Organisation: Organisation -EditAbout : Informations will appear on your profile to inform entrepreneurs about your skills and activities. We will also use those information to address specific resources for validation. +EditAbout : Informations will appear on your profile to inform searchers about your skills and activities. We will also use those information to address specific resources for validation. Headline : Headline or current position City : City Country : Country ActivitiesMore : Tell us more about your activities -SkillForEntrepreneur : What skills can you share with our entrepreneurs ? +SkillForSearcher : What skills can you share with our searchers ? SocialMedias : Social medias SaveModification : Save modifications Search : Search ModificationsProperlySaved: Your modifications have properly been saved. -CompleteMentorAccount : Complete your mentor account -CompleteEntrepreneurAccount : Complete your entrepreneur account +CompleteContributorAccount : Complete your contributor account +CompleteSearcherAccount : Complete your searcher account CompleteYourAccount : COMPLETE YOUR ACCOUNT RequestRessource : Request a ressource -RequestRessourceInfo : You can't find a resource you are looking for ? You need resources to acquire certain skills or progress in your cooperative developement ? It can be a book, a document model, a tutorial, anything you need, make a request to our mentors so they know how to help you. +RequestRessourceInfo : You can't find a resource you are looking for ? You need resources to acquire certain skills or progress in your cooperative developement ? It can be a book, a document model, a tutorial, anything you need, make a request to our contributors so they know how to help you. TitleRequired : Title* Description : Description FieldRequired: Field* @@ -75,7 +75,7 @@ Thanks : Thanks! ConfirmSendBrokenLink : The submitter of the resource will be advised that this link is broken. YouRequestHasBeenSubmitted : Your request has been submitted WhatValidationProcess : What is a validation process ? -MentorUploadResourceToDatabase: Mentor upload a resource to the database +ContributorUploadResourceToDatabase: Contributor upload a resource to the database ResourceSentToQualifiedPeersForValidation: Resource is sent to qualified peers for validation ResourceBecomesAvailableInDatabase: Resource is validated and becomes available in the database ResourceIsNotValidated: Resource is not validated and improvement is suggested. You get a list of improvement, can edit and re-load the resource. It goes to validation process again. @@ -86,7 +86,7 @@ YesSureDelete : Yes I am sure, delete AreYouSurArchive: Are you sur you want to archive this request ? ArchivethisRequest: Archive this request ThankYouEnrichingDatabase : Thank you for enriching our database ! -ThanksMsg: Once one of your pair, a fellow mentor, validate your resource, it will be published online and we will send you a notification. +ThanksMsg: Once one of your pair, a fellow contributor, validate your resource, it will be published online and we will send you a notification. Classification : Classification FormatReq: Format* LocationWeblinkReq: Location/weblink* @@ -112,6 +112,6 @@ ThanksForReview: Thanks for your review SubmitterWillReceiveReview: The submitter of the resource will now receive a notification of your review. HeWillPatch : He will then be able to patch and send back the resource to validation ExplainReasonsRefusal: Explain reasons of refusal* -IAmMentor: I am a mentor -IAmEntrepreneur: I am an entrepreneur -RequestIntro: The resources listed bellow were requested by entrepreneurs. By posting related resources you will help the cooperative community and enrich the database. \ No newline at end of file +IAmContributor: I am a contributor +IAmSearcher: I am a searcher +RequestIntro: The resources listed bellow were requested by searchers. By posting related resources you will help the cooperative community and enrich the database. \ No newline at end of file diff --git a/translation/fr.yml b/translation/fr.yml index ea222370..57785448 100644 --- a/translation/fr.yml +++ b/translation/fr.yml @@ -5,8 +5,8 @@ MyAccount : Mon compte Logout : Déconnexion BackToDashboard : Retour au tableau de bord BackToMyAccount : Retour à mon compte -welcome : Bienvenue dans notre répertoire international de ressources pour les mentors et les entrepreneurs coopératifs. -generalLabel : Index international de ressources pour les mentors et les entrepreneurs coopératifs +welcome : Bienvenue dans notre répertoire international de ressources pour les contributeurs et les chercheurs coopératifs. +generalLabel : Index international de ressources pour les contributeurs et les chercheurs coopératifs PostResource: Poster une nouvelle ressource BrowseDatabase: Rechercher dans la base de donnée ResourcesRequestingValidation: Ressources à valider @@ -44,21 +44,21 @@ Name : Nom Surname : Nom de famille AboutYou : A propos de vous Organisation: Organisation -EditAbout : Des informations apparaîtront sur votre profil pour informer les entrepreneurs de vos compétences et de vos activités. Nous utiliserons également ces informations pour adresser des ressources spécifiques pour la validation. +EditAbout : Des informations apparaîtront sur votre profil pour informer les chercheurs de vos compétences et de vos activités. Nous utiliserons également ces informations pour adresser des ressources spécifiques pour la validation. Headline : Titre ou position actuelle City : Ville Country : Pays de publication ActivitiesMore : Parlez-nous de vos activités -SkillForEntrepreneur : Quelles compétences pouvez-vous partager avec nos entrepreneurs ? +SkillForSearcher : Quelles compétences pouvez-vous partager avec nos chercheurs ? SocialMedias : Médias sociaux SaveModification : Enregistrer les modifications Search : Rechercher ModificationsProperlySaved: Vos modifications ont bien été enregistrées. -CompleteMentorAccount : Completer votre compte mentor -CompleteEntrepreneurAccount : Completer votre compte entrepreneur -CompleteYourAccount : Completer votre compte +CompleteContributorAccount : Compléter votre compte contributeur +CompleteSearcherAccount : Compléter votre compte chercheur +CompleteYourAccount : Compléter votre compte RequestRessource : Demander une ressource -RequestRessourceInfo : Vous ne trouvez pas la ressource que vous recherchez ? Vous avez besoin de ressources pour acquérir certaines compétences ou progresser dans votre développement coopératif ? Il peut s'agir d'un livre, d'un modèle de document, d'un tutoriel, de tout ce dont vous avez besoin, faites une demande à nos mentors pour qu'ils sachent comment vous aider. +RequestRessourceInfo : Vous ne trouvez pas la ressource que vous recherchez ? Vous avez besoin de ressources pour acquérir certaines compétences ou progresser dans votre développement coopératif ? Il peut s'agir d'un livre, d'un modèle de document, d'un tutoriel, de tout ce dont vous avez besoin, faites une demande à nos contributeurs pour qu'ils sachent comment vous aider. TitleRequired : Titre* Description : Description FieldRequired: Domaine* @@ -69,7 +69,7 @@ ComplementaryInformation : Informations complémentaires WithThisResourceBeAbleTo : Grâce à cette ressource, vous serez en mesure de WatchThePresentation : Regarder la présentation WhatValidationProcess : Qu'est-ce qu'un processus de validation ? -MentorUploadResourceToDatabase: Le mentor télécharge une ressource dans la base de données +ContributorUploadResourceToDatabase: Le contributeur télécharge une ressource dans la base de données ResourceSentToQualifiedPeersForValidation : La ressource est envoyée à des pairs qualifiés pour validation. ResourceBecomesAvailableInDatabase: La ressource est validée et devient disponible dans la base de données ResourceIsNotValidated: La ressource n'est pas validée et l'amélioration est signalée. Vous obtenez une liste des améliorations, vous pouvez modifier et recharger la ressource. Il est de nouveau soumis au processus de validation. @@ -80,7 +80,7 @@ YesSureDelete : Oui, j'en suis sûr, supprimer AreYouSurArchive: Êtes-vous sur de vouloir archiver cette demande ? ArchivethisRequest: Archiver cette demande ThankYouEnrichingDatabase : Merci d'enrichir notre base de données ! -ThanksMsg: Une fois que l'un de vos pairs, un collègue mentor, aura validé votre ressource, elle sera publiée en ligne et nous vous enverrons un avis. +ThanksMsg: Une fois que l'un de vos pairs, un collègue contributeur, aura validé votre ressource, elle sera publiée en ligne et nous vous enverrons un avis. Classification : Classification FormatReq: Format* LocationWeblinkReq: Location/weblink* @@ -106,6 +106,6 @@ ThanksForReview: Merci pour votre avis SubmitterWillReceiveReview: L'auteur de la ressource recevra maintenant un avis de votre examen. HeWillPatch : Il pourra alors corriger et renvoyer la ressource à la validation. ExplainReasonsRefusal: Expliquez les raisons du refus*. -IAmMentor: Je suis un mentor -IAmEntrepreneur: je suis un entrepreneur -RequestIntro: Les ressources listées ci-dessous ont été demandées par des entrepreneurs. En publiant des ressources connexes, vous aiderez la communauté coopérative et enrichirez la base de données. \ No newline at end of file +IAmContributor: Je suis un contributeur +IAmSearcher: je suis un chercheur +RequestIntro: Les ressources listées ci-dessous ont été demandées par des chercheurs. En publiant des ressources connexes, vous aiderez la communauté coopérative et enrichirez la base de données. \ No newline at end of file -- GitLab From 2786b31b665924ae0bf55db661d058bbdfe8a1ac Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Fri, 20 Mar 2020 11:39:06 +0100 Subject: [PATCH 2/2] Fixing syntax in tests too --- cypress/integration/test.spec.js | 2 +- translation/fr.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/test.spec.js b/cypress/integration/test.spec.js index a8e321ed..73b1c223 100644 --- a/cypress/integration/test.spec.js +++ b/cypress/integration/test.spec.js @@ -21,7 +21,7 @@ context('Window', () => { // https://on.cypress.io/title cy.get('h2.title_lead').should( 'contain.text', - 'Welcome to our international index of resources for cooperative mentors and entrepreneurs', + 'Welcome to our international index of resources for cooperative contributors and searchers', ); }); }); diff --git a/translation/fr.yml b/translation/fr.yml index 57785448..98841e23 100644 --- a/translation/fr.yml +++ b/translation/fr.yml @@ -1,6 +1,6 @@ --- -Dashboard : Tableau de board -ResourcesDatabase : Base de donnée de ressource +Dashboard : Tableau de bord +ResourcesDatabase : Bibliothèque de ressources MyAccount : Mon compte Logout : Déconnexion BackToDashboard : Retour au tableau de bord @@ -8,7 +8,7 @@ BackToMyAccount : Retour à mon compte welcome : Bienvenue dans notre répertoire international de ressources pour les contributeurs et les chercheurs coopératifs. generalLabel : Index international de ressources pour les contributeurs et les chercheurs coopératifs PostResource: Poster une nouvelle ressource -BrowseDatabase: Rechercher dans la base de donnée +BrowseDatabase: Rechercher dans la base de données ResourcesRequestingValidation: Ressources à valider RequestedResources: Ressources demandées HistoryResources : Historique de vos ressources -- GitLab