Tim Hunt
added a comment - The was fixed recently be changes in moodlelib.php/get_string and help.php.
Lang string should go into
question/type/xxx/lang/en_utf8/qtype_xxx.php
and help files into
with any help files in the
question/type/xxx/lang/en_utf8/help/xxx/ folder.
Using question/type/xxx/lang/en_utf8/help/xxx/ folder isn't convenient since
a) there is no real need to have a subfolder there, it's may be as well question/type/xxx/lang/en_utf8/help
b) in language pack subfolder name must be qtype_xxx (help button near questiontype name on editing screen assumes that), so if we must have subfolder it probably should be qtype_xxx too to make further integration easier.
Oleg Sychev
added a comment - Using question/type/xxx/lang/en_utf8/help/xxx/ folder isn't convenient since
a) there is no real need to have a subfolder there, it's may be as well question/type/xxx/lang/en_utf8/help
b) in language pack subfolder name must be qtype_xxx (help button near questiontype name on editing screen assumes that), so if we must have subfolder it probably should be qtype_xxx too to make further integration easier.
I know it is not an ideal naming convention, however, this convention is the same for all types of plugin, and it has been like that for years. Changing it now would break all the plugins out there for a very minor gain. I am afraid that you will just have to live with things the way they are.
Tim Hunt
added a comment - I know it is not an ideal naming convention, however, this convention is the same for all types of plugin, and it has been like that for years. Changing it now would break all the plugins out there for a very minor gain. I am afraid that you will just have to live with things the way they are.
I really can't see why we should change naming convention and break anything. You can just add a new place to search instead, so the old code will be alright.
Oleg Sychev
added a comment - I really can't see why we should change naming convention and break anything. You can just add a new place to search instead, so the old code will be alright.
Because one extra place to search actually translates into a few extra places to search once you consider non-English languages, and accessing the disc is (relatively) slow. It is not difficult to live with things the way they are, so this is an unnecessary performance hit, so we won't do it.
Tim Hunt
added a comment - Because one extra place to search actually translates into a few extra places to search once you consider non-English languages, and accessing the disc is (relatively) slow. It is not difficult to live with things the way they are, so this is an unnecessary performance hit, so we won't do it.
The was fixed recently be changes in moodlelib.php/get_string and help.php.
Lang string should go into
question/type/xxx/lang/en_utf8/qtype_xxx.php
and help files into
with any help files in the
question/type/xxx/lang/en_utf8/help/xxx/ folder.