-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.6
Multilang filter does not work in some gradebook elements:
- If we define a Grade category name using multilang, it is not properly shown in the gradebook.
- If we define a scale with multilang values, they are not properly shown in the combo, neither in the activity nor in the gradebook.
In MDL-36255 grade category names are fixed. This issue is about scales.
The main objective of this issue is to apply filters to both the name and the elements of a scale. Following the solution adopted for the categories (MDL-36255), two methods are added to the grade_scale class:
- get_items(): to apply the filters to the scale values;
- get_name(): to apply the filters to the scale name.
Thus, when the name or values of a scale are displayed on a page, these functions must be invoked.
In addition, instead of using calls to static functions to retrieve an instance of a scale, mechanisms specific to a class are used.