Skip to content

Commit

Permalink
Added #00 as a way of specifying blank as thousand sepchar for field …
Browse files Browse the repository at this point in the history
…number format
  • Loading branch information
cheesegrits committed May 24, 2016
1 parent 2dd3bfd commit 2148937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/com_fabrik/models/element.php
Original file line number Diff line number Diff line change
Expand Up @@ -6727,6 +6727,10 @@ protected function numberFormat($data)
{
$thousandSep = ' ';
}
else if ($thousandSep == '#00')
{
$thousandSep = '';
}

return number_format((float) $data, $decimalLength, $decimalSep, $thousandSep);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ PLG_ELEMENT_FIELD_TARGET_PARENT="Open in parent window / frame"
PLG_ELEMENT_FIELD_TARGET_SELF="Open in this window / frame"
PLG_ELEMENT_FIELD_TARGET_TOP="Open in top frame"
PLG_ELEMENT_FIELD_TEXT="Text"
PLG_ELEMENT_FIELD_THOUSAND_SEP_DESC="If you selected Yes for Number Format, this will be used as the thousand separator. If you need to specify a space (i.e,. for French number formatting), put #32 instead (Joomla strips spaces from parameters when saving, so you can't just put a space here!)."
PLG_ELEMENT_FIELD_THOUSAND_SEP_DESC="If you selected Yes for Number Format, this will be used as the thousand separator. If you need to specify a space (i.e,. for French number formatting), put #32 instead (Joomla strips spaces from parameters when saving, so you can't just put a space here!). For no char, use #00."
PLG_ELEMENT_FIELD_THOUSAND_SEP_LABEL="Thousand Separator"
PLG_ELEMENT_FIELD_SPEECH_DESC="For Chrome 11 + only - enable text entry via your mic"
PLG_ELEMENT_FIELD_SPEECH_LABEL="Speech recognition"
Expand Down

0 comments on commit 2148937

Please sign in to comment.