21295 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1007 Views |
-
Two Languages Website

5 February 2011 at 6:35am Last edited: 5 February 2011 6:43am
Hi,
I am trying to write condition to check $ContentLocale in order to execute some JavaScript required by page, my website has two languages which is en_US and km_KH. I start with the following code in my template.ss but it was error.
<% control Translations %>
<% if ContentLocale == 'en-US' %>
<script type="text/javascript" src="themes/cambo/scripts/conden.font.js"></script>
<% end_if %>
<% end_control %>I really need help otherwise I can't sleep.
Bunheng
-
Re: Two Languages Website

5 February 2011 at 8:50am Last edited: 5 February 2011 8:52am
<% if ContentLocale = en-US %>
<script type="text/javascript" src="themes/cambo/scripts/conden.font.js"></script>
<% else %>
<script type="text/javascript" src="themes/cambo/scripts/conden.font.js"></script>
<% end_if %>Delete the control unless you do some magical stuff with it.
-
Re: Two Languages Website

5 February 2011 at 3:15pm
Hi,
Thanks for your reply. Now it working fine.
Thanks.
Bunheng
| 1007 Views | ||
|
Page:
1
|
Go to Top |

