Can this be used to customize Drupal messages?

John_Kenney - October 28, 2009 - 19:38
Project:String Overrides
Version:6.x-1.7
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm trying to find a simple way to customize standard Drupal warnings and error messages - like "The URL of your homepage is not valid. Remember that it must be fully qualified, i.e. of the form http://example.com/directory."

I don't know if these are passed via t() and have no idea to figure that out. I tried using this module (which I use for other, simpler things) for the above statement (including just partial strings to void HTML glitches), but didn't work, so assume they must not be going thru t, right?

If this module won't work, do you know of something that will? I tried locale/language as is suggested in various threads here and elsewhere and am not seeing how to make that work. Search function does not see these statements, but existing instructional info is dated, so perhaps not doing it correctly.

Any suggestions? Thanks for your help.

#1

John_Kenney - October 28, 2009 - 21:06
Status:active» fixed

Answered my own question: yes, it can, but you need the text to be exactly, precisely identical to what is in the t() statement. I thought I had done that by pulling text/HTML out of 'print source' view, but I guess that wasn't good enough.

Just copied and pasted directly from the t() statement in the original module and it worked!!

Fantastic. Took several days of fiddling, but finally got it.

#2

System Message - November 11, 2009 - 21:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.