Hungarian locale number format conflict
-
When locale is set to, for example, Hungarian, the floating numbers use comma as decimal separator. This causes problem in the inline styles resulting videos to not appear at all:
$cssRatio = 'padding-bottom:' . $setRatio . '%;';
I propose to change this line to the following:
$cssRatio = 'padding-bottom:' . number_format($setRatio, 2, '.', '') . '%;';
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hungarian locale number format conflict’ is closed to new replies.