Overview of the Issue
When you set a custom “access denied” message in Advanced Access Manager, visitors see it in the default language on every translated page. The message does not appear in WPMLString Translation, so you cannot translate it.
Workaround
Show a page instead of the message:
- Create a page with your access denied text, and translate it.
- In the AAM settings, open Access Denied Redirect, and for the frontend choose Redirect to a page.
- Select the page. Visitors are sent to the page in their language.