MDL-40227 mod_lesson: Use localised float formatting
authorPeter <peter@moodle.com>
Tue, 11 Dec 2018 03:39:21 +0000 (11:39 +0800)
committerPeter Dias <peter@moodle.com>
Thu, 6 Aug 2020 02:44:08 +0000 (10:44 +0800)
commit407a66606482305c79078dca6beea8f8c12ff36c
treeaec6028b0c4ad0721ac9b9982e9de6d90fc84cff
parent94fdac9117db2fd0f2d999f0bdd822fab6193e52
MDL-40227 mod_lesson: Use localised float formatting

* Leverage PARAM_LOCALISEDFLOAT
* Store all numbers with standard '.' dec formatting
* Show all numbers based on locale settings
* Behat test to cover different cases using numeric questions and modified locale setting
mod/lesson/classes/local/numeric/helper.php [new file with mode: 0644]
mod/lesson/lang/en/lesson.php
mod/lesson/locallib.php
mod/lesson/pagetypes/numerical.php
mod/lesson/tests/behat/lesson_numerical_question_with_locale.feature [new file with mode: 0644]
mod/lesson/tests/numeric_helper_test.php [new file with mode: 0644]