Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ca 178 add score notion to compliance assessment #267

Closed
Closed
Prev Previous commit
Next Next commit
locale: add scoring help text
  • Loading branch information
Mohamed-Hacene committed Apr 15, 2024
commit 197628ab1e52600399f509f7eaaef79f9b7d6c37
3 changes: 2 additions & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,5 +500,6 @@
"missingMandatoyObjects1": "Some mandatory objects to {model} are not created or imported yet",
"missingMandatoyObjects2": "Please add them before proceeding",
"attemptToDeleteOnlyAdminAccountError": "You can't delete the only admin account of your application.",
"attemptToRemoveOnlyAdminUserGroup": "You can't remove the only admin user of the application from the admin user group."
"attemptToRemoveOnlyAdminUserGroup": "You can't remove the only admin user of the application from the admin user group.",
"scoringHelpText": "Check to enable scoring"
}
3 changes: 2 additions & 1 deletion frontend/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,5 +500,6 @@
"missingMandatoyObjects1": "Des objets obligatoires pour {model} ne sont pas encore créés ou importés",
"missingMandatoyObjects2": "Veuillez les ajouter avant de continuer",
"attemptToDeleteOnlyAdminAccountError": "Vous ne pouvez pas supprimer votre unique compte administrateur de l'application.",
"attemptToRemoveOnlyAdminUserGroup": "Vous ne pouvez pas retirer le seul compte administrateur de l'application du groupe des administrateurs."
"attemptToRemoveOnlyAdminUserGroup": "Vous ne pouvez pas retirer le seul compte administrateur de l'application du groupe des administrateurs.",
"scoringHelpText": "Cocher pour activer le score"
}
3 changes: 2 additions & 1 deletion frontend/src/lib/components/Forms/Score.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { formFieldProxy, type SuperForm } from 'sveltekit-superforms/client';
import { ProgressRadial } from '@skeletonlabs/skeleton';
import { RangeSlider } from '@skeletonlabs/skeleton';
import * as m from '$paraglide/messages';
import type { AnyZodObject } from 'zod';

export let label: string | undefined = undefined;
Expand Down Expand Up @@ -70,5 +71,5 @@
{/if}
</div>
</div>
<p class="text-sm text-gray-500">Check to enable scoring</p>
<p class="text-sm text-gray-500">{m.scoringHelpText()}</p>
</div>