An example on how to dynamically localise text using a javascript function (gettext) to return strings in the users current language.
The function seaches a hash structure for at matching language and tag. If a match is found, the maching string is returned. If no match is found the tag - and a debug message is returned. Example:
<script src="gettext.js">//Translation script</script> <script src="msg.js">//Message array</script> <script>document.write(gettext( 'test' ));</script>will simply retur: