[OpenAjaxIDE] Agenda for tomorrow: Review Widget Metadata chapter

Bertrand Le Roy Bertrand.Le.Roy at microsoft.com
Mon Aug 3 12:18:42 PDT 2009


FWIW, here’s what we do:
http://msdn.microsoft.com/en-us/library/bb384009.aspx

We also do parsing:
http://msdn.microsoft.com/en-us/library/bb397493.aspx

Of course, globalization is the hard part:
http://msdn.microsoft.com/en-us/library/bb383816.aspx
http://msdn.microsoft.com/en-us/library/bb397521.aspx

This is fairly close to what PHP is doing:
http://us.php.net/manual/en/datetime.format.php
http://us.php.net/manual/en/function.date.php

About globalization, we have a bunch of script files (one per culture) that define local date and currency formats and names (days, months, etc.) that are under an open-source license and that may be useful to other libraries. Files look like this:

var __cultureInfo = {"name":"fr-FR","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":",","IsReadOnly":false,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":" ","CurrencySymbol":"€","NaNSymbol":"Non Numérique","CurrencyNegativePattern":8,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infini","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":",","NumberGroupSeparator":" ","CurrencyPositivePattern":3,"PositiveInfinitySymbol":"+Infini","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":",","PercentGroupSeparator":" ","PercentSymbol":"%","PerMilleSymbol":"‰","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"","Calendar":{"MinSupportedDateTime":"\/Date(-62135568000000)\/","MaxSupportedDateTime":"\/Date(253402300799999)\/","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":false},"DateSeparator":"/","FirstDayOfWeek":1,"CalendarWeekRule":0,"FullDateTimePattern":"dddd d MMMM yyyy HH:mm:ss","LongDatePattern":"dddd d MMMM yyyy","LongTimePattern":"HH:mm:ss","MonthDayPattern":"d MMMM","PMDesignator":"","RFC1123Pattern":"ddd, dd MMM yyyy HH\u0027:\u0027mm\u0027:\u0027ss \u0027GMT\u0027","ShortDatePattern":"dd/MM/yyyy","ShortTimePattern":"HH:mm","SortableDateTimePattern":"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\u0027-\u0027MM\u0027-\u0027dd HH\u0027:\u0027mm\u0027:\u0027ss\u0027Z\u0027","YearMonthPattern":"MMMM yyyy","AbbreviatedDayNames":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"ShortestDayNames":["di","lu","ma","me","je","ve","sa"],"DayNames":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"AbbreviatedMonthNames":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"MonthNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],"IsReadOnly":false,"NativeCalendarName":"calendrier grégorien","AbbreviatedMonthGenitiveNames":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],"MonthGenitiveNames":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""]}};

From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Jon Ferraiolo
Sent: Monday, August 03, 2009 11:35 AM
To: ide at openajax.org
Subject: [OpenAjaxIDE] Agenda for tomorrow: Review Widget Metadata chapter


The main topic for tomorrow's phone call is detailed review of the Widget Metadata chapter:

* http://www.openajax.org/member/wiki/OpenAjax_Metadata_1.0_Specification_Widget_Metadata

Kin and Lori were also going to look into a proposal for a date formatting function. Regarding that topic, I did some web searches. It appears that ExtJS and Dojo (in dojox: http://api.dojotoolkit.org/jsdoc/1.3/dojox.date.php.DateFormat) have both offered JavaScript APIs that implement a subset of PHP's date formatting features. Also, the ServerJS crowd are talking about offering a date formatting feature that is also derivative of PHP's date formatting features. (http://www.mynajs.org/shared/docs/js/libOO/files/Date-js.html) Adam has been making comments to the ServerJS crowd that they should focus on core features and treat date formatting as something that can be provided by an add-on JavaScript library.

Thanks to Lori for the editorial work on the cover page and chapters 1 and 2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20090803/fc1943cb/attachment.html 


More information about the IDE mailing list