dmirandaa / moodle-auth_saml2sso

Moodle plugin for authentication using a SimpleSAMLphp Service Provider
https://moodle.org/plugins/auth_saml2sso
0 stars 6 forks source link

Translating "Button caption" not working! #46

Closed naamaan closed 3 years ago

naamaan commented 3 years ago

Describe the bug Applying the multilang2 filter not working

To Reproduce Steps to reproduce the behavior:

  1. Enabling the language filter
  2. set {mlang en}Log in EN{mlang}{mlang ar}Log in AR{mlang} in the "Button caption" field
  3. Save
  4. See the login page, and the translation not working.

Solution I could workaround it by using the function _formatstring() inthe auth.php file line 135

return [[
            'url' => new moodle_url($url),
            'name' => format_string($button_name),
            'iconurl' => $button_path
        ]];

Regards,