Revision: 43805 Author: mkroetzsch Date: 2008-11-21 09:22:48 +0000 (Fri, 21 Nov 2008)
Log Message: ----------- beautification, some documentation of open issues for date handling Modified Paths: -------------- trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php =================================================================== --- trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php 2008-11-21 09:01:26 UTC (rev 43804) +++ trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php 2008-11-21 09:22:48 UTC (rev 43805) @@ -52,6 +52,13 @@ * "Feb 28 2004 23:00+2:00" is equivalent to "29 February 2004 01:00:00", while * "Feb 28 1900 23:00+2:00" is equivalent to "1 March 1900 01:00:00". * + * @todo Add support for different calendar models (mainly requires to settle how this + * should be specified in various languages). + * @todo Internationalise the treatment of AD, BC, PM, AM. Add more formats (p.m. or BCE). + * @todo Try to reuse more of MediaWiki's records, e.g. to obtain month names or to + * format dates. The problem is that MW is based on SIO timestamps that don't extend to + * very ancient or future dates, and that MW uses PHP functions that are bound to UNIX time. + * * @author Fabian Howahl * @author Markus Krötzsch * @ingroup SMWDataValues Modified: trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php =================================================================== --- trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php 2008-11-21 09:01:26 UTC (rev 43804) +++ trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php 2008-11-21 09:22:48 UTC (rev 43805) @@ -33,7 +33,7 @@ /// the default is simply empty (no labels in addition to English) protected $m_monthsshort = array(); /// Preferred interpretations for dates with 1, 2, and 3 components. There is an array for - /// each case, and the constants define the obvious order (e.g. SMW_YDM means "first Year, + /// each case, and the constants define the obvious order (e.g. SMW_YDM means "first Year, /// then Day, then Month). Unlisted combinations will not be accepted at all. protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_DMY,SMW_MDY,SMW_YMD,SMW_YDM)); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs