Plugin new components in Schooltool

Asked by missthom

I am a Vietnamese Teacher, I installed the newest Schooltool version. So now I 'd like to plugin a new component in Schooltool. For instance, Timetable generate or add combobox in Schooltool Calendar to help users can setting languages quicklly. It's possible with current release Schooltool? If anybody has done it, please shared me some experiments. Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ignas Mikalajūnas (ignas) said :
#1

Writing plugins for schooltool is hard. But solving your problems is probably possible.

If I understand correctly - you want to allow students see schooltool in different languages? In that case you can just add different languages in schooltool.conf like this:

lang lt, en

this will add two "buttons" that allow selecting either Lithuanian or English language in schooltool.

Integrating timetable generation *into* schooltool is tricky too, but you can look at the sample data export, and find out how to generate a file that has your timetables, so you can use some program that generates timetables, export the timetable as csv or xml and use python, ruby or perl and convert it into a csv file that schooltool can import.

If you still want to write a plugin, you will have to learn Zope3, but to do that you have to know how to program already...

Revision history for this message
Justas Sadzevičius (justas.sadzevicius) said :
#2

To enable language selector in SchoolTool installed with Synaptic Package Manager (or with apt-get):

Open console terminal, run command:

$ sudo gedit /etc/schooltool/schooltool-2009/main.conf

Add this line to the end of the file:

lang en, ru, vi

Save; then in terminal run following commands:

$ sudo /etc/init.d/schooltool-2009 stop
$ sudo /etc/init.d/schooltool-2009 start

This will add the three language choices in top right corner of the page (after you log in).

Revision history for this message
Justas Sadzevičius (justas.sadzevicius) said :
#3

Also, if you specify only one language, for example:

lang vi

SchoolTool will always run in Vietnamese.

Can you help with this problem?

Provide an answer of your own, or ask missthom for more information if necessary.

To post a message you must log in.