1

Where can I find the location to know the exact translation string? I need to translate this sentence "We received too many requests for password resets. Please wait and try again later or contact" to Dutch language.

Regards,

0

It seems is a two string sentence that gets built in these files:

vendor/magento/module-security/Model/SecurityChecker/Quantity.php:62:                       
'We received too many requests for password resets. '
vendor/magento/module-security/Model/SecurityChecker/Frequency.php:80:                        
'We received too many requests for password resets. '
vendor/magento/module-security/Model/SecurityChecker/Quantity.php:63:                        
. 'Please wait and try again later or contact %1.',
vendor/magento/module-security/Model/SecurityChecker/Frequency.php:81:                        
. 'Please wait and try again later or contact %1.',

The string is formed like this:

                throw new SecurityViolationException(
                    __(
                        'We received too many requests for password resets. '
                        . 'Please wait and try again later or contact %1.',
                        $this->securityConfig->getCustomerServiceEmail()
                    )
                );

So probably you would have to add it to the translations csv like this: 'We received too many requests for password resets. Please wait and try again later or contact %1.'

Or as two separate strings:
'We received too many requests for password resets. '
'Please wait and try again later or contact %1.'

| improve this answer | |
  • I did find those locations also, but what I the correct way to translate them? – n00bly Jun 5 '19 at 12:51
  • 1
    Check the answer now, just updated it – SantiBM Jun 5 '19 at 12:56
  • Thanks, this is the correct one: "We received too many requests for password resets. Please wait and try again later or contact %1." – n00bly Jun 5 '19 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.