SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot kozata-xakep's Avatar
    Join Date
    Feb 2008
    Location
    Varna, Bulgaria
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question JS for translations ?

    Hi there,

    I got a site only with one language. After a full exam of the site analysis I saw that many non-local language users are browsing the site. Is there any script for translation a web page by button or with automatic detection ?

    Thank you in advance !

    - The goat
    Last edited by kozata-xakep; Aug 25, 2008 at 04:24.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Google has a translate gadget that you can add to your page.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Zealot kozata-xakep's Avatar
    Join Date
    Feb 2008
    Location
    Varna, Bulgaria
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, but the drop-down menu is not in the style of my site.

  4. #4
    SitePoint Zealot kozata-xakep's Avatar
    Join Date
    Feb 2008
    Location
    Varna, Bulgaria
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any other ideas how can I translate all my web pages ?

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    None as good as using the translate gadget.
    It's relatively easy to change the style of the select box to match its environment
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Zealot kozata-xakep's Avatar
    Join Date
    Feb 2008
    Location
    Varna, Bulgaria
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, that gadget is a google script. How can modify it's content e.g I want to change the color of that select menu?

  7. #7
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You can follow the code to http://www.gmodules.com/ig/ifr?url=h...e=&border=
    , copy out the parts of code that you need, and style them to fit.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •