Closed Bug 984142 Opened 11 years ago Closed 11 years ago

There should be someway to disable localized numbers

Categories

(Core :: CSS Parsing and Computation, enhancement)

30 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ebrahim, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

(deleted), image/png
Details
Attached image A.png (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 Steps to reproduce: http://ar.wikipedia.org/wiki/%D8%AE%D8%A7%D8%B5:%D9%85%D8%B3%D8%A7%D9%87%D9%85%D8%A7%D8%AA/newbies Actual results: As of Bug 844744, input type=number on Arabic Wikipedia is using eastern Arabic digits but Arabic Wikipedia itself is using western Arabic digits (i.e. English locale digits) Expected results: There should be someway to control that on CSS. MediaWiki's Arabic locale itself by default use Arabic digits but MediaWiki configuration of Arabic Wikipedia do not use that. See this part of Wikipedia servers configurations: https://github.com/wikimedia/operations-mediawiki-config/blob/94324d93a58634a70ad3cc84263e2b901bc8923f/wmf-config/InitialiseSettings.php#L3919 There should be someway for such sites to disable localized numbers WITHOUT disabling it by default.
Blocks: number-input
Depends on: 866457
OS: Windows 8.1 → All
Hardware: x86_64 → All
Well, there is a workaround, using lang="en", but am not sure if this is clean way of that and IMO is just a hack. Was nice if there was a dedicated CSS selector for just controlling numbers localization.
Using lang="en" on the <input> seems like the right way to me. Anyway, the mailing list www-style@w3.org is a better forum to request new CSS properties.
Severity: normal → enhancement
Component: General → CSS Parsing and Computation
Yeah, I don't see what's wrong with @lang either.
The locale is selected using a BCP lang tag. https://en.wikipedia.org/wiki/IETF_language_tag Is there maybe a more specific tag for Arabic Wikipedia to use than "en"?
Thank you :jwatt. "ar-u-nu-latn" sounds very reasonable to me so I've opened a bug on Wikimedia https://bugzilla.wikimedia.org/show_bug.cgi?id=62725 and am closing this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: