Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Block: Mrbs
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Hi Anthony,
it's great that you included the language packs.
Since your last contact about the help files I got an idea to repair the wrong language setting for the help files. When I start the help in mrbs I always get the english version. I found a workaround to get the correct languag for the mrbs help. Please try this in the file help.php
if (file_exists('../lang/'.$USER->lang.'/help/site_faq.html')) { <<<<<<<<<<<<<<<<<< I changed this line
include '../lang/'.$USER->lang.'/help/site_faq.html';
} else {
include '../lang/en_utf8/help/site_faq.html';
}
Please tell me what I should do for the help files and for the language files and I will do it. Which name should the help files get inside the language pack.
I hope you will get it.
Ralf
Ralf - OK, I'm afraid I don't get it. I went in and tried to figure out what you were referring to. I installed MRBS block, changed my language to Spanish and went to help and I got the help file in Spanish. What seems to be the problem. Again, as best as you can spell out for me how to recreate the problem. The only difference between your line and what I have in HEAD is I avoid relative referencing of the file name and am specific about it being:
if (file_exists($CFG->wwwroot.'blocks/mrbs/lang/'.$USER->lang.'/help/site_faq.html')) {
Peace - Anthony