Giter Site home page Giter Site logo

Comments (11)

luigi37 avatar luigi37 commented on June 24, 2024

In effect with this code it seems to work:

    $("#calendar").data("jqm-calendar").settings.months=["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"];
$("#calendar").data("jqm-calendar").settings.days=["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"];    
$("#calendar").trigger('refresh', new Date());

Except that the days do not get updated...

from jqm-calendar.

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024

I never thought of the use of refreshing the calendar for different translations. Both the start day of the week (eg. on sunday or monday) and the labels for the days are rendered in the init() function and not in the update function.

See: https://github.com/JWGmeligMeyling/jqm-calendar/blob/master/jw-jqm-cal.js#L80

I think it's quite easy to fix, but unfortunately I wont have the time for this now..

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Thanks, I will give it a try and if succesfull I'll commit the changes...
Do you mean I should move
the start day of the week (eg. on sunday or monday) and the labels for the days
to refresh() ?

from jqm-calendar.

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024

Yes I meant that, but I believe you already found out 😉

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

I did not find an easy way to do that... thanks for any code change from your side :-)

from jqm-calendar.

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024

Then i'll reopen. Unfortunately I don't have the time to get involved on this issue now 😢

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Thanks a lot :-)

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Hi Jan, any update here? Got the first user noticing it :-) ...

from jqm-calendar.

jwgmeligmeyling avatar jwgmeligmeyling commented on June 24, 2024

I would suggest just destroying the calendar and creating another one with the new settings object. I have no time to investigate this issue in the next few weeks.

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Hi Jan,
that would have created the need to reassociate the events and stuff I added....
I created a pull request which add an id to each day label and through that change it on the fly...
Let me know it ok and if you can merge
Thanks

from jqm-calendar.

luigi37 avatar luigi37 commented on June 24, 2024

Change implemented

from jqm-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.