robertlittle
Posts: 10
|
Posted: 10/15/2006, 2:28 AM |
|
Hi,
Is it possible that a variable of translation included in an external file .js, can be interpreted when CCS generates the final HTML page?
For example:
I have the Javascript file sigat_es-VE_25.js.
The file include a line code with " ABC='{rs:CCS_LocaleID}' ", where
{rs:CCS_LocaleID} = 'es-VE'
Mode 1 (Wrong - Don't Work)
In the html file I included
<script language= " JavaScript1.2 " src= " menu/sigat_es-VE_25.js " ... ></script>
If I check the value of ABC then ABC contains {rs:CCS_LocaleID} literally. (Wrong)
Mode 2 (Fine - Work)
In the html file I included ABC = "{rs:CCS_LocaleID}"
Then, if I check the value of ABC, ABC contains 'es-VE'. (Right)
How I can obtain that the Mode 1 works?.
(Sorry for my bad english)
Regards,
Robert.
_________________
Robert Little |
|
|
robertlittle
Posts: 10
|
Posted: 10/15/2006, 3:39 AM |
|
Is it possible that it can be solved using the file "ClientI18N.php"?.
If this is correct, how do I to indicate the file .js?, which is located in the menu directory and not in the root of the website.
Thanks!.
Robert.
_________________
Robert Little |
|
|
jres
|
Posted: 10/16/2006, 1:02 AM |
|
Yes, you can use "ClientI18N.php" but you need to modify this file because it can handle only CCS js-files (due to security reasons).
|
|
|
|