Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Load javascript depending on browser language

chrissy2Nov 16 2007 — edited Nov 23 2007

Hi,

I've a javscript file for every page. In this file some values for select list and error messages are set.
I load the javascript with

<script type="text/javascript" src="#IMAGE_PREFIX#GGB/SCRIPT/F104/P1.js">

I would like to have for every language of my application a own javascript file
i.e. P1_en.js, P1_de.js, P1_fr.js loaded.
How can it be done that P1_de.js is loaded if browser language is "de".
I thought about the possibility to do this with application translation. Because when I translate an application I create somehow a new one with another id, can I anyhow access these applications and change the script-tag in the pages?
Or do I have to change the script-tag in the main application and then apply the language file and publish it. Will this work?

Thanks
chrissy

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2007
Added on Nov 16 2007
2 comments
554 views