Hello all,
I am happy to present you DicoTrad. It's a moodle block with linguistic tools.
It provides, by querying webservers, the following functionalities:
- Definition; Wordreference and Merriam-Webster dictionaries
- Synonym
- Etymology
- Wikipedia; search and consult
- Translation; from english to french, german, italian, spanish and vice versa.
This is a beta test version for developers and everyone else interested.
I hope to be able to provide a final version and its documentation within december 2006.
Configuration requirements
- Moodle 1.7 (because the block uses the Yahoo! User Interface Library)
- The block isn't visible in the tests.
- I recommend to use at least a screen resolution of 1024x768
- Works on Firefox 1.5 / Internet Explorer 7
For installation read the Readme.txt in the archive.
Using the block
The only thing you have to know, is that you have to enter a word and then click the button ">>". It'll generate links in the menu. Every link will open in a new window.
I need you
As I said it's a test version.
For everyone:
- Do you have any problem with installation and using the block ?
- Tell me if you know better dictionaries and sites than the ones I've put in the block
- Other improvements / ideas
For developers:
- Can you have a look at the code to see if the Moodle programming structure-rules are respected ?
- On each request the block make the whole page reload. I think it's because i use a submit form. Do you have any idea in the present case, on how to get user input without reloading ? Javascript ?
Documentation to come
- How to add/delete a dictionary ?
- How to modify the menu (add/remove nodes, change icons,..) ?
Hope you'll enjoy it,
Best Regards
Theo
Hi, Theo,
Sounds like a very useful block. I am not yet using 1.7, so I cannot test it out for you, though. I am sure that others will be happy to help out.
Thanks for sharing this.
Regards,
Art
Sounds like a very useful block. I am not yet using 1.7, so I cannot test it out for you, though. I am sure that others will be happy to help out.
Thanks for sharing this.
Regards,
Art
Great job! I've already put this block on our professional development site. I've just got a few things for you to look at:
The block works fine on the main site page, but when I try to add it to a course, I get the error message - 'Must specify course id, short name or idnumber'.
Looking at block_dicotraden.php, line 27:
<input name="id2" type="hidden" value="'.$this->instance->pageid.'" />
"id2' seems to be throwing the error. If I change it to:
<input name="id" type="hidden" value="'.$this->instance->pageid.'" />
then the block works properly.
I would also like to be able to change the title of the block through a settings option in Admin-Modules-Blocks or by updating the block rather than in the code - you can get instructions on how to do this here.
You've got the nodes hardcoded in english - could these be strings that are defined in a language file instead?
Thanks,
Matt
The block works fine on the main site page, but when I try to add it to a course, I get the error message - 'Must specify course id, short name or idnumber'.
Looking at block_dicotraden.php, line 27:
<input name="id2" type="hidden" value="'.$this->instance->pageid.'" />
"id2' seems to be throwing the error. If I change it to:
<input name="id" type="hidden" value="'.$this->instance->pageid.'" />
then the block works properly.
I would also like to be able to change the title of the block through a settings option in Admin-Modules-Blocks or by updating the block rather than in the code - you can get instructions on how to do this here.
You've got the nodes hardcoded in english - could these be strings that are defined in a language file instead?
Thanks,
Matt
Hello all,
I am sorry to answer you so late, I've been pretty sick. Thanks for your answers.
Thanks for providing the solution for the error, I uploaded the wrong file (hum!...). Here's the new one.
I'll try to find the solution to change the name of the block. For the language file, it's very nice idea but at the moment I don't see how to do this. Do you know any other block that use language file ?
Thanks for your feedback.
Best Regards
Theo
I am sorry to answer you so late, I've been pretty sick. Thanks for your answers.
Thanks for providing the solution for the error, I uploaded the wrong file (hum!...). Here's the new one.
I'll try to find the solution to change the name of the block. For the language file, it's very nice idea but at the moment I don't see how to do this. Do you know any other block that use language file ?
Thanks for your feedback.
Best Regards
Theo
Man, Awesome block. great work.
I have added a Japanese~English, English~Japanese option to your block for anyone who is interested..
It worked for me but I am no expert, so...
I have added a Japanese~English, English~Japanese option to your block for anyone who is interested..
It worked for me but I am no expert, so...
Hello Jason,
Thanks for sharing. I'll add some more languages in the next version of the block
Best regards
Theo
Thanks for sharing. I'll add some more languages in the next version of the block
Best regards
Theo