Translate CAA form

This commit is contained in:
nemunaire 2023-12-06 02:39:41 +01:00
parent 7e9868d281
commit 1bcc5253cf
3 changed files with 55 additions and 14 deletions

View File

@ -14,6 +14,7 @@
import ResourceRawInput from '$lib/components/resources/raw.svelte';
import CAAIssuer from '$lib/components/resources/CAA-issuer.svelte';
import CAAIodef from '$lib/components/resources/CAA-iodef.svelte';
import { t } from '$lib/translations';
import issuers from './CAA-issuers';
@ -26,14 +27,14 @@
export let value: any;
</script>
<h4>Certificates issuance</h4>
<h4>{$t("resources.CAA.title")}</h4>
<FormGroup>
<Input id="issuedisabled" type="checkbox" label="Disallow any certificate issuance" bind:checked={value.DisallowIssue} />
<Input id="issuedisabled" type="checkbox" label={$t("resources.CAA.no-issuers-hint")} bind:checked={value.DisallowIssue} />
</FormGroup>
<h5>
Authorized Issuers
{$t("resources.CAA.auth-issuers")}
</h5>
{#if !value.DisallowIssue}
@ -50,7 +51,7 @@
{/each}
{:else}
<Alert color="warning" fade={false}>
<strong>All issuer authorized.</strong> With those parameters, all issuer can create certificate for this domain and subdomain.
<strong>{$t("resources.CAA.all-issuers-title")}</strong> {$t("resources.CAA.all-issuers-body")}
</Alert>
{/if}
{#if !readonly}
@ -64,18 +65,18 @@
</ul>
{:else}
<Alert color="danger" fade={false}>
<strong>No issuer authorized.</strong> With those parameters, no issuer is allowed to create certificate for this subdomain.
<strong>{$t("resources.CAA.no-issuers-title")}</strong> {$t("resources.CAA.no-issuers-body")}
</Alert>
{/if}
<h4>Wildcard certificates issuance</h4>
<h4>{$t("resources.CAA.wild-issuers")}</h4>
<FormGroup>
<Input id="wildcardissuedisabled" type="checkbox" label="Disallow wildcard certificate issuance" bind:checked={value.DisallowWildcardIssue} />
<Input id="wildcardissuedisabled" type="checkbox" label={$t("resources.CAA.no-wild-hint")} bind:checked={value.DisallowWildcardIssue} />
</FormGroup>
<h5>
Authorized Issuers
{$t("resources.CAA.auth-issuers")}
</h5>
{#if !value.DisallowWildcardIssue}
@ -92,15 +93,15 @@
{/each}
{:else if value.DisallowIssue}
<Alert color="danger" fade={false}>
<strong>No issuer authorized.</strong> With those parameters, no issuer is authorized to create wildcard certificate for this domain and subdomain. But this can be override with the following settings:
<strong>{$t("resources.CAA.no-issuers-title")}</strong> {$t("resources.CAA.no-wild-body")}
</Alert>
{:else if value.Issue}
<Alert color="warning" fade={false}>
<strong>Same as regular certificate issuance.</strong> With those parameters, all issuer authorized for certificate issuance can also create wildcard certificate for this domain and subdomain.
<strong>{$t("resources.CAA.wild-same-title")}</strong> {$t("resources.CAA.wild-same-body")}
</Alert>
{:else}
<Alert color="warning" fade={false}>
<strong>All issuer authorized.</strong> With those parameters, all issuer can create wildcard certificate for this domain and subdomain.
<strong>{$t("resources.CAA.all-issuers-title")}</strong> {$t("resources.CAA.all-wild-issuers-body")}
</Alert>
{/if}
{#if !readonly}
@ -114,14 +115,14 @@
</ul>
{:else}
<Alert color="danger" fade={false}>
<strong>No wildcard issuer authorized.</strong> With those parameters, no issuer is allowed to create wildcard certificate for this subdomain.
<strong>{$t("resources.CAA.no-wild-title")}</strong> {$t("resources.CAA.no-wild-body")}
</Alert>
{/if}
<h4>Incident Response</h4>
<h4>{$t("resources.CAA.incident-response")}</h4>
<p>
How would you want to be contacted in case of violation of the current security policy?
{$t("resources.CAA.incident-response-text")}
</p>
{#if value.Iodef}

View File

@ -252,6 +252,26 @@
"success": "You can now login with your new password.",
"success-change": "Your account's password has been changed with success."
},
"resources": {
"CAA": {
"all-issuers-title": "All issuers authorized.",
"all-issuers-body": "With those parameters, all issuer can create certificate for this domain and subdomain.",
"all-wild-issuers-body": "With those parameters, all issuer can create wildcard certificate for this domain and subdomain.",
"auth-issuers": "Authorized Issuers",
"incident-response": "Incident Response",
"incident-response-text": "How would you want to be contacted in case of violation of the current security policy?",
"no-issuers-hint": "Disallow any certificate issuance",
"no-issuers-title": "No issuer authorized.",
"no-issuers-body": "With those parameters, no issuer is allowed to create certificate for this subdomain.",
"no-wild-hint": "Disallow wildcard certificate issuance",
"no-wild-title": "No wildcard issuer authorized.",
"no-wild-body": "With those parameters, no issuer is authorized to create wildcard certificate for this domain and subdomain. But this can be override with the following settings:",
"title": "Certificates issuance",
"wild-issuers": "Wildcard certificates issuance",
"wild-same-title": "Same as regular certificate issuance.",
"wild-same-body": "With those parameters, all issuer authorized for certificate issuance can also create wildcard certificate for this domain and subdomain."
}
},
"service": {
"add": "Add service",
"all": "All",

View File

@ -246,6 +246,26 @@
"success": "Vous pouvez maintenant vous connecter avec votre nouveau mot de passe.",
"success-change": "Le mot de passe de votre compte a été modifié avec succès."
},
"resources": {
"CAA": {
"all-issuers-title": "Tous les émetteurs sont autorisés.",
"all-issuers-body": "Avec ces paramètres, tous les émetteurs peuvent créer des certificats pour ce domaine et ce sous-domaine.",
"all-wild-issuers-body": "Avec ces paramètres, tous les émetteurs peuvent créer des certificats de type \"wildcard\" pour ce domaine et ce sous-domaine.",
"auth-issuers": "Émetteurs autorisés",
"incident-response": "Réponse aux incidents",
"incident-response-text": "Comment souhaitez-vous être contacté en cas de violation de la politique de sécurité actuelle ?",
"no-issuers-hint": "Interdire toute délivrance de certificat",
"no-issuers-title": "Aucun émetteur autorisé.",
"no-issuers-body": "Avec ces paramètres, aucun émetteur n'est autorisé à créer un certificat pour ce sous-domaine.",
"no-wild-hint": "Interdire l'émission de certificats \"wildcard\"",
"no-wild-title": "Aucun émetteur de certificats \"wildcard\" n'est autorisé.",
"no-wild-body": "Avec ces paramètres, aucun émetteur n'est autorisé à créer un certificat \"wildcard\" pour ce domaine et ce sous-domaine. Mais cela peut être remplacé par les paramètres suivants :",
"title": "Émission de certificats",
"wild-issuers": "Délivrance de certificats \"wildcard\"",
"wild-same-title": "Identique à la délivrance d'un certificat ordinaire.",
"wild-same-body": "Avec ces paramètres, tous les émetteurs autorisés à délivrer des certificats peuvent également créer des certificats \"wildcard\" pour ce domaine et ce sous-domaine."
}
},
"service": {
"add": "Ajout d'un service",
"already": "Déjà géré",