• Resolved csiszi

    (@csiszi)


    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)
  • Plugin Author Eirudo

    (@eirudo)

    Hello, I’m already test it using different language, and there’s no problem.
    Are you sure not caused by antoher plugin?
    Because when this plugin calculating ratio and processing number,
    all processed by PHP in the backend. So will not affected by number format.

    If the problem caused when you change locale (by Translate plugin on your website),
    so the problem is the Translate Plugin, not this plugin.
    Because it change all number into number format, and can’t filter which number must be changed or not.

    Please contact the locale/translator plugin developer to fix this.

Viewing 1 replies (of 1 total)
  • The topic ‘Hungarian locale number format conflict’ is closed to new replies.