Drupal Javascript object
Submitted by safeen on Sun, 10/26/2008 - 14:22.
Hi all,
Let us begin again with a wisdom of our uncle Mark Twain:
"The difference between the right word and the almost right word is
really a large matter — it's the difference between a lightning bug and
the lightning"
For today I have a bunch of functions. Imagine using Javascript/JQuery,
it is sometimes impossible to avoid using texts in your script that
needs to be translated. Therefore you can use a native Drupal function:
Drupal.t().
Any word in the t function Drupal.t('hoi'); Translates strings to the page language or a given language.
You can even use Drupal.checkPlain(); To encode special chars.
How nice!!!

what for this module?
what for this module?