Sorry, but I'm still confused.  If the person in Texas wants to see his/her
pages in Spanish, then the zipcode etc that you would enter in a form could
be displayed/entered in any of the following Locals:
1) ES_us
2) ES_es
3) ES_other
etc....

If you are going to offer the option of entering zipcodes in a "USA" style
but the display language is Spanish, you will have to let the user choose
their language and location, just like they do in Starmedia and Terr.  That
means that you make a local for them.  How you do this is another story, as
I would vy for some kind of inheritance with the Language being first, and
the Location being and overridable subclass.


----- Original Message -----
From: "Ted Husted" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 12:12 PM
Subject: Re: Client/Server Side Validation for Struts 1.1


> We're not only talking just about language now, we're talking about
> validating things like telephone numbers and postal codes based where
> the user is located, regardless of what language they prefer. Michael's
> example was a Spanish-speaking resident in the US, who might be in the
> ES locale as to language, but would be in the US location as to
> telephone and postal code. I run into this myself, since we are on the
> Canadian border. We share the same telephone format but different postal
> codes. So, during validation we need more granularity than what is
> usually associated with locales.
>
> Perhaps some applications need two "locale" settings, one for language
> preference and another for location, and our validation routines may
> need to be written to recognize that.
>
> Jonathan wrote:
> >
> > I am still confused as to why this is all an issue if the user can
select
> > the languange of their choice.  If it is an automatic thing, like if the
> > server is reading the preferred language strings in the header, then
maybe
> > you have an issue becuase the Local is not selected by the user.  It
boils
> > down to what language the user wants to see the pages displayed in.
Check
> > out the following sites: www.terra.com www.starmedia.com
> > http://www.dgolpe.com In each case the user SELECTS the language of
choice.
>

Reply via email to