Skip to content

Commit 65a708f

Browse files
committed
i18n
1 parent e63bf4d commit 65a708f

File tree

3 files changed

+129
-74
lines changed

3 files changed

+129
-74
lines changed

resources/lang/en/cruds.php

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,37 @@
185185
'actions_export' => 'Export action plans',
186186
],
187187
'imports' => [
188-
'index' => 'Import',
188+
'index' => 'Import',
189189
'title' => 'Import security measures',
190-
],
190+
'current' => 'Current security Measures',
191+
'or' => 'or',
192+
'remove_all' => 'Remove all other measures and controls',
193+
'fake' => 'Generate fake measurements',
194+
'format' => 'The import format is an XLSX document with these columns',
195+
'framework' => 'Framework',
196+
'framework_helper' => 'The security framework used',
197+
'domain' => 'Domain name',
198+
'domain_helper' => 'The domain name, it is created if it does not exist',
199+
'domain_description' => 'Domain description',
200+
'domain_description_helper' => 'The description of the domain',
201+
'clause' => 'Clause',
202+
'clause_helper' => 'If the clause exists the security measure is updated,<br>if the clause does not exist, a new security measure is created,<br>if all other fields of the line are empty, the measure, related controls and documents are removed.<br>',
203+
'name' => 'Name',
204+
'name_helper' => 'The name of the security measure',
205+
'description' => 'Description',
206+
'description_helper' => 'The description of the security measure',
207+
'attributes' => 'Attributes',
208+
'attributes_helper' => 'List of tags (#... #... #...)',
209+
'input' => 'Input',
210+
'input_helper' => 'The input elements',
211+
'mode' => 'Model',
212+
'mode_helper' => 'The computation model',
213+
'indicator' => 'Indicator',
214+
'indicator_helper' => 'Green if..., Orange if..., Red if...',
215+
'action' => 'Action plan',
216+
'action_helper' => 'The proposed action plan',
217+
'warning' => 'This action could not be undone, take a backup before!'
218+
],
191219
'log' => [
192220
'index' => 'List of logs',
193221
'title' => 'Log',

resources/lang/fr/cruds.php

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,37 @@
183183
'actions_export' => 'Exporter les plans d\'action',
184184
],
185185
'imports' => [
186-
'index' => 'Importer',
187-
'title' => 'Importer des mesures de sécurité',
188-
],
186+
'index' => 'Importer',
187+
'title' => 'Importer des mesures de sécurité',
188+
'current' => 'Mesures de sécurité actuelles',
189+
'or' => 'ou',
190+
'remove_all' => 'Supprimer toutes les autres mesures et contrôles',
191+
'fake' => 'Générer de faux contrôles',
192+
'format' => 'Le format d\'importation est un document XLSX avec les colonnes',
193+
'framework' => 'Framework',
194+
'framework_helper' => 'Cadre de sécurité utilisé',
195+
'domain' => 'Nom du domaine',
196+
'domain_helper' => 'Le nom de domaine, il est créé s\'il n\'existe pas',
197+
'domain_description' => 'Description',
198+
'domain_description_helper' => 'Description du domaine',
199+
'clause' => 'Clause',
200+
'clause_helper' => 'Si la clause existe, la mesure de sécurité est mise à jour. <br>Si la clause n\'existe pas, une nouvelle mesure de sécurité est créée. <br>Si tous les autres champs de la ligne sont vides, la mesure, les contrôles et les documents associés sont supprimés.',
201+
'name' => 'Nom',
202+
'name_helper' => 'Nom de la mesure de sécurité',
203+
'description' => 'Description',
204+
'description_helper' => 'Description de la mesure de sécurité',
205+
'attributes' => 'Attributs',
206+
'attributes_helper' => 'Liste des attributs (#... #... #...)',
207+
'input' => 'Entrée',
208+
'input_helper' => 'Éléments d\'entrée',
209+
'model' => 'Modèle',
210+
'model_helper' => 'Modèle de calcul',
211+
'indicator' => 'Indicateur',
212+
'indicator_helper' => 'Vert si ..., Orange si ..., Rouge si ...',
213+
'action' => 'Plan d\'action',
214+
'action_helper' => 'Le plan d\'action proposé',
215+
'warning' => 'Cette action est irréversible. Veuillez effectuer une sauvegarde avant !'
216+
],
189217
'log' => [
190218
'index' => 'Liste des logs',
191219
'title' => 'Log',

resources/views/measures/import.blade.php

Lines changed: 68 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="cell-5">
2121
<b>{{ trans('cruds.imports.title') }}</b>
2222
/
23-
<a href="/export/alices" target="_blank">Current security Measures</a>
23+
<a href="/export/alices" target="_blank">{{ trans('cruds.imports.current') }}</a>
2424
</div>
2525
</div>
2626

@@ -43,20 +43,20 @@
4343
</div>
4444
<div class="row">
4545
<div class="cell-5">
46-
or
46+
{{ trans('cruds.imports.or') }}
4747
<input name="file" type="file" id="file" data-role="file" data-prepend="Select import file:">
4848
</div>
4949
</div>
5050
<div class="row">
5151
<div class="cell-4">
5252
<input type="checkbox" name="clean" id="clean">
53-
Remove all other measures and controls
53+
{{ trans('cruds.imports.remove_all') }}
5454
</div>
5555
</div>
5656
<div class="row">
5757
<div class="cell-4">
5858
<input type="checkbox" name="test">
59-
Generate fake measurements
59+
{{ trans('cruds.imports.fake') }}
6060
</div>
6161
<div class="cell-1" align="right">
6262
<button type="submit" class="button success drop-shadow"
@@ -65,81 +65,80 @@
6565
</button>
6666
</div>
6767
</div>
68-
6968
</form>
7069

71-
7270
<div class="row">
7371
<div class="cell-5">
74-
The import format is an XLSX document with these columns :
72+
{{ trans('cruds.imports.format') }}
7573
</div>
7674
</div>
77-
<div class="row">
78-
<div class="cell-6">
79-
80-
<table class="table subcompact">
81-
<thead>
82-
<tr>
83-
<td>Column</td><td>Name</td><td>Type</td><td>Description</td>
84-
</tr>
85-
</thead>
86-
<tbody>
87-
<tr>
88-
<td>A</td><td>Framework</td><td>string(32)</td>
89-
<td>
90-
The security framework used.
91-
</td>
92-
</tr>
93-
<tr>
94-
<td>B</td><td>Domain name</td><td>string(32)</td>
95-
<td>
96-
The domain name, it is created if it does not exist.
97-
</td>
98-
</tr>
99-
<tr>
100-
<td>C</td><td>Domain description</td><td>string(255)</td>
101-
<td>
102-
The description of the domain.
103-
</td>
104-
</tr>
105-
<tr>
106-
<td>D</td><td>Clause</td><td>string(32)</td>
107-
<td>
108-
If the clause exists the security measure is updated,<br>
109-
if the clause does not exist, a new security measure is created,<br>
110-
if all other fields of the line are empty, the measure, related controls and documents are removed.
111-
</td>
112-
</tr>
113-
<tr>
114-
<td>E</td><td>Name</td><td>string(255)</td><td>The name of the security measure</td>
115-
</tr>
116-
<tr>
117-
<td>F</td><td>Description</td><td>text</td><td>The description of the security measure</td>
118-
</tr>
119-
<tr>
120-
<td>G</td><td>Attributes</td><td>text</td><td>List of tags (#... #... #...)</td>
121-
</tr>
122-
<tr>
123-
<td>H</td><td>Input</td><td>text</td><td>The input elements</td>
124-
</tr>
125-
<tr>
126-
<td>I</td><td>Model</td><td>text</td><td>The computation model</td>
127-
</tr>
128-
<tr>
129-
<td>J</td><td>Indicator</td><td>text</td><td>The indicator (Green, Orange, Red)</td>
130-
</tr>
131-
<tr>
132-
<td>K</td><td>Action plan</td><td>text</td><td>The proposed action plan</td>
133-
</tr>
134-
</tbody>
135-
</table>
13675

137-
</div>
138-
</div>
76+
<div class="row">
77+
<div class="cell-md-6">
78+
<table class="table striped border subcompact">
79+
<thead>
80+
<tr>
81+
<th>Column</th>
82+
<th>Name</th>
83+
<th>Type</th>
84+
<th>Description</th>
85+
</tr>
86+
</thead>
87+
<tbody>
88+
<tr>
89+
<td>A</td><td>{{ trans('cruds.imports.framework') }}</td><td>string(32)</td>
90+
<td>{{ trans('cruds.imports.framework_helper') }}</td>
91+
</tr>
92+
<tr>
93+
<td>B</td><td>{{ trans('cruds.imports.domain') }}</td><td>string(32)</td>
94+
<td>{{ trans('cruds.imports.domain_helper') }}</td>
95+
</tr>
96+
<tr>
97+
<td>C</td><td>{{ trans('cruds.imports.domain_description') }}</td><td>string(255)</td>
98+
<td>{{ trans('cruds.imports.domain_description_helper') }}</td>
99+
</tr>
100+
<tr>
101+
<td>D</td><td>{{ trans('cruds.imports.clause') }}</td><td>string(32)</td>
102+
<td>
103+
{!! trans('cruds.imports.clause_helper') !!}
104+
</td>
105+
</tr>
106+
<tr>
107+
<td>E</td><td>{{ trans('cruds.imports.name') }}</td><td>string(255)</td>
108+
<td>{{ trans('cruds.imports.name_helper') }}</td>
109+
</tr>
110+
<tr>
111+
<td>F</td><td>{{ trans('cruds.imports.description') }}</td><td>text</td>
112+
<td>{{ trans('cruds.imports.description_helper') }}</td>
113+
</tr>
114+
<tr>
115+
<td>G</td><td>{{ trans('cruds.imports.attributes') }}</td><td>text</td>
116+
<td>{{ trans('cruds.imports.attributes_helper') }}</td>
117+
</tr>
118+
<tr>
119+
<td>H</td><td>{{ trans('cruds.imports.input') }}</td><td>text</td>
120+
<td>{{ trans('cruds.imports.input_helper') }}</td>
121+
</tr>
122+
<tr>
123+
<td>I</td><td>Model</td><td>text</td>
124+
<td>{{ trans('cruds.imports.model_helper') }}</td>
125+
</tr>
126+
<tr>
127+
<td>J</td><td>{{ trans('cruds.imports.indicator') }}</td><td>text</td>
128+
<td>{{ trans('cruds.imports.indicator_helper') }}</td>
129+
</tr>
130+
<tr>
131+
<td>K</td><td>{{ trans('cruds.imports.action') }}</td><td>text</td>
132+
<td>{{ trans('cruds.imports.action_helper') }}</td>
133+
</tr>
134+
</tbody>
135+
</table>
136+
</div>
137+
</div>
139138

140139
<div class="row">
141140
<div class="cell-6 fg-red">
142-
This action could not be undone, take a backup before !
141+
{{ trans('cruds.imports.warning') }}
143142
</div>
144143
</div>
145144

0 commit comments

Comments
 (0)