Link to home
Start Free TrialLog in
Avatar of MOSSPOINT
MOSSPOINTFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Supporting multiple languages in HTML web application using defines

Hi,

I'm redeveloping an application written in php with just HTML and javascript using a bootstrap template and sql server back end.

Each HTML pages needs to be supported in different languages including Right to Left ones and UTF8 encoding.

My question is can I have one set of HTML pages with defines that get replaced depending on what language is required?

Does anyone know how best to achieve this without duplicating every html page in every language?

Thanks
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

I use this jquery plugin: https://github.com/irrelon/jquery-lang-js
It doesn't use defines, but json files where you have to write translations a value-pairs:

it.json
{
   token:
   {
      "Hello": "Ciao",
      "Goor morning": "Buongiorno"
    }
}

Open in new window

Avatar of MOSSPOINT

ASKER

Blimey, how does that work?
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the answer.