• Resolved norbou

    (@norbou)


    Hi Franky and users,
    my post is more about HTML5 support in browsers.
    I am using EME in Czech language and I am experiencing strange behavior which I cannot attribute to this awesome plugin.
    In the English Brave browser with the Czech language preference set, I see the English data format in the registration form, but the “YES” and “NO” booking options are displayed correctly in Czech (ANO, NE).
    In the Czech Firefox browser I see the opposite, the correct date format is dd. mm. yyyy and what is worse, the “YES” and “NO” options are displayed in English.
    I’m sure it’s survivable for the users, it just surprised me, however, it’s probably not in the power of the website creator to influence this behaviour…
    If anyone has also dealt with this and has a tip, I would be very happy to hear from you. Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Franky

    (@liedekef)

    did you indicate in wordpress that your site language is czech? EME uses the language detected by wordpress, so make sure you indicate the correct frontend language in the wordpress general settings. Also, concerning the html5-date: that also depends on your browser setting the language (EME can’t even do that).

    Plugin Author Franky

    (@liedekef)

    no reaction, marking resolved

    Thread Starter norbou

    (@norbou)

    I can confirm, that in WordPress is set Czech language and in both browsers is Czech as most preferred language. I have tested also browsers with English and Czech UI, but the behaviour is the same.
    Anyway, this strange behaviour of HTML 5 form elements in browsers should be taken into mind for validation and processing.

    PS: All browsers except Brave are displaying Yes/No booking select boxes in English.
    Screenshot: https://ibb.co/Zh8T6Jb

    • This reply was modified 2 years, 5 months ago by norbou.
    • This reply was modified 2 years, 5 months ago by norbou.
    Plugin Author Franky

    (@liedekef)

    EME has no influence on how your browser renders htmlt elements. There are also no attributes to change it (see https://www.w3schools.com/TAGS/att_input_type_date.asp ). More specifically the date/time rendering can be different per browser so if you think there’s a bug, you should check with chrome or Firefox and report the bug there.

    Thread Starter norbou

    (@norbou)

    Solution is to use jQuery for changing select option texts:
    $(‘select option:contains(“Yes”)’).text(‘Ano’);
    $(‘select option:contains(“No”)’).text(‘Ne’);

    For calendar date picker I will use jQuery element by EME instead of HTML5.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML5 form locale’ is closed to new replies.