Skip to content

Commit

Permalink
Fix labels and translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed Dec 5, 2024
1 parent 225db00 commit e4dfcc6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -922,5 +922,8 @@
"ebiosWs5_5": "Establish risk monitoring framework",
"activity": "Activity",
"bringTheEvidences": "Bring the evidences",
"bringTheEvidencesHelpText": "If disabled, the object will be duplicated without its evidences"
"bringTheEvidencesHelpText": "If disabled, the object will be duplicated without its evidences",
"existingControlsHelper": "What do you currently have to manage this risk",
"extraControlsHelper": "What will you do to mitigate this risk",
"existingContextHelper": "Description of the existing mitigations (this field will be deprecated soon)"
}
5 changes: 4 additions & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,5 +898,8 @@
"ebiosWs5_5": "Mettre en place le cadre de suivi des risques",
"activity": "Activité",
"bringTheEvidences": "Apportez les preuves",
"bringTheEvidencesHelpText": "Si désactivé, l'objet sera dupliqué sans ses preuves"
"bringTheEvidencesHelpText": "Si désactivé, l'objet sera dupliqué sans ses preuves",
"existingControlsHelper": "Que disposez-vous actuellement pour gérer ce risque",
"extraControlsHelper": "Que ferez-vous pour atténuer ce risque",
"existingContextHelper": "Description des mesures existantes (ce champ sera bientôt obsolète)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<div class="flex flex-row space-x-4 card px-4 py-2 bg-white shadow-lg justify-between">
<div class="flex flex-col w-1/2">
<h4 class="h4 font-semibold">{m.residualRisk()}</h4>
<p class="text-sm font-semibold text-gray-400">{m.appliedControls()}</p>
<p class="text-sm font-semibold text-gray-400">{m.extraAppliedControls()}</p>
<ModelTable
source={data.tables['risk_scenarios']}
hideFilters={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@
extra_fields: [['folder', 'str']]
})}
field="existing_applied_controls"
label="Existing controls"
helpText="Current measures to manage this risk"
label={m.existingControls()}
helpText={m.existingControlsHelper()}
/>
</div>
<div class="flex items-center justify-center">
Expand All @@ -254,7 +254,7 @@
{form}
field="existing_controls"
label="context"
helpText="Description of the existing mitigations ( ℹ️ this field will be deprecated soon)"
helpText={m.existingContextHelper()}
regionContainer="w-1/2"
rows={3}
/>
Expand Down Expand Up @@ -311,8 +311,8 @@
extra_fields: [['folder', 'str']]
})}
field="applied_controls"
label="Additional controls"
helpText="Extra measures needed to mitigate this risk"
label={m.extraAppliedControls()}
helpText={m.extraControlsHelper()}
/>
</div>
<div class="flex items-center justify-center">
Expand Down

0 comments on commit e4dfcc6

Please sign in to comment.