-
Notifications
You must be signed in to change notification settings - Fork 18
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
comma in passing grade #126
Comments
Truthfully, I do not remember ever testing with a decimal point in the grade to pass setting. When this occurs, what is the, Maximum grade that you are setting for the activity? Being retired and without any real student data, I tend to always just use a Maximum grade of 100 points, and just now noticed that whatever is in the Grade to pass setting is shown with two decimal places set. I know those two decimal places are controlled via what I have set in the course grade setup. |
I'm setting an integer, but it is automatically converted to two decimal points eg. 97 is converted to 97,00. I'm also using maximum grade of 100 points, but I want to fill in the passing grade to get the green and red coloring in the grade book. |
Thanks for the prompt reply. I will warn you that for two years, I have been having severe dry-eye problems that really limit the amount of time I can stand to look at a computer monitor, so testing for this might take me some time, especially since I have other things I need to work on. Plus, yesterday, I accidentally did something that caused me to have to delete all my keyboard drivers for MooTyper. I am still in the process of doing all the driver installs, but at least, they will be in a little easier to navigate order. It will also take me a little while to setup a Moodle that uses German and commas for the decimal settings. |
Thanks for looking into this! |
I just set up a totally fresh Moodle 4.5 with MooTyper 4.3.0, and right out of the box when I set my language preference to German, the setting for, Grade to pass, worked correctly with a comma. I have completed exercises as admin, teacher, and as student, without any problems. When looking at all grades or own grades, the commas are there for all the decimal places in the reports. This was on a Raspberry Pi5 with both the OS and Moodle updated to the latest versions. I have also tested on my normal development server Running Rocky 9 Linux, and when I change my language preference to German the commas work. I have tested on my demo site on the same server and commas work on it, also. You are welcome to visit, https://drachels.org/moodledemo/course/view.php?id=1374, you can log in as teacher1 or teacher3, using Test54321! as the password. You can also log in as any student from, student1, ..., student18, with password of Test12345! Add and set up a MooTyper activity yourself. If you want to, send me copies of your own lessons and I will add them to the course for testing. |
Hi,
Thank you for working on this. |
I am stumped at the moment. Yesterday, it worked like you would expect it to, but today, I am able to duplicate the problem. I will do some more testing and let you know if I figure anything out. |
creating the activity is not the problem, it still works then, but changing the settings later on produces the error. |
To me, what is really weird is that I am looking at the MooTyper code and comparing to forum code and they are the same. |
I think there might be a temporary work around. In both places where you can enter, Bestehensgrenze, for the Whole MooTyper, or Rating, enter only a whole number such as 97 or 70. Do not put it in as 97,00 or 70,00. The activity will then save and can be used as expected. |
I am sorry that due to health problems it has taken me so long to verify and test what the cause of this problem is. Had to install a new server to test it. The locale in your server has not been set up to include the locale, de_DE, de_DE@euro, or de_DE.utf8. |
Hi, |
Hi @drachels, The forum activity has this additional code, that converts the comma if necessary: Could you add that in your plugin? |
I will see about adding this fix, but it will take me a few days as I am in the middle of some other work on Diary and iContent. I also just 30 minutes ago received an equipment shipment I needed to complete setting up a new work station, which I will need to do later today. By any chance, if you go to Site administration > Language > Language packs, and click on, Update all installed language packs, do you see any errors reported? The reason I ask, is that the only times I have been able to duplicate this problem is when I was getting an error about locales when I was getting a language pack update or install error. |
we have special rights management, so yes, but the error is by design in our configuration. thanks for applying the fix!! |
When I enter a passing grade after setting up the activity, the system uses the decimal separator of the set standard language (in my case German where the decimal separator is the comma). Upon saving the activity, I get an error:
when I set the decimal separator in the passing grade field to a dot, the settings are saved without error. The passing grade needs to be updated every time a setting changes, because the system uses the decimal separator of the selected system language.
The text was updated successfully, but these errors were encountered: