Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Restrict user entry to a certain language only like Chinese

0 views
Skip to first unread message

sameer

unread,
Jan 23, 2009, 11:49:02 AM1/23/09
to
Environment : Visual Studio 2005/ .Net platoform 2.0
Database : sql server 2000

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

Mihai N.

unread,
Jan 26, 2009, 1:39:29 AM1/26/09
to
> 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?

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

sameer

unread,
Jan 26, 2009, 11:23:01 AM1/26/09
to
totally agree with you on all counts, i wanted to pop up an alert in case
they enter in any other then simplified chinese language. Reason why i need
that is because the shipping information should be in chinese only for the
chinese postal system to ship the product. any input is appreciated

thanks

Michael S. Kaplan [MSFT]

unread,
Feb 22, 2009, 10:24:41 AM2/22/09
to
Every Chinese code page INCLUDES English -- so I too am really unsure what
this alert is meant to do, precisely?


--

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...

Jesse Houwing

unread,
May 12, 2009, 10:16:27 AM5/12/09
to
Hello Michael S. Kaplan [MSFT],

> 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


0 new messages