diff --git a/front/public/locales/en/stdcm-help-section.json b/front/public/locales/en/stdcm-help-section.json index 301e03207f4..6249aeb6d77 100644 --- a/front/public/locales/en/stdcm-help-section.json +++ b/front/public/locales/en/stdcm-help-section.json @@ -1,6 +1,6 @@ { "help": "Help", - "backToIndex": "Back to index", + "backToIndex": "help index", "asu": [ { "title": "Application name", @@ -58,7 +58,7 @@ }, { "type": "text", - "value": "Contact us" + "value": "Contact us" } ] }, diff --git a/front/public/locales/fr/stdcm-help-section.json b/front/public/locales/fr/stdcm-help-section.json index a6e98252c30..c406f1bb2cb 100644 --- a/front/public/locales/fr/stdcm-help-section.json +++ b/front/public/locales/fr/stdcm-help-section.json @@ -1,6 +1,6 @@ { "help": "Aide", - "backToIndex": "Retour à l'index", + "backToIndex": "index de l'aide", "asu": [ { "title": "Nom de l'application", @@ -67,7 +67,7 @@ }, { "type": "text", - "value": "Contactez-nous" + "value": "Contactez-nous" } ] }, @@ -87,7 +87,7 @@ "content": [ { "type": "text", - "value": "Le convoi est un ensemble de véhicules de transport en commun qui circulent ensemble sur une ligne. Il est composé d'un ou plusieurs véhicules, qui peuvent être de types différents (bus, tramway, métro, etc.)." + "value": "Définir le convoi permet d'obtenir une simulation au plus proche de la réalité. Plus les informations que vous indiquez sont conformes à la composition réelle de votre convoi, plus la vitesse du train simulé sera proche de l'opérationnel." }, { "type": "text", @@ -284,14 +284,14 @@ "term": "CH", "definition": "Code Chantier" }, - { - "term": "DSDM", - "definition": "Demande de Sillon de Dernière Minute" - }, { "term": "LMR", "definition": "Last Minute Request" }, + { + "term": "PR", + "definition": "Point Remarquable" + }, { "term": "SDM", "definition": "Sillon de Dernière Minute" diff --git a/front/scripts/i18n-checker.ts b/front/scripts/i18n-checker.ts index 5ddd74911b4..9b5ec564a29 100644 --- a/front/scripts/i18n-checker.ts +++ b/front/scripts/i18n-checker.ts @@ -21,6 +21,8 @@ const IGNORE_MISSING: RegExp[] = [ /translation:destinationTime/, /translation:leaveAt/, /stdcm:simulation.results/, + /stdcm-help-section:asu/, + /stdcm-help-section:sections/, /translation:remainingTrackConflicts/, /translation:remainingWorkConflicts/, /translation:trackConflict/, diff --git a/front/src/applications/stdcm/components/StdcmHelpModule/HelpSection.tsx b/front/src/applications/stdcm/components/StdcmHelpModule/HelpSection.tsx index c8019cb48ac..dc2dbf39fd5 100644 --- a/front/src/applications/stdcm/components/StdcmHelpModule/HelpSection.tsx +++ b/front/src/applications/stdcm/components/StdcmHelpModule/HelpSection.tsx @@ -23,8 +23,8 @@ const HelpSection = ({ section, isActive, closeHelpSection }: HelpSectionProps) onClick={closeHelpSection} className="flex align-items-center stdcm__help-section__back-button" > - - + + {t('backToIndex')} @@ -38,12 +38,12 @@ const HelpSection = ({ section, isActive, closeHelpSection }: HelpSectionProps) ))} {currentSection.subSections?.map((subSection) => ( - <> + {subSection.title} {subSection.content?.map((content, idx) => ( ))} - > + ))} diff --git a/front/src/applications/stdcm/components/StdcmHelpModule/StdcmHelpModule.tsx b/front/src/applications/stdcm/components/StdcmHelpModule/StdcmHelpModule.tsx index af1dcce4987..9d8e318fa98 100644 --- a/front/src/applications/stdcm/components/StdcmHelpModule/StdcmHelpModule.tsx +++ b/front/src/applications/stdcm/components/StdcmHelpModule/StdcmHelpModule.tsx @@ -27,40 +27,35 @@ const StdcmHelpModule = ({ toggleHelpModule, showHelpModule }: StdcmHelpSectionP - + {t('help')} {sections.map((section, index) => ( - <> - setActiveSection(section)} - > + + setActiveSection(section)}> {t(`sections.${section}.title`)} - - + + {index !== sections.length - 1 && } - > + ))} - {sections.map((section, index) => ( + {sections.map((section) => (