Hi Geert,
Geert Bevin wrote:
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
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?
yep. The name of the template is set in the xml file describing the
element. Is there another way ? I just followed the docs.
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.
The thing was that I used exit urls on which I appended a language id.
But these exits pointed to the LANG_COMPONENT (top of the hierarchy)
because there was no way to know which child was active. Actually I
solved this by using the exit activation and callbacks in my element.
You know, I'm still learning and didn't know about this feature. So now
I use a form with a dropdown box and use callbacks.
-> 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.
OK. If I can do the login page, I'm all set. Happy to inform you this
will be most probably used by the meteorological institute of belgium
(KMI) for some subsite. If we can get the hang of Rife, maybe we could
use it as the de facto solution for our web apps.
Bye and thanks a lot for your help,
Henk
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users