9 Commits

Author SHA1 Message Date
Nyall Dawson
49adde6b9a [expressions] Re-permit format_number to omit group separators
After 6fcef30cc50, group separators were always included in the
results from format_number (even if a locale which doesn't use
them like the 'C' locale is specified). 6fcef30cc50 was added
to fix an old regression, but in doing so we lost flexibility
to skip unwanted separators.

Workaround this by introducing a new opt-in omit_group_separators
argument for format_number to skip the thousand separators when
desired. Also add an opt-in trim_trailing_zeroes argument for
further flexibility.
2023-02-07 15:15:04 +10:00
Alex
d7ffe0b7ec
DelazJ bonification
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-11 11:17:49 -05:00
roya0045
57e25ca19e proposal tags
made with https://gist.github.com/roya0045/eaa19acabe1033569f97b40604b7e6df
2022-01-07 08:33:29 -05:00
Harrissou Sant-anna
1fea062b9c Add precision on default locale of format_number function
and display places parameter default value
2021-05-17 10:41:04 +10:00
Harrissou Sant-anna
e41d32864d Update the format_number example
and add link to list of iso language codes
2021-02-11 11:08:40 +10:00
SrNetoChan
d097adeacd Add groups to function_help files 2020-07-02 15:03:16 +10:00
nirvn
cbd3068443 [expression] Add optional language parameter to format_number() to control locale across different systems 2020-06-05 16:25:49 +07:00
Juergen E. Fischer
82b34afe03 move remaining function_help to json and update it's translation handling 2015-09-20 18:35:27 +02:00
Nyall Dawson
709c14391b Change expression help from free form html files to structured json
A new script then parses these json help files into the html help
contents, in a standardised manner. Previously, the function help
was a bunch of different formats and structures.

Now, a custom stylesheet can be applied (and later tweaked!) to
format these help. Eg, this commit colors variables and function
names in the syntax section for greater readability.
2015-09-02 14:22:50 +10:00