Note that MooTools -more will soon be getting a form validator of it's own. It has already been translated into 15 languages.
On Thu, Feb 19, 2009 at 6:35 AM, Itay Moav (via Nabble) < [email protected]<ml-user%[email protected]> > wrote: > thanks all > > > On Thu, Feb 19, 2009 at 7:05 AM, Thierry bela nanga > <bna...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=0> > > wrote: > >> I just want to add something about translation, >> I have a very simple way to handle it, I use a Hash, >> >> var Language = $H(); >> >> var English = {key1: "value1", key2: "value2", ...} >> var French= {key1: "value1_fr", key2: "value2_fr", ...} >> //switch to english >> Language.extend(English); >> >> //switch to french >> Language.extend(French); >> >> >> in my classes I just use Language.get(key) to output any text >> >> >> and it works fine. >> >> >> >> in my real use, I dont use objects (English, French) like in the example >> but I generate hash values with the cms current language (here is the joomla >> code) >> >> //php >> $lang = array() >> >> foreach(array( //list of keywords here ) as $k) >> //get the translation >> $lang[$k] = JText::_($k); >> >> and then I extend the language hash on the fly >> >> Language.extend('.<?php echo getJSObject($lang); ?>.'); >> >> where getJSObject is a function that takes an array and return a >> javascript object, a king of json encoding :) >> >> >> >> - cheers >> >> >> >> >> On Thu, Feb 19, 2009 at 12:39 PM, Lennart >> <lenn...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=1> >> > wrote: >> >>> >>> Or you can check it out here: >>> http://pilon.nl/mootools/2008/11/28/hefvalidator-for-mootools-12/ >>> >>> Updated to 1.2 and with multi-language support. >>> >>> LP >>> >>> On Feb 19, 10:25 am, ryan >>> <rtnetwo...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=2>> >>> wrote: >>> > Hello >>> > >>> > I have used it, and updated it for 1.2... >>> > Email me >>> > (r...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=3>), >>> and I'll send you the code (or you can >>> > ask me whatever problems you are having). >>> > >>> > Ryan >>> > >>> > On Feb 19, 2:30 am, Itay Moav >>> > <itay.malimo...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=4>> >>> wrote: >>> > >>> > > thanks, >>> > >>> > > I will certainly review this code, but for the sake of healthy >>> competition, >>> > > be happy if someone who used FValidator with moo 1.2 with no >>> problems and >>> > > could tell about this. >>> > >>> > > I M >>> > >>> > > On Wed, Feb 18, 2009 at 9:14 PM, Frank Rossi >>> > > <fr...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2353296&i=5>> >>> wrote: >>> > >>> > > > You can use FormCheck, which is great! >>> > > >http://mootools.floor.ch/en/index.htm >>> > >>> > > > moo, too >>> > > > Frank >>> > >>> > > > On Wed, 18 Feb 2009 19:42:58 -0500, Itay Moav wrote: >>> > > > > Moo >>> > >>> > > > > Did anyone use FValidator with mootools v1.2+ (as it says in the >>> site >>> > > > > it is build on 1.1)? >>> > > > >http://zendold.lojcomm.com.br/fvalidator/ >>> > >>> > > > > I M >>> >> >> >> >> -- >> fax : (+33) 08 26 51 94 51 >> > > > > ------------------------------ > View message @ > http://n2.nabble.com/Any-experience-with-FValidator-in-mootools-1.2%2B-tp2350345p2353296.html > To start a new topic under MooTools Users, email > [email protected]<ml-node%[email protected]> > To unsubscribe from MooTools Users, click here< (link removed) >. > > > ----- The MooTools Tutorial: http://www.mootorial.com www.mootorial.com Clientcide: http://www.clientcide.com www.clientcide.com -- View this message in context: http://n2.nabble.com/Any-experience-with-FValidator-in-mootools-1.2%2B-tp2350345p2354634.html Sent from the MooTools Users mailing list archive at Nabble.com.
