Results 1 to 7 of 7

Thread: what is the easyiest wat to coding languga supported web sites?

  1. #1
    Join Date
    May 2004
    Location
    NewYork, USA
    Posts
    175
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default what is the easyiest wat to coding languga supported web sites?

    Hello,
    I want to design a new web site. I am alwasy designing and finishing X language after that conping to another folder and translate to Y language, but this time I will try to develop as coded language support like HELMs language support. An suggestion or code samples for making it easier? I also very wonder if I can write/change this code sentence by session tags.
    if English selected:
    <!--#include file="English.asp"-->

    if German selected:
    <!--#include file="German.asp"-->


    ...

  2. #2
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    The easiest way to do it, is using dictionary files (the new Red Fox sites will use XML dictionaries), then have a common function which does transalation...

    EG - For the opening line of a page:
    Code:
    <%=Translate("Welcome to Red Fox Hosting")%>
    Then your Translate() function would either return the same text if the session is English, or lookup the translation in a dictionary xml/text.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Jun 2005
    Posts
    1,081
    Thanks
    4
    Thanked 15 Times in 15 Posts

    Default

    This is a question you really need to take a step back from before asnswering.

    How diverse does the translation need to be? ie. Is it a dynamic site and translators will access a back end system to translate content? If so you really need to think about this more carefully. If it is simply a one off and you will be translating the innterface then Include files does seem a viable option, although it would be better to pull in XML files (or other files used as resource files).

  4. #4
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    You could always provide a link to the google translation services as google will translate pages between many languages on the fly pretty well. It's nothing compared to manual translation, but it is worth a thought. Here is the Refox home page in Spanish as an example.

  5. #5
    Join Date
    Oct 2005
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just watch out - all dynamic language translation causes a performance overhead so if you have a high traffic site, it's better to have two identical pages with static text translated in them and stick them in different directories:

    /en/default.asp
    /de/default.asp

    etc.

    Keep your logic and presentation VERY separated when you do that so you don't have to change two loads of logic every time.

    My ex company's portal system used a VB app to generate asp pages and upload them (ugly but it worked).

  6. #6
    Join Date
    Feb 2004
    Posts
    4,901
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Helm does its translations with an XML dictionary like I said above, albeit the dictionaries are loaded into memory on application load - still surprisingly fast though
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  7. #7
    Join Date
    May 2004
    Location
    NewYork, USA
    Posts
    175
    Thanks
    25
    Thanked 0 Times in 0 Posts

    Default

    thankx every one for your comments and suggestions much appreciated.


    cswd - I've tried this before, but if site content is bigger it wastes too much time to update when needed, this time I'll try to work on XML as Warrens suggestion, however I dont know how to use it I'll ask google of course

    Sol - Yeah first it will be dynamic page with asp but I will be translating the interface, may be I can develop more complex in the future... thx.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. .ashx Not supported
    By Tanzy in forum Sales and Service Feature Enquiries
    Replies: 11
    Last Post: 8th November 2005, 02:58 AM
  2. Python 2.2 Supported?
    By jaimalchohan in forum Sales and Service Feature Enquiries
    Replies: 1
    Last Post: 29th October 2005, 08:48 PM
  3. Freelancer sites
    By AndyHearne in forum Garble
    Replies: 1
    Last Post: 11th October 2005, 07:20 PM
  4. tutorial sites
    By AndyHearne in forum Development Support
    Replies: 2
    Last Post: 19th April 2005, 06:45 AM

Bookmarks

Posting Permissions

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