@@ -93,14 +93,14 @@ public function saveAction()
93
93
if ($ this ->configData ->isDemoEnabled ()) {
94
94
return $ this ->returnJsonResponse (
95
95
JsonResponse::JSON_WARNING ,
96
- _t ('authenticator ' , 'Ey, esto es una DEMO!! ' )
96
+ _t ('authenticator ' , 'Ey, this is a DEMO!! ' )
97
97
);
98
98
}
99
99
100
100
if ($ this ->trackService ->checkTracking ($ this ->trackRequest )) {
101
101
$ this ->addTracking ();
102
102
103
- throw new AuthenticatorException (__u ('Intentos excedidos ' ));
103
+ throw new AuthenticatorException (__u ('Attempts exceeded ' ));
104
104
}
105
105
106
106
if ($ this ->checkRecoveryCode ($ pin , $ authenticatorData )
@@ -113,7 +113,7 @@ public function saveAction()
113
113
114
114
return $ this ->returnJsonResponse (
115
115
JsonResponse::JSON_ERROR ,
116
- _t ('authenticator ' , 'Código incorrecto ' )
116
+ _t ('authenticator ' , 'Wrong code ' )
117
117
);
118
118
} catch (AuthenticatorException $ e ) {
119
119
return $ this ->returnJsonResponse (
@@ -127,7 +127,7 @@ public function saveAction()
127
127
128
128
return $ this ->returnJsonResponse (
129
129
JsonResponse::JSON_ERROR ,
130
- __u ('Error interno ' ),
130
+ __u ('Internal error ' ),
131
131
[__u ($ e ->getMessage ())]
132
132
);
133
133
}
@@ -159,7 +159,7 @@ private function checkRecoveryCode($pin, AuthenticatorData $authenticatorData)
159
159
) {
160
160
$ this ->eventDispatcher ->notifyEvent ('authenticator.use.recoverycode ' ,
161
161
new Event ($ this , EventMessage::factory ()
162
- ->addDescription (_t ('authenticator ' , 'Código de recuperación utilizado ' )))
162
+ ->addDescription (_t ('authenticator ' , 'Recovery code used ' )))
163
163
);
164
164
165
165
return true ;
@@ -218,7 +218,7 @@ private function save2FAStatus(AuthenticatorData $authenticatorData)
218
218
219
219
return $ this ->returnJsonResponse (
220
220
JsonResponse::JSON_SUCCESS ,
221
- _t ('authenticator ' , '2FA Habilitado ' )
221
+ _t ('authenticator ' , '2FA Enabled ' )
222
222
);
223
223
}
224
224
@@ -229,13 +229,13 @@ private function save2FAStatus(AuthenticatorData $authenticatorData)
229
229
230
230
return $ this ->returnJsonResponse (
231
231
JsonResponse::JSON_SUCCESS ,
232
- _t ('authenticator ' , '2FA Deshabilitado ' )
232
+ _t ('authenticator ' , '2FA Disabled ' )
233
233
);
234
234
}
235
235
236
236
return $ this ->returnJsonResponse (
237
237
JsonResponse::JSON_SUCCESS ,
238
- __u ('Sin cambios ' )
238
+ __u ('No changes ' )
239
239
);
240
240
}
241
241
@@ -260,7 +260,7 @@ public function checkCodeAction()
260
260
$ this ->pluginContext ->setTwoFApass (false );
261
261
$ this ->session ->setAuthCompleted (false );
262
262
263
- throw new AuthenticatorException (__u ('Usuario no encontrado ' ));
263
+ throw new AuthenticatorException (__u ('User not found ' ));
264
264
}
265
265
266
266
if ($ codeReset
@@ -273,7 +273,7 @@ public function checkCodeAction()
273
273
274
274
return $ this ->returnJsonResponse (
275
275
JsonResponse::JSON_SUCCESS ,
276
- _t ('authenticator ' , 'Email de recuperación enviado ' )
276
+ _t ('authenticator ' , 'Recovery email has been sent ' )
277
277
);
278
278
}
279
279
@@ -289,15 +289,15 @@ public function checkCodeAction()
289
289
return $ this ->returnJsonResponseData (
290
290
['url ' => $ url ],
291
291
JsonResponse::JSON_SUCCESS ,
292
- _t ('authenticator ' , 'Código correcto ' )
292
+ _t ('authenticator ' , 'Correct code ' )
293
293
);
294
294
}
295
295
296
296
$ this ->addTracking ();
297
297
298
298
return $ this ->returnJsonResponse (
299
299
JsonResponse::JSON_ERROR ,
300
- _t ('authenticator ' , 'Código incorrecto ' )
300
+ _t ('authenticator ' , 'Wrong code ' )
301
301
);
302
302
} catch (AuthenticatorException $ e ) {
303
303
return $ this ->returnJsonResponse (
@@ -311,7 +311,7 @@ public function checkCodeAction()
311
311
312
312
return $ this ->returnJsonResponse (
313
313
JsonResponse::JSON_ERROR ,
314
- __u ('Error interno ' )
314
+ __u ('Internal error ' )
315
315
);
316
316
}
317
317
}
@@ -331,13 +331,13 @@ private function sendResetEmail(AuthenticatorData $authenticatorData)
331
331
$ code = $ this ->authenticatorService ->pickRecoveryCode ($ authenticatorData );
332
332
333
333
$ message = new MailMessage ();
334
- $ message ->setTitle (_t ('authenticator ' , 'Recuperación de Código 2FA ' ));
335
- $ message ->addDescription (_t ('authenticator ' , 'Se ha solicitado un código de recuperación para 2FA . ' ));
334
+ $ message ->setTitle (_t ('authenticator ' , '2FA Code Recovery ' ));
335
+ $ message ->addDescription (_t ('authenticator ' , 'A 2FA recovery code has been requested . ' ));
336
336
$ message ->addDescriptionLine ();
337
- $ message ->addDescription (sprintf (_t ('authenticator ' , 'El código de recuperación es : %s ' ), $ code ));
337
+ $ message ->addDescription (sprintf (_t ('authenticator ' , 'The recovery code is : %s ' ), $ code ));
338
338
339
339
$ this ->dic ->get (MailService::class)
340
- ->send (_t ('authenticator ' , 'Recuperación de Código 2FA ' ),
340
+ ->send (_t ('authenticator ' , '2FA Code Recovery ' ),
341
341
$ this ->userData ->getEmail (),
342
342
$ message );
343
343
@@ -350,7 +350,7 @@ private function sendResetEmail(AuthenticatorData $authenticatorData)
350
350
351
351
$ this ->eventDispatcher ->notifyEvent ('exception ' , new Event ($ e ));
352
352
353
- throw new AuthenticatorException (__u ('Error al enviar correo ' ));
353
+ throw new AuthenticatorException (__u ('Error while sending the email ' ));
354
354
}
355
355
}
356
356
@@ -363,22 +363,22 @@ public function showRecoveryCodesAction()
363
363
$ authenticatorData = $ this ->plugin ->getDataForId ($ this ->userData ->getId ());
364
364
365
365
if ($ authenticatorData === null ) {
366
- throw new AuthenticatorException (__u ('Usuario no encontrado ' ));
366
+ throw new AuthenticatorException (__u ('User not found ' ));
367
367
}
368
368
369
369
$ codes = $ authenticatorData ->getRecoveryCodes ();
370
370
371
371
if (count ($ codes ) > 0 ) {
372
372
$ this ->eventDispatcher ->notifyEvent ('authenticator.show.recoverycode ' ,
373
373
new Event ($ this , EventMessage::factory ()
374
- ->addDescription (_t ('authenticator ' , 'Códigos de recuperación visualizados ' )))
374
+ ->addDescription (_t ('authenticator ' , 'Recovery codes displayed ' )))
375
375
);
376
376
377
377
return $ this ->returnJsonResponseData ($ codes );
378
378
} else {
379
379
return $ this ->returnJsonResponse (
380
380
JsonResponse::JSON_ERROR ,
381
- _t ('authenticator ' , 'Códigos de recuperación agotados ' )
381
+ _t ('authenticator ' , 'There aren \' t any recovery codes available ' )
382
382
);
383
383
}
384
384
} catch (\Exception $ e ) {
@@ -388,7 +388,7 @@ public function showRecoveryCodesAction()
388
388
389
389
return $ this ->returnJsonResponse (
390
390
JsonResponse::JSON_ERROR ,
391
- __u ('Error interno ' )
391
+ __u ('Internal error ' )
392
392
);
393
393
}
394
394
}
0 commit comments