orracoudel
What Does This Do?
- In profiles, people input their hobby or interest instead of what city they live in.
Why the Hack?
- At our university, we wanted to replace the name of the city (not useful to us) with what the students liked to do (useful to us).
- Now when showing the list of "participants," along with their names, you see a note about their hobby/interest.
- It makes it more interesting for fellow participants, too.
Change these $strings
- The only thing you have to do is edit the "moodle.php" file in the language packs.
- Here are the only 2 that I edit, since these are the only languages we have installed:
/lang/en_utf8
Add the following to the end of the file, just before the ?>
// Hobby Instead of City CK 2007-03-29
$string['city'] = 'Hobby / Interest / Free Time';
$string['location'] = 'Hobby / Interest';
$string['missingcity'] = 'What do you do in your free time?';
// END OF Hobby Instead of City CK 2007-03-29
moodledata/lang/ja_utf8/moodle.php
Add the following to the end of the file, just before the ?>
// Hobby Instead of City CK 2007-03-29
$string['city'] = 'Hobby / Interest / Free Time';
$string['location'] = 'Hobby / Interest';
$string['missingcity'] = '¼ñÌ£¤ò½ñ¤¤¤Æ¤¯¤À¤µ¤¤¡£';
// END OF Hobby Instead of City CK 2007-03-29
Note
- In Moodle 1.8+ (April 11, 2007) the following is true.
- $string['location'] =
- This has two uses:
- to describe what students register in the "city" variable when displayed on the profile page.
- to ask the location of a file to upload