https://bugzilla.wikimedia.org/show_bug.cgi?id=29495
Santhosh Thottingal <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |om --- Comment #7 from Santhosh Thottingal <[email protected]> 2011-08-31 10:13:51 UTC --- (In reply to comment #5) > 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 A better way to specify these options in a more generic way is to follow the LC_NUMERIC grouping property format of Glibc locale definitions. "grouping keyword consists of a sequence of semicolon-separated integers. Each integer specifies the number of digits in a group. The initial integer defines the size of the group immediately to the left of the decimal delimiter. The following integers define succeeding groups to the left of the previous group. If the last integer is not -1, the size of the previous group (if any) is used repeatedly for the remainder of the digits. If the last integer is -1, no further grouping is performed." 3;-1 123456,789 3 123,456,789 (this is en_US default format) 3;2;-1 1234,56,789 3;2 12,34,56,789 (this is Indic) -1 123456789 (equivalent to 'none') This can cover any complex formatting requirements. -- 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
