dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Newbie question Bilingual site file setup

  1. #1
    Join Date
    Mar 2004
    Posts
    3

    Unhappy Newbie question Bilingual site file setup

    Hi,

    I want to create a bilingual website.

    I forgot how to structure it

    I guess two copies of the site.. by pressing a language button on the homepage takes you to the other language version of the site.

    What would my file structure look like? so I can organise things on my host... index.html.. etc.

    Help, going crazy.

    Cheers,
    K


  2. #2
    Join Date
    Mar 2004
    Location
    Netherlands
    Posts
    257

    Multi-language

    The only way I know how to do this is by creating two websites.

    You could place on the index.html the selection of the language. By choosing, redirect to the correct site.

    Example directory structure:

    root
    | - index.html
    |
    English
    | | - english site
    |
    French
    | - french site

    JayDie

  3. #3
    Join Date
    Mar 2004
    Posts
    3
    Thanks Jaydie!

    yes I think there is a need to create two websites..


    However I want it to go straight into the website (say the default website www.whatever.com/index) was in French.


    Then you can press a little button (saying english) on the French website and it goes and shows the homepage (english site www.whatever.com/en/index)

    Getting there

  4. #4
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    So what's the problem, just have the english version of the site in your en folder and the french site in your root directory. Alternatively you could use babelfish but sometimes they mess the grammar up. Here is this thread in French.
    Every fight is a food fight when you’re a cannibal.

  5. #5
    Join Date
    Mar 2004
    Posts
    3
    Hi Lavalamp,

    Yes, have the english version in my EN folder and french in root.

    Will have a go!

    Only small worry is if I need to duplicate graphics i.e. graphics for both french root and same graphics in the EN folder.

    Not major.. will trial and error.

    But yes thats the way Lavalamp.

    Just wanted to confirm my thinking was ok.

    Many Thanks.

  6. #6
    Join Date
    Mar 2004
    Location
    The 'Peg
    Posts
    74
    When I developed a bilingual site, I simply added an "_x" with x being either "e" or "f" to denote english or french... so for example... I'd have contact_e.html and contact_f.html

    As long as you follow a naming standard like this, you shouldn't find any problems... and this could also go for the naming of your gifs. Then you wouldn't need 2 folders... you could have all your files in one folder that accessed just one image folder, therefore eliminating the need to copy your gifs. If your gifs contain text, label them as such... clickme_e.gif and clickme_f.gif

    Just a little thing I used and it worked out well... Hope this helps!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles