optron
Posts: 114
|
| Posted: 11/07/2006, 9:34 PM |
|
Does anybody have (can e-mail me) simple one table aplication which allows to switch languages ? Seems like few people have done that in the past and this would save me some time and scratchng the head. THANKS - Arthur
I think this sould be part of ExamplePack, but since it is not perhaps someone can share it
_________________
==============================
don't forget to check: www.youngliving.us
use: 739947 to register |
 |
 |
Oper
Posts: 1195
|
| Posted: 11/10/2006, 8:29 AM |
|
to any aplication just past a new parameter only 1 time
myprogram.asp?locale=en
or
myprogram.asp?locale=en
(For Spanish)
you dont have to do anything else.
http://www.GlobalDevelop.com
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
optron
Posts: 114
|
| Posted: 11/16/2006, 10:29 AM |
|
Quote :to any aplication just past a new parameter only 1 time
I'm quite confused about that.
I assume I need to create aform to select language. So let's say I have a drop down with 3 languages to select: EN, FR and ES
Quote :myprogram.asp?locale=es
do I need put this code in SERVER/OnClick event ?
Arthur
_________________
==============================
don't forget to check: www.youngliving.us
use: 739947 to register |
 |
 |
Rene S
|
| Posted: 11/16/2006, 12:38 PM |
|
Hi Arthur,
Search for "session" in CCS help, then choose: Internationalization and Localization of Web Applications
Should be easy....
Rene
|
|
|
 |
Oper
Posts: 1195
|
| Posted: 11/16/2006, 6:58 PM |
|
Exactly optron
what i do is set a flags somewhere then whne people click i call those parameters just one time for Cookies.
Also for user Intranet app i just save the Language so whne they coem back and log use last used language.
Quote optron:
Quote :to any aplication just past a new parameter only 1 time
I'm quite confused about that.
I assume I need to create aform to select language. So let's say I have a drop down with 3 languages to select: EN, FR and ES
Quote :myprogram.asp?locale=es
do I need put this code in SERVER/OnClick event ?
Arthur
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
robertmann
Posts: 109
|
| Posted: 11/17/2006, 2:09 AM |
|
Ah, figuring these things out is all the fun we (developers) get some days Here's a simple solution. Create a listbox without a form and leave most of the properties untouched except for the following:
Data Source Type: ListOfValues
Data Source: en;English;fr;French;es;Spanish
Default Value: CCGetSession("lang","")
Then add the following custom code into the on change (client) event:
window.location.href = location.href.split('?')[0] + "?lang=" + this.value;
That's about it.
_________________
Robert |
 |
 |