SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb 'multiple languages'- module in JavaScript

    anyone experience in writing multiple language JavaScript application for the Internet. I can only use client-based code -- no PHP/MySQL , ASP etc....

    I'm thinking in the following direction:
    to store the different translations in extended arrays and pull them in the application based on a var.

    good or bad idea?

    Thanks Wouter -- Belgium

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The stored db would be too big.

    You'd need to use a server side database at the very least, and connect to it through ADO ... which would mean an ie only app.

    Failing that you will have to use server side languages.

    I've written something to handle this clientside before in Mason.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    negative -- only javascript, HTML, DHTML, etc... = client code + compatible with IE and Netscape.

    my clients have no DB (SQL), etc.. -hosting capabilities

    anyway thanks for the input
    from sunny Belgium

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the extent you want to translate to ?

    * is hatching a theory *

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  5. #5
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the purpose is mainly

    button text, form elements + alert messages translation


    What is hatching?

    Thanks --

  6. #6
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah - just use a set of JS files as libraries with arrays for handling.
    OR if size isn't an issue - an array of arrays in one file.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •