Skip to content

Commit 2aa3d4b

Browse files
committed
fixstrings
1 parent 161b212 commit 2aa3d4b

File tree

3 files changed

+34
-50
lines changed

3 files changed

+34
-50
lines changed

src/components/dialogs/DialogSelectAgreementConsumer/DialogSelectAgreementConsumer.tsx

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -166,26 +166,21 @@ export const DialogSelectAgreementConsumer: React.FC<DialogSelectAgreementConsum
166166
<Dialog aria-labelledby={ariaLabelId} open onClose={closeDialog} maxWidth="md" fullWidth>
167167
<FormProvider {...formMethods}>
168168
<Box component="form" noValidate onSubmit={formMethods.handleSubmit(onSubmit)}>
169-
<DialogTitle id={ariaLabelId}>{`TODO ${action}` /* t(`title.${action}`) */}</DialogTitle>
169+
<DialogTitle id={ariaLabelId}>{t(`title.${action}`)}</DialogTitle>
170170

171171
<DialogContent>
172172
<Stack spacing={2}>
173173
<Typography>
174-
{action === 'create' ? (
175-
<Trans
176-
components={{
177-
strong: <Typography component="span" variant="inherit" fontWeight={600} />,
178-
}}
179-
>
180-
{`TODO ${action}`}
181-
{/* {t(`description.${action}`, {
182-
eserviceName: eservice.name,
183-
eserviceVersion: descriptor.version,
184-
})} */}
185-
</Trans>
186-
) : (
187-
t(`description.${action}`)
188-
)}
174+
<Trans
175+
components={{
176+
strong: <Typography component="span" variant="inherit" fontWeight={600} />,
177+
}}
178+
>
179+
{t(`description.${action}`, {
180+
eserviceName: eservice.name,
181+
eserviceVersion: descriptor.version,
182+
})}
183+
</Trans>
189184
</Typography>
190185
<DialogSelectAgreementConsumerAutocomplete
191186
eserviceId={eservice.id}
@@ -194,11 +189,8 @@ export const DialogSelectAgreementConsumer: React.FC<DialogSelectAgreementConsum
194189
action={action}
195190
/>
196191
{!isLoading && !hasTenantCertifiedAttributes && action === 'create' && (
197-
<Alert
198-
severity="warning"
199-
title={`TODO ${action}` /* t('certifiedAttributesAlert.title') */}
200-
>
201-
{`TODO ${action}` /* t('certifiedAttributesAlert.description') */}
192+
<Alert severity="warning" title={t('certifiedAttributesAlert.title')}>
193+
{t('certifiedAttributesAlert.description')}
202194
</Alert>
203195
)}
204196
</Stack>
@@ -209,7 +201,7 @@ export const DialogSelectAgreementConsumer: React.FC<DialogSelectAgreementConsum
209201
{tCommon('cancel')}
210202
</Button>
211203
<Button variant="contained" type="submit" disabled={isButtonActionDisable}>
212-
{`TODO ${action}` /* t(`actions.${action}`) */}
204+
{t(`actions.${action}`)}
213205
</Button>
214206
</DialogActions>
215207
</Box>

src/static/locales/en/shared-components.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,32 +124,28 @@
124124
"description": "The purpose you are cloning uses a risk analysis model that will no longer be publishable after {{expirationDate}}. Publish the purpose by that date or create a new one at any time. Existing ones remain valid."
125125
}
126126
},
127-
"dialogCreateAgreementDraft": {
128-
"title": "Create Service Request Draft",
129-
"description": "Do you want to create a service request draft for the e-service **{{eserviceName}}**, version **{{eserviceVersion}}**? Select the party for which to submit the request",
130-
"consumerField": {
131-
"label": "Select party"
132-
},
133-
"certifiedAttributesAlert": {
134-
"title": "It is not possible to request the consumption of the e-service",
135-
"description": "The selected party does not have the certified attributes required to request the consumption of the e-service"
136-
}
137-
},
138127
"dialogSelectAgreementConsumer": {
139128
"title": {
140129
"inspect": "Inspect agreement",
141-
"edit": "Complete agreement"
130+
"edit": "Complete agreement",
131+
"create": "Create Service Request Draft"
142132
},
143133
"description": {
144134
"inspect": "Select the tenant for which you want to inspect the agreement.",
145-
"edit": "Select the tenant for which you want to complete the agreement."
135+
"edit": "Select the tenant for which you want to complete the agreement.",
136+
"create": "Do you want to create a service request draft for the e-service <strong>{{eserviceName}}</strong>, version <strong>{{eserviceVersion}}</strong>? Select the party for which to submit the request"
146137
},
147138
"consumerField": {
148139
"label": "Select tenant"
149140
},
141+
"certifiedAttributesAlert": {
142+
"title": "It is not possible to request the consumption of the e-service",
143+
"description": "The selected party does not have the certified attributes required to request the consumption of the e-service"
144+
},
150145
"actions": {
151146
"inspect": "Inspect request",
152-
"edit": "Complete request"
147+
"edit": "Complete request",
148+
"create": "Create draft"
153149
}
154150
},
155151
"dialogDeleteOperator": {

src/static/locales/it/shared-components.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,32 +124,28 @@
124124
"description": "La finalità che stai clonando utilizza un modello di analisi del rischio che non sarà più pubblicabile dopo il {{expirationDate}}. Pubblica la finalità entro quella data oppure creane una nuova in qualsiasi momento. Quelle esistenti restano valide."
125125
}
126126
},
127-
"dialogCreateAgreementDraft": {
128-
"title": "Crea bozza richiesta di fruizione",
129-
"description": "Vuoi creare una bozza di richiesta di fruizione per l'e-service <strong>{{eserviceName}}</strong>, versione <strong>{{eserviceVersion}}</strong>. Seleziona l’ente per il quale effettuare la richiesta",
130-
"consumerField": {
131-
"label": "Seleziona ente"
132-
},
133-
"certifiedAttributesAlert": {
134-
"title": "Non è possibile richiedere la fruizione dell’e-service",
135-
"description": "L'ente selezionato non dispone degli attributi certificati necessari a richiedere la fruizione dell'e-service"
136-
}
137-
},
138127
"dialogSelectAgreementConsumer": {
139128
"title": {
140129
"inspect": "Visualizza richiesta di fruizione",
141-
"edit": "Completa richiesta di fruizione"
130+
"edit": "Completa richiesta di fruizione",
131+
"create": "Crea bozza richiesta di fruizione"
142132
},
143133
"description": {
144134
"inspect": "Seleziona l'ente per il quale vuoi visualizzare la richiesta di fruizione.",
145-
"edit": "Seleziona l'ente per il quale vuoi finalizzare la richiesta di fruizione."
135+
"edit": "Seleziona l'ente per il quale vuoi finalizzare la richiesta di fruizione.",
136+
"create": "Vuoi creare una bozza di richiesta di fruizione per l'e-service <strong>{{eserviceName}}</strong>, versione <strong>{{eserviceVersion}}</strong>. Seleziona l’ente per il quale effettuare la richiesta"
146137
},
147138
"consumerField": {
148139
"label": "Seleziona ente"
149140
},
141+
"certifiedAttributesAlert": {
142+
"title": "Non è possibile richiedere la fruizione dell’e-service",
143+
"description": "L'ente selezionato non dispone degli attributi certificati necessari a richiedere la fruizione dell'e-service"
144+
},
150145
"actions": {
151146
"inspect": "Visualizza richiesta",
152-
"edit": "Completa richiesta"
147+
"edit": "Completa richiesta",
148+
"create": "Crea bozza"
153149
}
154150
},
155151
"dialogDeleteOperator": {

0 commit comments

Comments
 (0)