Hi,

I am trying to make a (small) site bilingual (dutch/french) and along the way I encountered some problems.
This is what I have now :
1) an element LANG_COMPONENT which sets a global cookie 'lang' according to an input value. It shows a template in which the user can choose a language. It has a childtrigger 'lang'. 2) every element that wants to participate in the bilingual site inherits from LANG_COMPONENT. So, if the language cookie is not found (childtrigger not triggered), the language choice template is shown. I just implemented this like the authentication element. 3) in fact, my elements all inherit the authentication element which inherits from LANG_COMPONENT. *Problem* : I cannot show the login page in the choosen language. I read some posts about this in the mailinglist, but found no immediate solution. 4) the last thing missing is to be able to change the language while on the site and thus with the 'lang' cookie already set. I use an embedded element for this with the same logic as the LANG_COMPONENT : show two links with parameter 'lang_id' and call getInput("lang_id") and set the cookie accordingly. *Problem* : if I click this link, the cookie gets set but the page does not change. If I click again, I get the desired result. I don't think I understand why it works like this. It acts like if the page template does not get refreshed interely, only the embedded element. I guess I just don't have enough insight into the working of embedded elements, but if someone has a suggestion...

-> Geert, I know you mentioned the issue RIFE-258 which should solve all this. If there's something I can do to test this patch, let me know how to proceed.

Thanks

Henk
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to