I am working on an arabic language support project using smartclient 10.0.
It requires an arabic(hijri) calendar support for date picker component.
How can I add arabic(hijri) calendar for date picker component in smartclient?
I suppose you want to define month names in arabic, and maybe the picker grid to be ordered in another way. Then you will need to extend the DateItem for DynamicForm. Check here: http://www.smartclient.com/docs/10.0/a/b/c/go.html#class..Class
http://www.smartclient.com/docs/10.0/a/b/c/go.html#object..ClassFactory
If that is not the case, and you just need to define the order of days, months, years according to arabic specifics, please check here:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#type..DateInputFormat
http://www.smartclient.com/docs/10.0/a/b/c/go.html#type..DateDisplayFormat
Also take a look here:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#group..i18n
Hope this helps.
Related
I want to display the time zone in the calendar edge, it will be like that:
GMT+x, do you have any idea if that's possible?
thank you
First, you would want the latest (0.36.0) version of RBC, which includes timezone support when using the momentLocalizer of the new luxonLocalizer. Second, you cannot currently override the internal TimeGutter component. You would have to replicate all of the views that use TimeGrid and copy over code to write that in yourself.
I am using XPages 8.5.3 without the extension library. I would like to add a calendar view to an XPages. Is there any way of doing this without using the XPages Calendar from OpenNTF?
The short answer is "not easily".
The long answer depends on the layout you want to display (day, week, month, time components etc). Once you have that, you will create a calendar view in Designer, use getAllEntriesByKey() using a date range, and you have your data. Then you need to construct your UI using nested repeat controls to display the "boxes" for each date / time, adding the content to display (ensuring if you have too much it doesn't distort the layout), test it under all circumstances (months have different numbers of days, not forgetting leap years). As the person who wrote that chapter of XPages Extension Library, documenting the components involved covered a number of pages - it's not a simple piece of code!
I've been involved with XPages since 8.5.0, I'm not aware of any blog posts showing how to do it prior to Extension Library.
If this is critical functionality for the application, I would strongly recommend deploying XPages Extension Library or Upgrade Pack 1 (if it's still available). If that's not an option, I would strongly recommend just presenting the content as a list rather than a calendar layout.
Paul is right: not easy.
A second path: pick a pure Javascript client side calendar implementation (like this one) and feed it through a Json stream. Since you are on "vintage Domino", instead of using the Rest control, you need to use an XAgent.
Let us know what worked out for you
I am working on a news blog mobile app using wordpress WP-API, everything else is working ok, but am having problem formatting the wordpress post date
this {{post.date}} gives me something like2016-08-07T15:45:26
How ever I want to format the date to have something like dd-mm-year, then in another one I get the time, instead of 15:45:26, I want to get something like 3:45 pm.
If possible, I will also like a filter that returns the date 2016-08-07T15:45:26 to something like 24 hours ago, 2 days ago, 1 week ago etc
Thanks
Had the same problem too. You may want to check this
:https://weblog.west-wind.com/posts/2014/jan/06/javascript-json-date-parsing-and-real-dates
You could use a date manipulation library to convert the datetime provided by WordPress to the desired format. You may want to check out Moment.js.
I am using Vaadin calendar and want to change month, weeks to my own language (Mongolian). Java doesn't have Mongolian locale so I need to create custom locale.
Any suggestion?
The valid way to create Mongolian Locale is to use its constructor:
new Locale("mon", "MN")
Arguments of the constructor are ISO 639 and ISO 3166 codes of Mongolian language and country.
Note, that it doesn't mean that Vaadin must implement Mongolian version of its Calendar widget. So you still may see English calendar unfortunately.
I currently have a problem with Dojo's calendar. It doesn't seem to be showing the name of the month when the locale is switched to zh-tw.
Instead of getting:
一月
二月
三月
。。。
we get
1
2
3
...
We don't have this problem when Dojo the locale is set to en. This is somewhat related to https://bugs.dojotoolkit.org/ticket/10490.
Anyone have a clue as to how to fix this? :)
Thanks!
That's because they implemented it that way. You can look at the source code and see that the months are numbered. You can even compare it to the English version.
As far as I know there is no way to extend or override this, so you will have to extend the dijit.Calendar._MonthDropDown yourself and hardcode it (not that this is a best practice).