Support for iCalendar (*.ics) files. This allows calendars to be localised.
The format extracts certain properties from VEVENT objects. The properties are limited to textual entries that would need to be localised, it does not include entries such as dates and durations that would indeed change for various locales.
rfc2445 – Internet Calendaring and Scheduling Core Object Specification (iCalendar)
iCal spec in a simple adaptation of the rfc that makes it easy to refer to all sections, items and attributes.
VObject – the python library used to read the iCal file.
We are not creating iCal files, simply extracting localisable information and rebuilding the file. We rely on VObject to ensure correctness.
The following data is extracted:
No other sections are extracted.
It is possible to set the language attribute on an entry e.g.:
SUMMARY:LANGUAGE=af;New Year's Day
However since only one SUMMARY entry is allowed this does not allow you to specify multiple entries which would allow a single multilingual file. With that in mind it is not clear why the LANGUAGE attribute is allowed, the examples they give are for LOCATION entries but that is still not clearly useful.
If we use LANGUAGE at all it will be to ensure that we specify that an entry is in a given language.