I have a slight problem with the languages displayed in the frontend of the plugin. We run a website in German and English and use Weglot to translate the entire website.
I have translated all forms in both German and English using the language picker in the forms section. In the previews, they display correctly (see first screenshot). I have also checked the wpamelia-en_GB.po and wpamelia-en_DE.po files and everything appears to be correct.
However, when viewing the page through a variety of geo checker and VPN tools, on the English website many Amelia fields display in German (see second screenshot). Customers who are based abroad and use a browser with English language settings have also noted this issue.
Could you please help me understand why this languages aren't displaying correctly?
Weglot doesn't appear to be applying the locale to the page (see the attached screenshot).
Even though it's displayed to be in English, it's still under de_DE locale. Please reach out to their support and ask them how this can be fixed.
If they can't help you, please provide me with FTP access credentials in a PRIVATE response. There's an old workaround which hasn't been tested with new versions of Amelia and Weglot, but I can try applying it to see if it helps.
thanks for the reply. I got in contact with Weglot support and their response was to provide the following code snippet which is supposed to be added to the function.php file:
while I have still not worked out the cause of this issue, we decided for other reasons to move from Weglot to TranslatePress. It turns out TranslatePress works out of the box with Amelia (maybe a good note for others).
Please feel free to close the ticket. The FTP Access a the support access have been closed.
Hi Amelia team,
I have a slight problem with the languages displayed in the frontend of the plugin. We run a website in German and English and use Weglot to translate the entire website.
I have translated all forms in both German and English using the language picker in the forms section. In the previews, they display correctly (see first screenshot). I have also checked the wpamelia-en_GB.po and wpamelia-en_DE.po files and everything appears to be correct.
However, when viewing the page through a variety of geo checker and VPN tools, on the English website many Amelia fields display in German (see second screenshot). Customers who are based abroad and use a browser with English language settings have also noted this issue.
Could you please help me understand why this languages aren't displaying correctly?
Thanks in advance,
JP
Affected URLs:
https://moylenutrition.com/en/events/
https://moylenutrition.com/en/termine/
Attached files: Screenshot 2023-06-10 122702.png
Screenshot 2023-06-10 122911.png
Hello Jeniffer.
Weglot doesn't appear to be applying the locale to the page (see the attached screenshot).
Even though it's displayed to be in English, it's still under de_DE locale. Please reach out to their support and ask them how this can be fixed.
If they can't help you, please provide me with FTP access credentials in a PRIVATE response. There's an old workaround which hasn't been tested with new versions of Amelia and Weglot, but I can try applying it to see if it helps.
Attached files: localeLanguage (2).png
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
thanks for the reply. I got in contact with Weglot support and their response was to provide the following code snippet which is supposed to be added to the function.php file:
add_filter( 'locale', 'weglot_set_locale' );
function weglot_set_locale( $lang ) {
if ( function_exists( 'weglot_get_current_language' ) ) {
$current_language = weglot_get_current_language();
switch ( $current_language ) {
case'de':
return 'de_DE';
break;
case'en':
return 'en_GB';
break;
default:
return $lang;
}
}
return $lang;
}
This results in the the html tag reading lang="en" however, the window.localelanguage prompt that you used in the screenshot still shows de_DE.
Any idea, what is going wrong?
Best,
Jeniffer
Hi Aleksandar,
while I have still not worked out the cause of this issue, we decided for other reasons to move from Weglot to TranslatePress. It turns out TranslatePress works out of the box with Amelia (maybe a good note for others).
Please feel free to close the ticket. The FTP Access a the support access have been closed.
Thanks for your help!
Jeniffer
Thank you for letting me know, Jeniffer.
I'll keep this in mind, and I'll ask our developers if they can work with Weglot and see what's going on between the two plugins.
Please feel free to reach out to us if you have any further questions or concerns!
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables