Hi Henk,

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.

Why? Because you're using the standard authentication element and can't switch the template?

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.

Can I get an example of this? This should normally work with RIFE, however it's dependent on the order of processing of your embedded elements. If the language switching element is executed after the rest, the language will only be switched at the next request since it's not able to run the other elements with the other cookie value.

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.

RIFE-258 is currently under implementation in a different branch:
https://svn.rifers.org/rife/branches/i18n/

It's starting to lag behind a bit though, so I really need to take the time to merge the changes into the current trunk. I still have to look through the contribution in detail though before I decide to support it.

Best regards,

Geert

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


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

Reply via email to