• Resolved marinbajic

    (@marinbajic)


    Hi there! I have a multilingual website and I want to make months and dates on my contact form to change with my language.

    Is there any possibility to do that?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi!
    Currently the plugin doesn’t support that out of the box. It could be a feature for a future version, seems it could be useful.

    Currently the only way to do it would be to trigger javascript code depending on the language. This line needs to run with the current language code:

    jQuery.datetimepicker.setLocale('de');

    If you have a developer working with you, it shouldn’t be hard to implement this. Hope it helps and I’m sorry for the current limitations.

    Cheers, Carlos

    Thread Starter marinbajic

    (@marinbajic)

    Hi!

    I checked the original datetime picker jquery script…Script you gave me doesn’t work on that website either.

    Plugin language is taken from the dtpicker MYSQL file. So I think the only way to solve this is to make a new selector and locale for other language site.

    Correct me if I’m wrong, please.

    The best might be to wait for this feature to be implemented in the plugin directly. In the option to select the language, I’ll add an option to ‘detect current language’ which would solve the problem. I’m planning a small update for next week where I can include this.

    Hi @marinbajic the latest update includes an option in the language selector to auto detect the current language. Check if it works well.
    Greetings, Carlos

    Thread Starter marinbajic

    (@marinbajic)

    It is not working with polylang translation. I made a suffix on languages (domain.com/hr/page or domain.com/en/page) and still nothing. It’s not even loading default wordpress language.

    Hi @marinbajic I would need to see the page where this is happening to take a look. Can you share the real link? Greetings, Carlos

    Thread Starter marinbajic

    (@marinbajic)

    I’ll make it ready for you at Tuesday.It is currently in development mode

    Thread Starter marinbajic

    (@marinbajic)

    Hi!

    Sorry for not responding. Just came here to say that this thing with langauages works with the new update and thank you soo much for doing it!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Language change’ is closed to new replies.