Skip to content

Commit e185774

Browse files
committed
Merge pull request #74 from SURFnet/maintenance/form-error-translations
Move form errors from 'validators' domain to 'messages' and translate other missing translation keys
2 parents 694d48c + b1504e0 commit e185774

File tree

5 files changed

+152
-136
lines changed

5 files changed

+152
-136
lines changed

app/Resources/translations/messages.en_GB.xliff

+51-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,46 @@
149149
<source>ss.form.ss_verify_sms_challenge.text.challenge</source>
150150
<target>Code</target>
151151
</trans-unit>
152+
<trans-unit id="e3554b07567999b6bd90ee405bf4e60db4d5d727" resname="ss.prove_phone_possession.challenge_expired">
153+
<jms:reference-file line="23">Resources/views/translations.twig</jms:reference-file>
154+
<source>ss.prove_phone_possession.challenge_expired</source>
155+
<target>Your code has expired. Please request a new code.</target>
156+
</trans-unit>
157+
<trans-unit id="ebe4091038cf74f7ebcfd0a3256985fdcf21e7dd" resname="ss.prove_phone_possession.challenge_request_limit_reached">
158+
<jms:reference-file line="22">Resources/views/translations.twig</jms:reference-file>
159+
<source>ss.prove_phone_possession.challenge_request_limit_reached</source>
160+
<target>You have exceeded the limit of three codes; you can no longer request any more codes. Contact your helpdesk or try again later.</target>
161+
</trans-unit>
162+
<trans-unit id="90d186f8499585cb62a368341bc3d5569f63a013" resname="ss.prove_phone_possession.challenge_response_incorrect">
163+
<jms:reference-file line="31">Resources/views/translations.twig</jms:reference-file>
164+
<source>ss.prove_phone_possession.challenge_response_incorrect</source>
165+
<target>The code you entered does not match the code you received.</target>
166+
</trans-unit>
167+
<trans-unit id="e50a93e13b47c2995aefee1dd550f3dedfdf0080" resname="ss.prove_phone_possession.incorrect_challenge_response">
168+
<jms:reference-file line="21">Resources/views/translations.twig</jms:reference-file>
169+
<source>ss.prove_phone_possession.incorrect_challenge_response</source>
170+
<target>The code you entered does not match. Please try again or request a new code.</target>
171+
</trans-unit>
172+
<trans-unit id="e5bb393004217418ac3b2d08716c203b86ad8d1d" resname="ss.prove_phone_possession.proof_of_possession_failed">
173+
<jms:reference-file line="20">Resources/views/translations.twig</jms:reference-file>
174+
<source>ss.prove_phone_possession.proof_of_possession_failed</source>
175+
<target>The token could not be created due to unknown reasons.</target>
176+
</trans-unit>
177+
<trans-unit id="9360cda7585c4052d19755cff12aa9b76a69abcc" resname="ss.prove_phone_possession.send_sms_challenge_failed">
178+
<jms:reference-file line="19">Resources/views/translations.twig</jms:reference-file>
179+
<source>ss.prove_phone_possession.send_sms_challenge_failed</source>
180+
<target>Sending the code by text message failed.</target>
181+
</trans-unit>
182+
<trans-unit id="f355c0b1302e6ed1a9301637306cb312b6feb4eb" resname="ss.prove_phone_possession.too_many_attempts">
183+
<jms:reference-file line="24">Resources/views/translations.twig</jms:reference-file>
184+
<source>ss.prove_phone_possession.too_many_attempts</source>
185+
<target>You have exceeded the limit of ten attempts; you can no longer attempt verification of any more codes. Contact your helpdesk or try again later.</target>
186+
</trans-unit>
187+
<trans-unit id="6d67afd47dd9bd70f19efaf10e19900bd5361386" resname="ss.prove_yubikey_possession.proof_of_possession_failed">
188+
<jms:reference-file line="32">Resources/views/translations.twig</jms:reference-file>
189+
<source>ss.prove_yubikey_possession.proof_of_possession_failed</source>
190+
<target>The token could not be created due to unknown reasons.</target>
191+
</trans-unit>
152192
<trans-unit id="1fd92b34e65dcbb10330e06d6079564e19252093" resname="ss.registration.email_verification_email_sent.text.email_verification_has_been_sent">
153193
<jms:reference-file line="14">views/Registration/emailVerificationEmailSent.html.twig</jms:reference-file>
154194
<source>ss.registration.email_verification_email_sent.text.email_verification_has_been_sent</source>
@@ -403,7 +443,7 @@
403443
<trans-unit id="a1a1aa0e1c0a720bc6144c5a5a03d89ad6fdcc87" resname="ss.second_factor.list.text.unverified">
404444
<jms:reference-file line="36">Resources/views/translations.twig</jms:reference-file>
405445
<source>ss.second_factor.list.text.unverified</source>
406-
<target>ss.second_factor.list.text.unverified</target>
446+
<target>You are still to prove your possession of the following token.</target>
407447
</trans-unit>
408448
<trans-unit id="da0c3086f8d5dc181e074f24d12e8ccc27429dcf" resname="ss.second_factor.list.text.verified">
409449
<jms:reference-file line="35">Resources/views/translations.twig</jms:reference-file>
@@ -497,6 +537,16 @@ An e-mail with your activation code has been sent to the e-mail address %email%.
497537
<source>ss.second_factor_list.header.type</source>
498538
<target>Token</target>
499539
</trans-unit>
540+
<trans-unit id="dc4478bd45a81c1a45020aac9d22d73abc5f1455" resname="ss.verify_yubikey_command.otp.otp_invalid">
541+
<jms:reference-file line="29">Resources/views/translations.twig</jms:reference-file>
542+
<source>ss.verify_yubikey_command.otp.otp_invalid</source>
543+
<target>This Yubikey code was invalid. Please try again.</target>
544+
</trans-unit>
545+
<trans-unit id="222ba32640d7ba4a87f2070d67125ccabf100de8" resname="ss.verify_yubikey_command.otp.verification_error">
546+
<jms:reference-file line="30">Resources/views/translations.twig</jms:reference-file>
547+
<source>ss.verify_yubikey_command.otp.verification_error</source>
548+
<target>The verification of the Yubikey code failed due to unknown reasons. Try again.</target>
549+
</trans-unit>
500550
<trans-unit id="fcbfd9e643bb8d8f3fcf3ca0380a73bb9dffee2b" resname="stepup_middleware_client.form.switch_locale.switch">
501551
<jms:reference-file line="58">Form/Type/SwitchLocaleType.php</jms:reference-file>
502552
<source>stepup_middleware_client.form.switch_locale.switch</source>

app/Resources/translations/messages.nl_NL.xliff

+51-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,46 @@
149149
<source>ss.form.ss_verify_sms_challenge.text.challenge</source>
150150
<target>Code</target>
151151
</trans-unit>
152+
<trans-unit id="e3554b07567999b6bd90ee405bf4e60db4d5d727" resname="ss.prove_phone_possession.challenge_expired">
153+
<jms:reference-file line="23">Resources/views/translations.twig</jms:reference-file>
154+
<source>ss.prove_phone_possession.challenge_expired</source>
155+
<target>Uw code is verlopen. Vraag een nieuwe code aan.</target>
156+
</trans-unit>
157+
<trans-unit id="ebe4091038cf74f7ebcfd0a3256985fdcf21e7dd" resname="ss.prove_phone_possession.challenge_request_limit_reached">
158+
<jms:reference-file line="22">Resources/views/translations.twig</jms:reference-file>
159+
<source>ss.prove_phone_possession.challenge_request_limit_reached</source>
160+
<target>U heeft de limiet van drie codes bereikt; u kunt geen codes meer aanvragen. Neem contact op met uw helpdesk of probeer het later nog eens.</target>
161+
</trans-unit>
162+
<trans-unit id="90d186f8499585cb62a368341bc3d5569f63a013" resname="ss.prove_phone_possession.challenge_response_incorrect">
163+
<jms:reference-file line="31">Resources/views/translations.twig</jms:reference-file>
164+
<source>ss.prove_phone_possession.challenge_response_incorrect</source>
165+
<target>De code die je ingevoerd hebt komt niet overeen met de code die je hebt ontvangen.</target>
166+
</trans-unit>
167+
<trans-unit id="e50a93e13b47c2995aefee1dd550f3dedfdf0080" resname="ss.prove_phone_possession.incorrect_challenge_response">
168+
<jms:reference-file line="21">Resources/views/translations.twig</jms:reference-file>
169+
<source>ss.prove_phone_possession.incorrect_challenge_response</source>
170+
<target>De ingevoerde code is onjuist. Probeer het nog eens, of vraag een nieuwe code op.</target>
171+
</trans-unit>
172+
<trans-unit id="e5bb393004217418ac3b2d08716c203b86ad8d1d" resname="ss.prove_phone_possession.proof_of_possession_failed">
173+
<jms:reference-file line="20">Resources/views/translations.twig</jms:reference-file>
174+
<source>ss.prove_phone_possession.proof_of_possession_failed</source>
175+
<target>Het token kon wegens een onbekende reden niet aangemaakt worden.</target>
176+
</trans-unit>
177+
<trans-unit id="9360cda7585c4052d19755cff12aa9b76a69abcc" resname="ss.prove_phone_possession.send_sms_challenge_failed">
178+
<jms:reference-file line="19">Resources/views/translations.twig</jms:reference-file>
179+
<source>ss.prove_phone_possession.send_sms_challenge_failed</source>
180+
<target>Het versturen van de code per SMS is mislukt.</target>
181+
</trans-unit>
182+
<trans-unit id="f355c0b1302e6ed1a9301637306cb312b6feb4eb" resname="ss.prove_phone_possession.too_many_attempts">
183+
<jms:reference-file line="24">Resources/views/translations.twig</jms:reference-file>
184+
<source>ss.prove_phone_possession.too_many_attempts</source>
185+
<target>U heeft de limiet van tien pogingen bereikt; u kunt geen codes meer verifiëren. Neem contact op met uw helpdesk of probeer het later nog eens.</target>
186+
</trans-unit>
187+
<trans-unit id="6d67afd47dd9bd70f19efaf10e19900bd5361386" resname="ss.prove_yubikey_possession.proof_of_possession_failed">
188+
<jms:reference-file line="32">Resources/views/translations.twig</jms:reference-file>
189+
<source>ss.prove_yubikey_possession.proof_of_possession_failed</source>
190+
<target>Het token kon wegens een onbekende reden niet aangemaakt worden.</target>
191+
</trans-unit>
152192
<trans-unit id="1fd92b34e65dcbb10330e06d6079564e19252093" resname="ss.registration.email_verification_email_sent.text.email_verification_has_been_sent">
153193
<jms:reference-file line="14">views/Registration/emailVerificationEmailSent.html.twig</jms:reference-file>
154194
<source>ss.registration.email_verification_email_sent.text.email_verification_has_been_sent</source>
@@ -402,7 +442,7 @@
402442
<trans-unit id="a1a1aa0e1c0a720bc6144c5a5a03d89ad6fdcc87" resname="ss.second_factor.list.text.unverified">
403443
<jms:reference-file line="36">Resources/views/translations.twig</jms:reference-file>
404444
<source>ss.second_factor.list.text.unverified</source>
405-
<target>ss.second_factor.list.text.unverified</target>
445+
<target>Van het volgende token moet het bezit nog bewezen worden.</target>
406446
</trans-unit>
407447
<trans-unit id="da0c3086f8d5dc181e074f24d12e8ccc27429dcf" resname="ss.second_factor.list.text.verified">
408448
<jms:reference-file line="35">Resources/views/translations.twig</jms:reference-file>
@@ -496,6 +536,16 @@ Er is een e-mail met activatiecode gestuurd naar het e-mailadres %email%. Volg d
496536
<source>ss.second_factor_list.header.type</source>
497537
<target>Token</target>
498538
</trans-unit>
539+
<trans-unit id="dc4478bd45a81c1a45020aac9d22d73abc5f1455" resname="ss.verify_yubikey_command.otp.otp_invalid">
540+
<jms:reference-file line="29">Resources/views/translations.twig</jms:reference-file>
541+
<source>ss.verify_yubikey_command.otp.otp_invalid</source>
542+
<target>Deze Yubikey code was ongeldig. Probeer het nog eens.</target>
543+
</trans-unit>
544+
<trans-unit id="222ba32640d7ba4a87f2070d67125ccabf100de8" resname="ss.verify_yubikey_command.otp.verification_error">
545+
<jms:reference-file line="30">Resources/views/translations.twig</jms:reference-file>
546+
<source>ss.verify_yubikey_command.otp.verification_error</source>
547+
<target>Het verifiëren van de Yubikey-code is wegens een onbekende reden niet gelukt. Probeer het opnieuw.</target>
548+
</trans-unit>
499549
<trans-unit id="fcbfd9e643bb8d8f3fcf3ca0380a73bb9dffee2b" resname="stepup_middleware_client.form.switch_locale.switch">
500550
<jms:reference-file line="58">Form/Type/SwitchLocaleType.php</jms:reference-file>
501551
<source>stepup_middleware_client.form.switch_locale.switch</source>

app/Resources/translations/validators.en_GB.xliff

+20-62
Original file line numberDiff line numberDiff line change
@@ -182,53 +182,13 @@
182182
<source>middleware_client.dto.vetted_second_factor.type.must_not_be_blank</source>
183183
<target state="new">middleware_client.dto.vetted_second_factor.type.must_not_be_blank</target>
184184
</trans-unit>
185-
<trans-unit id="e3554b07567999b6bd90ee405bf4e60db4d5d727" resname="ss.prove_phone_possession.challenge_expired">
186-
<jms:reference-file line="23">Resources/views/translations.twig</jms:reference-file>
187-
<source>ss.prove_phone_possession.challenge_expired</source>
188-
<target>Your code has expired. Please request a new code.</target>
189-
</trans-unit>
190-
<trans-unit id="ebe4091038cf74f7ebcfd0a3256985fdcf21e7dd" resname="ss.prove_phone_possession.challenge_request_limit_reached">
191-
<jms:reference-file line="22">Resources/views/translations.twig</jms:reference-file>
192-
<source>ss.prove_phone_possession.challenge_request_limit_reached</source>
193-
<target>You have exceeded the limit of three codes; you can no longer request any more codes. Contact your helpdesk or try again later.</target>
194-
</trans-unit>
195-
<trans-unit id="90d186f8499585cb62a368341bc3d5569f63a013" resname="ss.prove_phone_possession.challenge_response_incorrect">
196-
<jms:reference-file line="30">Resources/views/translations.twig</jms:reference-file>
197-
<source>ss.prove_phone_possession.challenge_response_incorrect</source>
198-
<target state="new">ss.prove_phone_possession.challenge_response_incorrect</target>
199-
</trans-unit>
200-
<trans-unit id="e50a93e13b47c2995aefee1dd550f3dedfdf0080" resname="ss.prove_phone_possession.incorrect_challenge_response">
201-
<jms:reference-file line="21">Resources/views/translations.twig</jms:reference-file>
202-
<source>ss.prove_phone_possession.incorrect_challenge_response</source>
203-
<target>The code you entered does not match. Please try again or request a new code.</target>
204-
</trans-unit>
205-
<trans-unit id="e5bb393004217418ac3b2d08716c203b86ad8d1d" resname="ss.prove_phone_possession.proof_of_possession_failed">
206-
<jms:reference-file line="20">Resources/views/translations.twig</jms:reference-file>
207-
<source>ss.prove_phone_possession.proof_of_possession_failed</source>
208-
<target>The token could not be created due to unknown reasons.</target>
209-
</trans-unit>
210-
<trans-unit id="9360cda7585c4052d19755cff12aa9b76a69abcc" resname="ss.prove_phone_possession.send_sms_challenge_failed">
211-
<jms:reference-file line="19">Resources/views/translations.twig</jms:reference-file>
212-
<source>ss.prove_phone_possession.send_sms_challenge_failed</source>
213-
<target>Sending the code by text message failed.</target>
214-
</trans-unit>
215-
<trans-unit id="f355c0b1302e6ed1a9301637306cb312b6feb4eb" resname="ss.prove_phone_possession.too_many_attempts">
216-
<jms:reference-file line="24">Resources/views/translations.twig</jms:reference-file>
217-
<source>ss.prove_phone_possession.too_many_attempts</source>
218-
<target>You have exceeded the limit of ten attempts; you can no longer attempt verification of any more codes. Contact your helpdesk or try again later.</target>
219-
</trans-unit>
220-
<trans-unit id="6d67afd47dd9bd70f19efaf10e19900bd5361386" resname="ss.prove_yubikey_possession.proof_of_possession_failed">
221-
<jms:reference-file line="31">Resources/views/translations.twig</jms:reference-file>
222-
<source>ss.prove_yubikey_possession.proof_of_possession_failed</source>
223-
<target>The token could not be created due to unknown reasons.</target>
224-
</trans-unit>
225185
<trans-unit id="64327d0cfa154721029978c67ef52df2fd18cacb" resname="ss.revoke_own_second_factor_command.identity_id.must_be_string">
226186
<source>ss.revoke_own_second_factor_command.identity_id.must_be_string</source>
227-
<target state="new">ss.revoke_own_second_factor_command.identity_id.must_be_string</target>
187+
<target>Identity ID must be a string</target>
228188
</trans-unit>
229189
<trans-unit id="590d26b3eb954c44862a6cf2bf4cf7a382b7119c" resname="ss.revoke_own_second_factor_command.second_factor_id.must_be_string">
230190
<source>ss.revoke_own_second_factor_command.second_factor_id.must_be_string</source>
231-
<target state="new">ss.revoke_own_second_factor_command.second_factor_id.must_be_string</target>
191+
<target>Second factor ID must be a string</target>
232192
</trans-unit>
233193
<trans-unit id="d23ad73b357db56cd8de5ead80613a379e7fb7f9" resname="ss.send_sms_challenge_command.recipient.may_not_be_empty">
234194
<source>ss.send_sms_challenge_command.recipient.may_not_be_empty</source>
@@ -242,18 +202,6 @@
242202
<source>ss.send_sms_challenge_command.recipient.must_be_string</source>
243203
<target>SMS challenge recipient must be string.</target>
244204
</trans-unit>
245-
<trans-unit id="5445b7554bf403272afdbd8df0235e7b271bcd7f" resname="ss.send_sms_command.recipient.may_not_be_empty">
246-
<source>ss.send_sms_command.recipient.may_not_be_empty</source>
247-
<target>SMS recipient may not be empty.</target>
248-
</trans-unit>
249-
<trans-unit id="a0c7b3a25ab6f042b6cd6c6b628a025179d496f4" resname="ss.send_sms_command.recipient.must_be_string">
250-
<source>ss.send_sms_command.recipient.must_be_string</source>
251-
<target>SMS recipient must be string.</target>
252-
</trans-unit>
253-
<trans-unit id="38db36f5d3beb6d0138a9cf91486e5f6c029506c" resname="ss.send_sms_command.recipient.must_consist_of_digits">
254-
<source>ss.send_sms_command.recipient.must_consist_of_digits</source>
255-
<target>SMS recipient may consist of digits only.</target>
256-
</trans-unit>
257205
<trans-unit id="67ba1e3d487524fe3b3d1d3658569992ff551798" resname="ss.verify_sms_challenge_command.challenge.may_not_be_empty">
258206
<source>ss.verify_sms_challenge_command.challenge.may_not_be_empty</source>
259207
<target>SMS challenge may not be empty.</target>
@@ -270,15 +218,25 @@
270218
<source>ss.verify_yubikey_command.otp.must_be_string</source>
271219
<target>Yubikey OTP must be string.</target>
272220
</trans-unit>
273-
<trans-unit id="dc4478bd45a81c1a45020aac9d22d73abc5f1455" resname="ss.verify_yubikey_command.otp.otp_invalid">
274-
<jms:reference-file line="28">Resources/views/translations.twig</jms:reference-file>
275-
<source>ss.verify_yubikey_command.otp.otp_invalid</source>
276-
<target>This Yubikey code was invalid. Please try again.</target>
221+
<trans-unit id="049f2b52bc9cf777280bbfc8b787f6e69a701beb" resname="stepup.send_sms_command.recipient.may_not_be_empty">
222+
<source>stepup.send_sms_command.recipient.may_not_be_empty</source>
223+
<target>Please enter your phone number</target>
224+
</trans-unit>
225+
<trans-unit id="9e988968acb8506939fa9b6c5d15b6e65cdcdb9f" resname="stepup.send_sms_command.recipient.must_be_string">
226+
<source>stepup.send_sms_command.recipient.must_be_string</source>
227+
<target>SMS recipient must be a string</target>
228+
</trans-unit>
229+
<trans-unit id="f40a78148c674a1d7961ef7ca5d048664caf70b7" resname="stepup.send_sms_command.recipient.must_consist_of_digits">
230+
<source>stepup.send_sms_command.recipient.must_consist_of_digits</source>
231+
<target>Your phone number may only consist of digits</target>
232+
</trans-unit>
233+
<trans-unit id="b7bcb89ad4b6ed61daa138541702c67ce7dd63c9" resname="stepup.verify_possession_of_phone_command.challenge.may_not_be_empty">
234+
<source>stepup.verify_possession_of_phone_command.challenge.may_not_be_empty</source>
235+
<target>Please enter the code you received</target>
277236
</trans-unit>
278-
<trans-unit id="222ba32640d7ba4a87f2070d67125ccabf100de8" resname="ss.verify_yubikey_command.otp.verification_error">
279-
<jms:reference-file line="29">Resources/views/translations.twig</jms:reference-file>
280-
<source>ss.verify_yubikey_command.otp.verification_error</source>
281-
<target>The verification of the Yubikey code failed due to unknown reasons. Try again.</target>
237+
<trans-unit id="8b87f20ba80c487ed07070e32d031343571d34b9" resname="stepup.verify_possession_of_phone_command.challenge.must_be_string">
238+
<source>stepup.verify_possession_of_phone_command.challenge.must_be_string</source>
239+
<target>SMS challenge must be a string</target>
282240
</trans-unit>
283241
</body>
284242
</file>

0 commit comments

Comments
 (0)