Re: HMI: Making the Browser SCADA Multilingual (Philip S Tellis)
You're reinventing the wheel man. These things already exist. There
are already 2_2 language codes for all languages, and html has a lang
attribute for all tags. So, your html would be something like this:
<html lang="en"> .....
and so on.
Alternately, servers could have content negotiation, based on the
Accept-language: header sent by the browser. I won't go into this now.
the 2_2 codes are of the format:
two letter code for language, optional underscore and two letter code
en -> english
en_US -> us english
en_GB -> brit english
pt -> portuguese
pt_BR -> brazilian portuguese
you get the idea I hope. I don't recall where you can get the full list
of language codes, but it's out there somewhere.
All you have to do, is get your browser to support it. AFAIK, all other
browsers already support it.
Thanks for the reply,
But I believe that the language code as on date only signifies the character
presentations. In case i type "How are you" and the user has a devanagari
operating system, it helps in him seeing it as "How are you"
But by langcodes, when i type "How are you", the code is passed to the user
and he sees it as
"AAp kaise hain" in devanagari script.
In other words, the entire text gets translated in phrases.
Similarly when he types, "main acha hoon", the english initiator of the message
sees it as "I am well".
I don't think, this can be in any way reinventing the wheel.
But such a scheme will facilitate communications in the internet without
any language barriers.
You can put up your website in english and a chinese person who only knows
chinese or an arab who only knows arabic or a Indian who only knows hindi
or gujarathi or marathi, can see the contents in his native language.