Program Vocabulary Editing

New features or any feature you wish to change in TODCM. This is the place where you can help us to improve TODCM! This is for high-level curriculum mapping discussions, code-level discussions belong to the developers forum.

Program Vocabulary Editing

Postby james » August 23rd, 2011, 4:40 am

Hi,
Would it be possible to introduce an editing interface to change the program vocabulary/terminology. I work in a University and, for example, the "grade" heading is very misleading for us. I would like to be able to alter the terminology (without altering the program structure at all). A simple page which would allow us to enter alternative terms for grade, department, school, strand, standard, and possibly others (teacher, student, user etc.)
Thanks
James
james
 
Posts: 5
Joined: August 22nd, 2011, 7:13 am

Re: Program Vocabulary Editing

Postby David Tong » August 24th, 2011, 5:18 am

Hi James,

There is currently no web interface allowing modifications of the text on the site, don't think there will be one in the near future due to the fact that there are too may of them.

But, the application is designed to support multiple site configurations and language override with some PHP editing. All the site text strings are stored in multiple language files and are separate from the main source files. Here is the trick to override any text on your site:

1. Find the file inside system/application/language/english that contains the text you like to change. For this example I am going to use the file unit_lang.php and changing the text for unit title and description on the unit page. These 2 text strings look like this inside unit_lang.php:
-----
$lang['unit_title'] = 'Unit Title';
$lang['unit_description'] = 'Unit Description';
-----

2. Create a folder named "todcm" inside system/application/language/english/site.

3. Create an empty file named exactly same as what you found in step 1 inside the "todcm" folder. In this example that is unit_lang.php.

4. Now you have created the file system/application/language/english/site/todcm/unit_lang.php, add the following to this file:
-----
<?php
$lang['unit_title'] = 'My Unit Title';
$lang['unit_description'] = 'My Unit Description';
-----

5. Now, go to any unit page on the site and you will see the new title and desc.

Try to put in only the necessary language overrides else it will be very messy for you to maintain. When it comes to upgrade, just make sure your todcm folder is in the same place.

I have worked on numerous open source projects and the language text modification is always an issue when it comes time to upgrade. So, I designed our system with this language override. It has been working really well for me so far.

If you are considering modifying the site other than the language files then there is another trick to create your own set of templates and let them stay the same throughout all future upgrades. I can talk about this if anyone is interested.
David Tong - TODCM Founder.
http://todcm.org - TODCM open source project site.
http://www.tillersoft.net - Operator and maintainer of the TODCM project.
David Tong
TODCM Team
 
Posts: 94
Joined: June 4th, 2011, 4:17 pm

Re: Program Vocabulary Editing

Postby james » August 27th, 2011, 9:11 am

Thanks, this is definitely neater that just editing the standard files then having to reintroduce the changes after each upgrade.
JAmes
james
 
Posts: 5
Joined: August 22nd, 2011, 7:13 am


Return to Wishlist

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron