If you know basic Drupal coding, I generally recommend renaming form labels using form_alter. It's much less overhead or performance hit than using locale for just one string. On Monday 17 September 2007, Bill Fitzgerald wrote:
Hello, Chris,
I would classify using the core locale module as a best practice for changing the wording of text within the application -- I don't know of another way of doing this that allows you to make the changes without writing new code, and that will be supported via upgrade.php
Cheers,
Bill
Chris McCreery wrote:
Hi Bill thanks for the tip, is this a best practice for the type of thing I'm trying to do or would there still be a better way to do it?
Thanks
On 9/17/07, * Bill Fitzgerald* <bill@funnymonkey.com <mailto:bill@funnymonkey.com>> wrote:
Hacking core code is a one way path to much pain, as all your modifications will either prevent an upgrade (if you want to keep your changes in place) or will get wiped out during an upgrade (as your old codebase will be overwritten with the new codebase).
Use the locale module -- this allows you to translate/edit strings to change this type of value. The handbooks have pretty good documentation on this.
Cheers,
Bill
Chris McCreery wrote: > Nevermind I was able to find it in the contact module code. > > Thanks > > On 9/16/07, *Chris McCreery* <chris.mccreery@gmail.com
<mailto:chris.mccreery@gmail.com>
> <mailto: chris.mccreery@gmail.com
<mailto:chris.mccreery@gmail.com>>> wrote: > Thanks Jason but I don't think I explained what I needed. On > the actual form the header above the available categories is the
title
> "Category" and I need to change that to something else. Do you > know where I would find that? > > Thanks > > > On 9/16/07, *Jason Flatt* < drupal@oadaeh.net
<mailto:drupal@oadaeh.net>
> <mailto:drupal@oadaeh.net <mailto:drupal@oadaeh.net>>> wrote: > > On Sunday 16 September 2007 16:04:43 Chris McCreery wrote: > > Hi just wondering where I would rename the Category
title to
> something > > > different. > > > > Thanks > > Administer >> Site building >> Contact form >> edit (to the > right of the > category you want to change) > > admin/build/contact/edit/<category_id> > > -- > Jason Flatt > http://www.oadaeh.net/ <http://www.oadaeh.net/>
> Father of Six: http://www.flattfamily.com/ (Joseph, 14; > Cramer, 12; Travis, > 10; Angela; Harry, 7; and William, 12:04 am, 12-29-2005) > Linux User: http://www.xubuntu.org/ > Drupal Fanatic: http://drupal.org/ > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > > -- > Chris McCreery > > > > > -- > Chris McCreery
-- Bill Fitzgerald http://www.funnymonkey.com Tools for Teachers 503.897.7160
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Chris McCreery
-- Bill Fitzgerald http://www.funnymonkey.com Tools for Teachers 503.897.7160
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson