Twipped / Kalendae

A javascript date picker that just works.
MIT License
1.99k stars 285 forks source link

Language conversion of calander #179

Closed bcsbcs109 closed 8 years ago

bcsbcs109 commented 8 years ago

Is it possible to convert the calander in french and german language as per the requirement

Twipped commented 8 years ago

All strings in Kalendae come from Moment.js, so you can setup Moment's localization with the language you want.

bcsbcs109 commented 8 years ago

hello Jarvis,

Thats really very cool but it would be helpful if you give me small Example for the implementation.

On Thu, Mar 31, 2016 at 1:10 AM, Jarvis Badgley notifications@github.com wrote:

All strings in Kalendae come from Moment.js, so you can setup Moment's localization with the language you want.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ChiperSoft/Kalendae/issues/179#issuecomment-203601791

Twipped commented 8 years ago
<script src="moment.js"></script>
<script src="locale/fr.js"></script>
<script>
  moment.locale('fr');  // Set the default/global locale
  // ...
</script>
<script src="kalendae.js"></script>

Note that you would use kalendae.js, not kalendae.standalone.js.

You can find more info in Moment's docs. http://momentjs.com/docs/#/i18n/loading-into-browser/

bcsbcs109 commented 8 years ago

hello Jarvis,

Thank you very much it is working perfectly right that's really nice of you

On Thu, Mar 31, 2016 at 9:34 PM, Jarvis Badgley notifications@github.com wrote:

Note that you would use kalendae.js, not kalendae.standalone.js.

You can find more info in Moment's docs. http://momentjs.com/docs/#/i18n/loading-into-browser/

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ChiperSoft/Kalendae/issues/179#issuecomment-204001148

bcsbcs109 commented 8 years ago

hey Jarvis,

i just write a code in mvc i put try catch block in the controller but i am not able to put that in scriptt->common.js will please tell how i put try catch in java Script

On Fri, Apr 1, 2016 at 1:50 PM, Akash Patel bcsbcs109@gmail.com wrote:

hello Jarvis,

Thank you very much it is working perfectly right that's really nice of you

On Thu, Mar 31, 2016 at 9:34 PM, Jarvis Badgley notifications@github.com wrote:

Note that you would use kalendae.js, not kalendae.standalone.js.

You can find more info in Moment's docs. http://momentjs.com/docs/#/i18n/loading-into-browser/

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ChiperSoft/Kalendae/issues/179#issuecomment-204001148

bcsbcs109 commented 8 years ago

hello jarvis,

Can you please tell that how to use blackout function in kalendae if i am using it in this form.

$("#CalanderKalande1").kalendae();

please let me know the contex.

Regards,

Dhruv Jaiswal

On Thu, Apr 7, 2016 at 11:50 AM, Akash Patel bcsbcs109@gmail.com wrote:

hey Jarvis,

i just write a code in mvc i put try catch block in the controller but i am not able to put that in scriptt->common.js will please tell how i put try catch in java Script

On Fri, Apr 1, 2016 at 1:50 PM, Akash Patel bcsbcs109@gmail.com wrote:

hello Jarvis,

Thank you very much it is working perfectly right that's really nice of you

On Thu, Mar 31, 2016 at 9:34 PM, Jarvis Badgley <notifications@github.com

wrote:

Note that you would use kalendae.js, not kalendae.standalone.js.

You can find more info in Moment's docs. http://momentjs.com/docs/#/i18n/loading-into-browser/

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ChiperSoft/Kalendae/issues/179#issuecomment-204001148

Twipped commented 8 years ago

The blackout function works like array.filter(). You define a function which receives a date and returns a boolean. If the return is truthy then the date will be allowed, if the return is falsey then the date will be blocked.

There's a couple examples in the index.html file that comes with Kalendae.

On Jun 6, 2016, at 10:39 PM, bcsbcs109 notifications@github.com wrote:

hello jarvis,

Can you please tell that how to use blackout function in kalendae if i am using it in this form.

$("#CalanderKalande1").kalendae();

please let me know the contex.