This modules http://lappy.gotdns.com/drupal/files/dyntext-v0.1.zip which is intended to work along with an included patch to drupal's translate t() function allows text messages passing through t() to be conditionally cached into a db table where the text can be later be customized to read a completely new message. The patch to t() adds a third optional argument $cache, which defaults to FALSE, meaning for backwards compatibility t() still functions the same and the cache feature is disabled.

The need for such a feature arose because I have found in developing my own modules for clients that especially with multi-step forms there are alot of messages/instructions which need to be modified to the end user's/client's liking without the drudgery of having to edit any text files.

It is also worth mentioning that this module can be extented to allow drupal's intrinsic search to locate keywords in text messages from hard coded pages matching a specified search criteria.

CommentFileSizeAuthor
common.inc__1.patch1.05 KBkris.dover

Comments

killes@www.drop.org’s picture

Version: 4.7.x-dev » 6.x-dev

no new features for 4.7.

dmitrig01’s picture

Status: Needs review » Needs work

which means it needs a re-roll

gábor hojtsy’s picture

Status: Needs work » Fixed

Drupal 6 already includes a $string = NULL option which returns a list of all the strings requested on the page. That allows you basically the same without tying the function to dyntext, as you do in the patch.

Anonymous’s picture

Status: Fixed » Closed (fixed)