danmarsden / moodle-mod_attendance

Allows an attendance log to be kept in Moodle
https://moodle.org/plugins/mod_attendance
64 stars 156 forks source link

String not in lang #774

Closed eduardokraus closed 1 hour ago

eduardokraus commented 2 hours ago

Captura de Tela 2024-10-24 às 14 48 42

danmarsden commented 1 hour ago

Hey @eduardokraus thanks for the report!

This is actually intentional as per the phpdoc comment, the get_description function inside an event class is supposed to contain an English string and not a translated string. This helps to unify log reporting and only the 'name' of the event is localised in the get_name() function. I couldn't find any dev docs that explain this well but you can see other examples in the event classes inside moodle core plugins too.