As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #3389832
Incorrect language displayed despite translation
Closed

Comments

  • Jeniffer started the conversation

    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/

  •   Jeniffer replied privately
  •  2,576
    Aleksandar replied

    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.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Jeniffer replied

    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


     

  •   Jeniffer replied privately
  • Jeniffer replied

    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

  •  2,576
    Aleksandar replied

    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 | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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