|
[
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
Ian Robotham made changes - 17/Feb/09 12:54 AM
Petr Skoda made changes - 17/Feb/09 12:57 AM
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
Eloy Lafuente (stronk7) made changes - 17/Feb/09 03:46 AM
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
Petr Skoda made changes - 06/May/09 05:19 PM
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.
Jerome Mouneyrac made changes - 11/May/09 12:06 PM
I attached a patch I will commit tomorrow after the build
Jerome Mouneyrac made changes - 12/May/09 02:23 PM
Jerome Mouneyrac committed 6 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 13/May/09 01:35 PM
This accidentally got into the 1.9.5 build, but it looks OK.
What exactly are we doing for this in HEAD?
Martin Dougiamas made changes - 13/May/09 03:10 PM
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?
Martin Dougiamas made changes - 14/May/09 10:57 AM
sorry I didn't commit in HEAD yet. I do this now, and create a new issue for 2.0.
Jerome Mouneyrac made changes - 14/May/09 01:16 PM
Jerome Mouneyrac committed 6 files to 'Moodle CVS' - 14/May/09 03:03 PM
Jerome Mouneyrac made changes - 14/May/09 03:05 PM
Jerome Mouneyrac made changes - 14/May/09 03:14 PM
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]].
Darko Miletic made changes - 31/Oct/09 09:40 PM
This was my mistake sorry. Not a bug.
Darko Miletic made changes - 03/Nov/09 10:31 PM
Darko Miletic made changes - 03/Nov/09 10:32 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||