Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thousands and decimal separators are not localized #18

Open
ewout opened this issue Mar 18, 2013 · 3 comments
Open

Thousands and decimal separators are not localized #18

ewout opened this issue Mar 18, 2013 · 3 comments

Comments

@ewout
Copy link

ewout commented Mar 18, 2013

We have a fix (we think...) for the number in student's answers:
http://git.atp.usp.br/moodle.git/commitdiff/4d5649a620901b134dbf489d870c50aff4b5515e

However, there is a remaining issue with using commas in the correct answer or in variants.

@timhunt
Copy link
Member

timhunt commented Mar 18, 2013

It is not that simple. Think about what happens in a multi-national course, where an English teacher re-grades a French student's quiz attempt (and other similar scenarios).

We got it very close to right in qtype_numerical, but that is still not exactly right.

It would be great if you could solve this, but I know how hard it is. Good luck.

@andreumarti
Copy link

andreumarti commented Apr 23, 2020

As explained in https://docs.moodle.org/dev/Decimal_separator
the behaviour expected for the "qtype_varnumericset" should be the same as "qtype_numerical" does.
Depending on the language used, a point or a coma should be accepted as a decimal separator.
Whilst "qtype_numerical" works right, "qtype_numerical" doesn't.
Thanks

@andreumarti
Copy link

Tim, I've ssen your answer: https://moodle.org/mod/forum/discuss.php?d=340313#p1372151
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants