Dynamic translation to various languages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles

    Dynamic translation to various languages

    Hi,

    I'd like to offer 4 versions of my website (3 foreign languages) this way:

    - I want the language to be detected by the browser
    - I want to be able to choose the language I want by one of 4 radio buttons
    - I want dynamic real-time refresh of the whole page to the selected language without the
    page having to refresh
    - I want it to work on IE, Firebird, Mozilla & Opera

    Could some one help me out please?
    Thanks,

    --
    Charles.


  • Lasse Reichstein Nielsen

    #2
    Re: Dynamic translation to various languages

    "Charles" <goatravellers@ yahoo.com> writes:
    [color=blue]
    > I'd like to offer 4 versions of my website (3 foreign languages) this way:
    >
    > - I want the language to be detected by the browser[/color]

    Hard, going on impossible, depending on the browser. Content language
    negoatiation really should happen between the browser and the server,
    where there are protocols for it.
    [color=blue]
    > - I want to be able to choose the language I want by one of 4
    > radio buttons[/color]

    Much easier. Use the onclick event handler on the radio buttons
    to "do something'
    [color=blue]
    > - I want dynamic real-time refresh of the whole page to the
    > selected language without the page having to refresh[/color]

    Are you using "page" and "refresh" in two different meanings her?
    Because you ask for the page to refresh without the page having to
    refresh!

    Do you meant that the page should refresh without reloading?
    (Which would require all four languages to be downloaded at the same
    time, every time a page is loaded. A serious resource drain for people
    who only use one lanugage)
    [color=blue]
    > - I want it to work on IE, Firebird, Mozilla & Opera[/color]

    I would add "and any standards supporting browser".

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Dynamic translation to various languages

      Lasse Reichstein Nielsen wrote:
      [color=blue]
      > "Charles" <goatravellers@ yahoo.com> writes:[color=green]
      >> - I want to be able to choose the language I want by one of 4
      >> radio buttons[/color]
      >
      > Much easier. Use the onclick event handler on the radio buttons
      > to "do something'[/color]

      And don't use it since there is no "translatio n" without client-side
      JavaScript support. Use a server-side script instead, add a submit
      button and pass the selection to the server-side script on submit.

      However, the most simple and scriptless way is a hyperlink to each of the
      versions (`en/English', `fr/Français, `de/Deutsch' aso. -- do *not* use
      flags!). You should combine that with content negotiation. In contrast
      to a document for each language, multiple language versions within one
      script are hard to maintain.


      PointedEars

      Comment

      Working...