|
[
Permalink
| « Hide
]
Ian Robotham added a comment - 17/Feb/09 12:54 AM
Patch for this issue, tested on both our local development & our test servers. Both running Moodle 1.9.4
Uhm... it seems that there are a bunch of places doing the search only against 'auth' lang file.
1) Instead of the suggested patch (that only fixes one place) I would do:
2) Or alternatively:
3) Or, also:
My +1 for 1) above. Assigning to Jerome, please await Petr's confirmation before doing anything here. TIA! Ciao I do not like this kind of custom string handling in general.
I think that in 2.0 there should be a lang file for each plugin including the core plugins For now I would just hack - base->get_title() to make it search the separate files too I personally hate having to instantiate object just to get the title - we do that in blocks for everything and it is a nightmare Hi Petr,
auth_plugin_base->get_title() already search for separate files, I think you mean that we should use the Eloy 1) suggestion? If no, tell me. I'll fix it this avo following Eloy 1) suggestion. For information: the bug appears in three different places, and the code is well written in two other places. I attached a patch I will commit tomorrow after the build
This accidentally got into the 1.9.5 build, but it looks OK.
What exactly are we doing for this in HEAD? in HEAD we should split auth.php lang file into multiple files separate for each plugin and use standard get_string() support.
I'll commit the current change into HEAD and write a new issue for splitting the auth language file.
Resolving this then ... Jerome, can you link to the new issue when you make it?
sorry I didn't commit in HEAD yet. I do this now, and create a new issue for 2.0.
I see this same issue back in Moodle 1.9.6+
What I did was following: And it does not work. The only place where string was picked up was plugin title in the admin block (once the plugin was enabled). In all other places I saw [[auth_title]] and [[auth_description]] instead of [[auth_newplugintitle]] and [[auth_newplugindescription]]. This was my mistake sorry. Not a bug.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||