Activity

  • Actually, most of my users are from the US. But it's rather the other way round: the current implementation in Event Calendar is with Sunday as first day of the week. So, I want to add the support for Monday as week starter (for the majority of... view reply
  • I was afraid to get this answer... :-) User setting (or even just a plugin setting) would be one possibility. Though it might result in different calendar configs being used by different plugins (and Elgg core). Though I might have had a wrong... view reply
  • iionly commented on the plugin tidypics plus... more features for tidypics
    Have you tested with the latest version of Tidypics for Elgg 2.3? Even with version 2.3.1 of Tidypics Plus the popup won't open on my test site but I get an error instead ("Ajax view can't called directly" / "Page not...
  • In jquery you can get a user's locale (depending on language set by the user or site) with var locale = $.datepicker.regional[elgg.get_language()]; and then initialize the datepicker accordingly. Depending on the language the calendar...
    • I was afraid to get this answer... :-)

      User setting (or even just a plugin setting) would be one possibility. Though it might result in different calendar configs being used by different plugins (and Elgg core). Though I might have had a wrong memory about datepicker usage in Elgg core as it seems the firstDay parameter isn't set at all to be language depending.

      I guess one other possibility is to just extract the firstDay values for the different languages defined in jquery.ui i18n, put them in an array and check the site/user language shortcut against the array key/values. Maybe not very elegant but it should work.

    • Seriously, is it worth the effort? How many US users do you have and how many of them can't deal with weeks starting on Monday like in the rest of the civilized world? Don't waste your time until there is a financial benefit to do so, then hire me to do it for you ;)

    • Actually, most of my users are from the US. But it's rather the other way round: the current implementation in Event Calendar is with Sunday as first day of the week. So, I want to add the support for Monday as week starter (for the majority of other countries indeed).

      I've extracted the list of language codes with the firstDay values from datepicker i18n files now and added a function that returns the language-specific firstDay value to be used. In theory I would be done but as it happens I've found at least one (new) bug I've most likely added on a code cleanup/rewrite recently. Fix one, get one for free... I guess I know what to do on the weekend. :-(

  • Not directly connected with Elgg at all. I just thought to mention it as it cost me 2 days to figure out why usage of set_time_limit() suddenly results in fatal errors within my test environment (when used within Elgg code but strangely not when...

Send private message

You must be logged in to send a private message.

Group membership