Opened 9 years ago

Closed 9 years ago

#17484 closed enhancement (patchwelcome)

Calendar: display arabic numerals

Reported by: robert_j Owned by: robert_j
Priority: undecided Milestone: tbd
Component: Dojox Version: 1.9.1
Keywords: Cc:
Blocked By: Blocking:


Locale: ar-sa IE9 Win 7

I have a page hosting an umm al qura Calendar widget with the following in the head:

<meta http-equiv="x-ua-compatible" content="IE=edge" >

The months and days are all displayed correctly in arabic but the numbers for the years and days are still in English.

If I force the content to be IE7 it will display correctly.

See attached image

Attachments (1)

dojo_calendar.png (16.7 KB) - added by robert_j 9 years ago.
IE 8 vs IE 7 Arabic locale Umm Al Quara

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by robert_j

Attachment: dojo_calendar.png added

IE 8 vs IE 7 Arabic locale Umm Al Quara

comment:1 Changed 9 years ago by bill

Owner: set to robert_j
Status: newpending

Hmm, that's strange, well please attach a test case so I can debug it, thanks.

comment:2 Changed 9 years ago by robert_j

Status: pendingnew

After looking further into the issue it seems to be down to the way different versions of IE handle Digit Substitution in Windows and not an issue with the control itself.

When the "Use Native Digits" setting is set to "National" in Windows IE7 will substitute all digits with Arabic digits but IE9 no longer performs this substitution. Both Chrome and Firefox also don't perform any digit substitution.

If you create a page with a simple div containing numbers e.g. <div>123456789</div> and set the machines locale to Arabic, the "Use Native Digit" flag to "National" and display the page in IE9 you will notice the digits appear in Western/European? digits as expected. If you hit F12 and change the Document mode to IE7 you will notice the digits change to Arabic digits.

This is the same behaviour I was seeing with the calendar.

This bug can be closed.


comment:3 Changed 9 years ago by bill

Component: DijitDojox
Resolution: patchwelcome
Status: newclosed
Summary: Dojo Calendar doesn't display arabic numerals in any document mode after IE7Calendar: display arabic numerals
Type: defectenhancement

OK, well I'll close it as "patch welcome" because it could still be an enhancement. We already have an Islamic calendar in dojox but it still uses the standard western digits.

Note: See TracTickets for help on using tickets.