2 replies [Last post]
TheApprentice
TheApprentice's picture
User offline. Last seen 43 weeks 6 days ago. Offline
newbie
Timezone: GMT-4
Joined: 2010-08-16
Posts: 8
Points: 13

Hi guys,

I need pointers on how to develop a bilingual site using either html, CSS, Javascript, or a combination of the three.

Here's what I have done so far:

1- I have an index files which contains an iframe. The purpose of the index file is to provide a static template, a frame, for a title bar, navigation and footer. One index file is in French, the other in English (index-e, and index-f).

2- I created several html files (in connection with the menu topics in the navigation bar) to be loaded and targeted at the iframe within the index file.

I need to be able to switch the iframe content from topic to topic (which is easy) AND from french to English for the same topic, at the push of a button.

The issue I have is this: if I put that button on the navigation bar, it will only switch language at navigation bar level (i.e the index file). If I put that button within each html file fed to the iframe, content will switch language but the navigation bar in the index will not follow.

In other words, if I switch topic within the same language, it works fine, but if I switch language for a specific topic, I cannot get the index file to switch language too. Do you understand?

I am looking for a way to let the index file know that a topic is now in a different language and the content must be loaded in that new language`s index file. Any pointers? It seems I will need some programming to achieve the result I want and I am a beginner programmer. Any simpler workaround or code I could find somewhere to help?

I dug the the internet and that site for a while but cannot find anything really useful.

Thanks a million in advance.

Tony
Tony's picture
User offline. Last seen 50 min 39 sec ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3805
Points: 1240

Have you thought about using

Have you thought about using PHP (or something similar) instead of iframes?
I'm not a big fan of iframes and avoid them where possible.

Normally what I would do is use php to include the separate parts of the page ( menu, content, footer etc).

If you want to keep doing it as you are, then you could use different directories to contain your content, eg. en/ fr/
and use JavaScript to take control of the language switch.

Your question may have already been answered, search and read before you ask.

TheApprentice
TheApprentice's picture
User offline. Last seen 43 weeks 6 days ago. Offline
newbie
Timezone: GMT-4
Joined: 2010-08-16
Posts: 8
Points: 13

Thanks

Unfortunately, I am not sure that I can use php. This is a work-based assignment and an internal site which will be available through sharepoint (which I know nothing about). My boss told me to stay away from server side languages. So I need to keep going with frames which will work through the company as all the computers are set up the same.

If you can send me to a useful link for the javascript programming of this particular application that would be great (asp.net possibly?). Otherwise, thanks anyway as I can now go forward. Smile