I wrote up one possible technique a while back: http://weblogs.macromedia.com/mchotin/archives/2005/01/localizing_vali.cfm

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of r_woess
Sent: Wednesday, November 02, 2005 11:56 PM
To: [email protected]
Subject: [flexcoders] Multilingual Messages in Validators

 

Hi,

my Application is multilingual. So I tried to set errormessages in all
validators by databinding.

Here you can see a simple example.

...
var tooShortErrorMessage:String="Test Message";
...

...
<mx:StringValidator field="myModel.id" minLength="9" maxLength="20"
tooShortError="{tooShortErrorMessage}"/>
...

If the tooShortError occurs, I always get the Message "This string is
shorter than the minimum allowed length" instead of "Test Message".

Can anybody tell me, how I can customize the messages?

best regards
Reini






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS




Reply via email to