thanks all

On Thu, Feb 19, 2009 at 7:05 AM, Thierry bela nanga <[email protected]>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 <[email protected]> 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 <[email protected]> wrote:
>> > Hello
>> >
>> > I have used it, and updated it for 1.2...
>> > Email me ([email protected]), 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 <[email protected]> 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 <[email protected]>
>> 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
>

Reply via email to