Drupal 6 and JavaScript Translations
Add Multi-Language Capabilities to Your JavaScript
Author: M Butcher
Date: 2009-03-17 10:35:57 -0400
Drupal's unsung hero is its multilanguage support. Boasting "Over 42+ Languages and Counting" (Douglas Adams reference intended), Drupal's PHP library makes it easy to build language-sensitive modules and themes. And with the advent of Drupal 6's robust JavaScript libraries, you can now add translation support to the client side, as well!
While I cover this in detail in my book Drupal 6 JavaScript and jQuery, Packt has published a short introduction to Drupal translations on their site. In that article, I explain basically how the translation system works, how it can be enabled, and how JavaScript can interact with it.
By the end of the short tutorial, the reader should be able to configure Drupal's translation system and make use of it from JavaScript. |