Thousand separator error

Thousand separator error

על ידי Runar Sigurdsson בתאריך
מספר תגובות: 8

Hi my friends at Moodle.org

I get an error when I try to use comma in my question and I do need to use comma here in Iceland. I am an administrator of the system so I can change the system if needed. Please let me know if you have any thoughts on this matter.

The error is shown in the Answer.PNG picture and the question setup is shown in the question1.png

Regards, 
Rúnar Sigurðsson

צרופה Answer.PNG
צרופה question1.png
ממוצע דרוגים: -
בתגובה ל: Runar Sigurdsson

Re: Thousand separator error

על ידי Andrew Barrett בתאריך

Hi Runar,

We have similar issues in South Africa. 

I think this is the same issue as here: https://moodle.org/mod/forum/discuss.php?d=312003

Unfortunately as far as I am aware there is no solution but would be very keen to hear if there is one (even if local).

Thanks

Andrew 

בתגובה ל: Runar Sigurdsson

Re: Thousand separator error

על ידי Tim Hunt בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

It looks like you have the language set to English. (Judging by the fact that the error message is in English.) In English, , is not the decimal separator.

If you want English text, but with non-english decimal separator, the only way I can think of to achieve this is to make a new language pack en_commadecimal, or something like that. You should only need to create the langconfig.php part of the language pack, to say that the parent language is English, and what the decimal and thousands separators are.

See https://docs.moodle.org/dev/Starting_a_new_language_pack and https://docs.moodle.org/31/en/Language_packs


בתגובה ל: Tim Hunt

Re: Thousand separator error

על ידי Runar Sigurdsson בתאריך


Hi

I am actually using Icelandic. I just changed it to English so that you could read it.

בתגובה ל: Runar Sigurdsson

Re: Thousand separator error

על ידי Tim Hunt בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

Well, https://lang.moodle.org/local/amos/view.php?t=1478079045&v=3100&l=is&c=langconfig&s&d seems to show that Icelandic has the right decimal separator set. Are you sure you get the same error is Icelandic? Can you check the https://docs.moodle.org/31/en/Language_customisation settings on your server, to see if someone has changed these strings?

בתגובה ל: Tim Hunt

Re: Thousand separator error

על ידי Andrew Barrett בתאריך

Hi Tim,

1, We're in an unusual position that we'd like to accept either , or . as the decimal separator. Is this something we could do via the language pack?

2. Does your suggestion above require changing some of the code or is this simply a case of going into language customisation and changing a string?

Thanks

Andrew

בתגובה ל: Andrew Barrett

Re: Thousand separator error

על ידי Tim Hunt בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

You can't do this just via the language pack. You would need to alter the actual code in qtype_numerical. (That code is also used by qtype_calculated.)

בתגובה ל: Tim Hunt

Re: Thousand separator error

על ידי Andrew Barrett בתאריך

Thanks Tim. Always appreciate our input. 

One last query, is it something I could do (as fairly non-technical) or do I need to rope in a developer?