i am working on a globalized dotnet web application that makes use of
resource files to show the pages in the several different languages and all
this works just fine, the problem that i am having is i want the user to
enter only a specific language, lets say simplified chinese in the shipping
information page, in a case the user enters any other language, lets sat
english i want to pop up an alert. is there any way to do this?
thanks for your help in advance!
sameer
No. In theory you might be able to separate Chinese from Western-European
languages. But then things get fuzzy.
How do you separate Chinese Traditional from Simplified from Japanese?
How do you recognize Spanish from Italian from French, or Dutch from German,
or Danish from Norvegian?
Question is why do you want the user to enter only a specific language?
What is really the problem? Can't you trust the user if you say on the
page "please only input text in X language"? If you can't, then there is
no way to prevent a malicious user from bypassing whatever you try.
What is the problem if someone uses a different langage?
And even if you (somehow) manage to restrict things as you want, I would
not call that a globalized application. Globalized applications let me
use whatever language I want, no matter the UI (I can create Arabic or
Chiese documentes in a French MS Word, no problem).
--
Mihai Nita [Microsoft MVP, Visual C++]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
thanks
--
MichKa [Microsoft]
Windows International Fundamentals
Blog: http://blogs.msdn.com/michkap
This posting is provided "AS IS" with
no warranties, and confers no rights.
"sameer" <sam...@discussions.microsoft.com> wrote in message
news:BFA6F815-BDBC-4E87...@microsoft.com...
> Every Chinese code page INCLUDES English -- so I too am really unsure
> what this alert is meant to do, precisely?
Well he could use a regex and use the unicode range for every range he wants
to allow. Not the most elegant way (and not easy to create nor to maintain),
but it should work...
Jesse
--
Jesse Houwing
jesse.houwing at sogeti.nl