Quote from: ProWebscape at Jun 29, 2006, 12:45 AM
Wendy,
One question with your solution. Where did you set the $lang? Did you create a snippet/TV/form?
Thanks,
Chuck
Lets take an example with [*content*].
The solution will always assume that the default language is inside document variable content. The solution will not care about what language is inside of that document variable, so you need to set your own best practices to always assume that the default languaue is always be english or other language that you choose.
Now whenever you put ?lang=en or ?lang=fr in your address, the solution will store that configuration in the system. So whenever a user requested a new page, the system will try to look for the language translation such as [*content_en*] or [*content_fr*]. If the current document variables/template variable is not accessible or it’s empty, it will revert back to [*content*] instead.
That’s the whole concept of the solution. A pretty straight forward solution that serve well on my current site.
Sincerely,
Wendy Novianto