Location: A review of cardiac cellular electrophysiology models @ a80b964384c0 / dojo-presentation / js / dojo / dijit / tests / i18n / time.html

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2010-05-04 12:37:19+12:00
Desc:
adding initial version of SED-ML L1V1 file reproducing what is in graphs/BR-INa-variants.xml
Permanent Source URI:
https://models.cellml.org/workspace/a1/rawfile/a80b964384c0c7683d7c5d07b73a5af7a973d46c/dojo-presentation/js/dojo/dijit/tests/i18n/time.html

Dijit TextBox Globalization Test for Time

Press the following button to start all test after this page is loaded.

Start Test

Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", "ja-jp", "ru-ru", "hi-in", "en-us" and "ar-eg". If not, convert these CLDR data and put them there.

Issues & Comments

Issue #1 Fixed

Currently Dojo do not support parsing for most "long" and "full" time format which have a timezone mark in it.

Issue #2 Fixed: added a "localeDigit" to the options

Strictly speaking, the data conversion must support non-European number characters in some locales like Arabic and Hindi. For example, ICU formats a number data into Indic number characters by default in the Arabic locale. However, currently Dojo does not support this feature (Dojo uses the default number conversion of the browser).

Issue #3 Fixed

This defect only occurs on the "zh-cn" locale. Dojo accepts "下午"(pm) in the textbox, but it automatically changes it to "上午"(am) after the focus changed. The date value of the textbox is also changed.

The root cause of this issue is that the parser method's code assumes am/pm symbol always appears after the hour value. But this is not true, for example, the pattern for "zh-cn" puts am/pm field before all the other fields.