MOSSPOINT
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
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
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
it.json
{
token:
{
"Hello": "Ciao",
"Goor morning": "Buongiorno"
}
}
ASKER
Blimey, how does that work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the answer.