r734: Making global.js localized
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Jan 2006 20:30:56 +0000 (20:30 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Jan 2006 20:30:56 +0000 (20:30 +0000)
templates/global.js
templates/headinclude.tpl

index 796671c01ef59d702e337290e2b87a95e4f063e8..139e26bef6bd8725ea88c9bf97174580f0e15807 100644 (file)
@@ -11,7 +11,7 @@
 
 function draw_cancel()
 {
-       document.write('<input name="cancel" type="button" value="[[Cancel]]" onclick="history.back(1)" />');
+       document.write('<input name="cancel" type="button" value="' + lang['Cancel'] + '" onclick="history.back(1)" />');
 }
 
 /*=====================================================================*\
index 48e0543115622b064f5ddf434f43056c2e903c6b..d81591f66bd0e71496035e9a1104408040d7d6fc 100644 (file)
@@ -1,4 +1,5 @@
        <!-- CSS and JavaScript goes here -->
        <meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
        <link rel="stylesheet" href="templates/global.css" media="screen" />
+       <script type="text/javascript"> var lang = { "Cancel" : "{@"Cancel"}" }; </script>
        <script src="templates/global.js" type="text/javascript"></script>
\ No newline at end of file