Page 1 of 1

Calendar with week numbers

Posted: Tue Dec 04, 2018 8:12 am
by sprogs
Hi,

It would be nice to have the option to display the numbers of the week, I have a code creating such a calendar, so I can send it as I need.
I did it under my own library but for now I gave up and I want to use Metro 4.

Re: Calendar with week numbers

Posted: Tue Dec 04, 2018 8:33 pm
by olton

Re: Calendar with week numbers

Posted: Tue Dec 04, 2018 10:12 pm
by sprogs
great:)

Re: Calendar with week numbers

Posted: Sat Jan 26, 2019 2:40 pm
by sprogs
Hi,

It works very well but I have a question:
how to force DatePicker to display weeks?

In the case of Calendar it works but as you can see in the second line for DatePicker this option does not work

Code: Select all

    
    <div data-role="calendar" data-show-header="false" data-show-footer="false" data-show-week-number="true" class="compact"></div>
    <input type="text" data-role="calendarpicker"  data-show-header="false" data-show-footer="false" data-show-week-number="true" class="compact">

Re: Calendar with week numbers

Posted: Sat Jan 26, 2019 4:58 pm
by olton
Currently not available for calendarpicker

Re: Calendar with week numbers

Posted: Sun Jan 27, 2019 9:49 pm
by sprogs
No problem, I can deal with it differently.
By the way I am enclosing a Polish translation, it would be good to have them in a project instead of including them separately:

Code: Select all

"pl-PL": {
        "calendar": {
            "months": [
                "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień",
                "Sty", "Lut", "Mar", "Kie", "Maj", "Cze", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"
            ],
            "days": [
                "Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota",
                "N", "Po", "Wt", "Śr", "Cz", "Pt", "S",
                "Nie", "Pon", "Wto", "Śro", "Czw", "Pią", "Sob"
            ],
            "time": {
                "days": "DNI",
                "hours": "GODZINY",
                "minutes": "MINUTY",
                "seconds": "SEKUNDY",
                "month": "MIESIĄC",
                "day": "DZIEŃ",
                "year": "ROK"
            }
        },
        "buttons": {
            "ok": "OK",
            "cancel": "Anuluj",
            "done": "Gotowe",
            "today": "Dziś",
            "now": "Teraz",
            "clear": "Wyczyść",
            "help": "Pomoc",
            "yes": "Tak",
            "no": "Nie",
            "random": "Losowo",
            "save": "Zapisz",
            "reset": "Zeruj"
        }
    }