How to change the "Are you sure you want to close this chat?" popup language in Live Helper Chat 4.65? #2396
Replies: 1 comment
|
The fact that your grep on the HTML didn't find that string is actually a useful clue — it means this popup isn't rendered from a static template. It's most likely generated dynamically via JavaScript, using either the browser's native confirm() dialog or a custom modal built in JS, with the text pulled from a translation/language key at runtime rather than hardcoded in the page source. A few things worth trying:
If you can share which JS file handles the "Close Chat" button click, I can help narrow down exactly where that string lives. |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm currently using Live Helper Chat v4.65 with a multilingual chatbot (English and Malay).
I've successfully translated most of the chatbot interface, but I've encountered an issue with the confirmation popup that appears when the user clicks the Close Chat button.
The popup displays the following message in English:
"Are you sure you want to close this chat?"
I would like this message to be displayed in the user's selected language (for example, Malay) instead of always showing in English.
From inspecting the HTML, I found the following:
Are you sure you want to close this chat?
I searched the source code using:
grep -R "Are you sure you want to close this chat" /var/www/html
but I couldn't find where this text is defined.
Could anyone please advise:
Where is this popup message defined in LHC v4.65?
Is it stored in a translation file, JavaScript file, or template?
What is the recommended way to translate this message based on the user's selected language?
Any guidance would be greatly appreciated.
Thank you!
All reactions