SMF Development > Feature Requests
Calendar events linked to default language?
Arantor:
That's a workable solution but not particularly elegant. In any case it would be better solve it once and for all rather than a patchwork solution like that.
Users want it straightforward, and that isn't as straightforward for most users as it is for the likes of you and I.
MrPhil:
The ultimate gold-plated method would be to have the members' data include their country code (or at least, which country's holidays they'd like to see), and the holiday list include selectable (by country) holiday lists to install. Of course this would mean some duplication for anything not world-wide (base install). I wouldn't tie it to a language, as a given language like English covers multiple countries (what, you don't celebrate the Fourth of July in the UK?!). The default installation might even just be an empty holiday list (e.g., a forum based in Pakistan probably doesn't want to list Christmas). It would be up to the forum owner which holidays are "universal" and seen by everyone, so it should be editable in the Admin.
Kindred:
Actually, I think it might be fairly straight forward...
What the mod did was
a) give you the option to export the existing holidays as a text file
b) give you the option to remove all existing Holidays
c) give you the option to import a text file with holidays to be added
So, if you did them in order
export existing - and make changes
delete existing
import new list
then it replaced the holidays with your changes.
skip the first step and make "preset, local holiday" lists (text files) and we have exactly what you are talking about...
(don't we?)
Arantor:
For you and me that might be pretty straightforward. Now explain that to users who don't even know where phpMyAdmin is, and how simple you'd have to keep the instructions for them.
AngelinaBelle:
The import files could even use iCalendar.
It's standard, and decent class files for php are reportedly available.
iCalendar files are not even all that difficult to write by hand, if I understand the specifications correctly.
--- Code: ---BEGIN:VEVENT
SUMMARY:Thanksgiving (US)
DTSTART:20111124
RRULE:FREQ=MONTHLY;INTERVAL=12;BYWEEKNO=3;BYDAY=TH
END:VEVENT
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version