https://bugzilla.wikimedia.org/show_bug.cgi?id=29495

--- Comment #5 from Brion Vibber <[email protected]> 2011-06-21 22:21:05 UTC 
---
Ok since that's used for so many languages, probably easiest to do it in the
base Language::commafy() triggered by a setting, that way we won't have to add
extra classes just to duplicate the same alternate layout. :)

Maybe options like:

$digitGrouping = '1k';        // 1,000    10,000    1,000,000 (default)
$digitGrouping = '10k';       //  1000    10,000    1,000,000
$digitGrouping = 'indic';     // 1,000    10,000    10,00,000
$digitGrouping = 'none';      //  1000     10000      1000000

The default behavior would be covered by '1k' mode, adding the thousands
separator at every 3 digits.

Current languages to switch from manual commafy() overrides to using '10k'
mode, skipping the separator until reaching 10,000 (mostly Eastern European and
some Central Asian languages):
* be_tarask
* bg
* et
* hy
* kaa
* kk_cyrl
* ksh
* ku_ku
* pl
* ru
* uk

Current languages to switch from manual commafy() to 'none' mode:
* km (see [[Khmer_numerals]])
* my (see [[Burmese_numerals]])

I wasn't sure if those non-conversions were right; Khmer and Burmese both use
south-east asian indic script variants, but neither appears to use standard
digit grouping per examples at above so I believe that is indeed correct,
though Burmese is listed as sometimes using the crore/lakh grouping at
[[Indian_numbering_system]].

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to