Dear apex-colleagues,
I'm currently developing an application in 2 languages. So the application is developed in Dutch, but there is a possibility to change the language to French. I've used the apex translation features to create a translated app.
For switching from Dutch to French (or vice versa) I have added two buttons on the Navigation bar. One called “Nederlands” (dutch) and one called “Francais” (french). These items both have Target “page in this application”, with &APP_PAGE_ID. as the targeted page. I'm also settings 2 variables (FSP_LANGUAGE_PREFERENCE and AI_APP_LANG) with the needed values.
Afterwards, I have an application process which runs “On Load: Before Header”:
begin
owa_util.redirect_url('f?p='||:APP_ID||':'||:APP_PAGE_ID||':'||:APP_SESSION);
end;
(with condition type => Request = Expression 1, and using the correct request name)
The good news is, this works. This was “copied” from another application where this also works. The bad news is that we have to click twice before it actually translates the page. I believe the page is rendered before the translation is applied, but I'm not sure why. I've tried comparing this app with the other app where it works, but I don't see any differences. Is there something wrong here? Any ideas?