I didn't think so. The difficulty is in the combination of the following: - #expr only accepts . as decimal separator and doesn't like thousands separators. So before you can do any calculation you have to transform the amounts that have been entered on forms in Dutch format. - #formatnum also only accepts English format as input, so if you want the plain 2500,5 that has been entered by the user to appear on the page as € 2.500,50 you have to transform twice. First transform to English format and then use #formatnum. - Input in #expr must be 'raw' so output from magic words, result formats must be processed before you can use it in the expression. - I have two kinds of wikis for which the above transformations have to be different: English wiki/user Dutch format on screen and English wiki Dutch user/format. - Calculations can be rather complex with combinations of entered amounts, queried amounts and results of other calculations.
Or am I missing some easier way? On 31 januari 2013, at 16:16, "Mark A. Hershberger" <[email protected]> wrote: > On 01/31/2013 07:02 AM, Ad Strack van Schijndel wrote: >> Calculations and showing amounts on the screen in the right format are a bit >> of a disaster here in The Netherlands where the decimal . is a , and the >> thousand separator is a . :-(. > > This sounds like it should be a bug report. From my experience with > number formatting (very limited) and looking at MediaWiki's code > (briefly -- Language::formatNum), I think this should be handled correctly. > > Is there a bug report for this? > > -- > http://hexmode.com/ > > Language will always shift from day to day. It is the wind blowing > through our mouths. -- http://hexm.de/np > _______________________________________________ Mediawiki-enterprise mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-enterprise
