I have been looking all over the cobalt directories for the source of the text that shows up on the user administration email part of their control panel. Namely, I need to change the phrase "Vacation Message" to "Response Message". Anyone know which file contains this phrase?
cperciva
05-19-2001, 08:49 PM
Originally posted by JoeM
Anyone know which file contains this phrase?
Try 'grep "Vacation Message" *'.
Thanks. I tried that but it just pulled up a list of directories, some of them empty.
iplexx
05-20-2001, 07:04 AM
Vacation messages for each user (even if not used) is stored in /var/vacation/user.msg
So it must be set when you add a user. User adding is handled by /usr/admserv/cgi-bin/.cobalt/siteUserAdd/siteUserAdd.cgi
User & Vacation stuff is also in /usr/lib/perl5/site_perl/5.005/Cobalt/User.pm and Vacation.pm
We find vacations are set by the perl function vacation_set_message and the default message is retrieved by MSG_get_ui("defaultVacationReply")
MSG_get_ui is defined in Util.pm, but the real function is Locale::gettext::dgettext("ui", $msgkey); So we edit look at Locale.pm to find out the default message directory is /etc/cobalt/messages
Looking there we'll find the default vacation message in:
/etc/cobalt/messages/en_US/special-sauce.po
/etc/cobalt/messages/en_US/ui.po
Voila!
Sidenote: editing cobalt files void your waranty and can be extremly dangerous. Also cobalt updates may not work anymore as expected. Backup any files before editing.
iplexx
05-20-2001, 07:14 AM
Uhm, sorry, I was to stupid :blush: to read your message exactly. You simple want to change the text "Vacation Message" in the user interface.... !?
Solution One
you simply exchange [str.vacationReply] in /usr/admserv/templates/email.tmpl with your message
Solution Two (more sophisticated)
edit /etc/cobalt/messages/en_US/ui.po
and find these two lines.
msgid "vacationReply"
msgstr "Vacation Message"
exchange the msgstring
Brevious sidenotes apply.
I'm not sure if .po files are postgres files!?