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.
| Comment | File | Size | Author |
|---|---|---|---|
| common.inc__1.patch | 1.05 KB | kris.dover |
Comments
Comment #1
killes@www.drop.org commentedno new features for 4.7.
Comment #2
dmitrig01 commentedwhich means it needs a re-roll
Comment #3
gábor hojtsyDrupal 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.
Comment #4
(not verified) commented