Forums | Mahara Community
Support
/
Changing content of email messages
15 September 2010, 0:38
Hello! Is there a way to change the content of email messages? Our community is a mix of English and Spanish and so we would like to edit the text of the messages to create bilingual notifications.
Thanks!
15 September 2010, 2:08
You can change the content by editing mahara.php in /lang/en.utf8 (assuming that's the language pack you're using).
15 September 2010, 3:07
The best way of changing language strings is to use the local directory.
I'd really recommend not changing the language string in lang/en.utf8 because, at upgrade time, you'll overwrite them, or have to merge them - both of which would be frustrating.
You can use the local directory in the same way as the lang directory, and choose which strings you'd like to override. For example - if you'd like to change the message users receive when they're added to the access list on a view, you'd find that in lang/en.utf8/activity.php as the string 'newviewaccessmessage'. To override that string, you'd create a file in /local/lang/en.utf8/activity.php and make it look like:
<?php defined('INTERNAL') || die(); $string['newviewaccessmessage'] = 'New message goes here "%s" by %s';
You only need to edit the strings which you wish to override.
There's a little information on the Mahara wiki at http://wiki.mahara.org/Customising/Language_Strings