MooTools now a little dearer


Yoo-hoo. guys! Finally happened what everyone was waiting for! MooTools has become closer to all people badly knowing English! The authors localized it in many languages and you can use any of them that is closest to you.

Sure, it's a great step into the future. The threshold of entering the JavaScript programming significantly decreased.

Now you can write in Italian:

the
Element.impostaStile('colore', 'rosso');


Use British English instead of American (and you are confused how to write 'colour' or 'color'? I think it's absolutely will remove confusion)

the
Element.setStyle('colour', 'red');


And, most importantly, I can now program in Ridniy movi!

the
Element.vostanovitel('color', 'Chervoniy')


Below there are extended examples, and the link you will find that they work just fine and that's really what we've been waiting for. Just press play:


Dutch:
the
Locale.use('nl-nl');

venster.gebeurtenisToevoegen('domklaar', function(){
var  element  = nieuwElement('div');
element.injecteer(document.body);

element
.zetStijl('kleur', '#ff0')
.zet('tekst', 'Hallo, hoe gaat het?');

[1, 2, 3].elke(function(waarde, index){
console.log(waarde, index);
});

Array.van($$('p')).elke(function(element){
element
.zetStijl('achtergrond', '#ddd')
.zetStijlen({
hoogte: Nummer.willekeurig(30, 50),
breedte: '50%'
});
});

});


Ukrainian:
the
Locale.use('uk-UA');

vikno.datatyped('sale', function(){
$$('#from Ukraine')
.vostanovitel('background', '#00f')
.vostanovitel('color', '#E8F000')
.ustanoviti('text', 'from Ukraine');

var element = new Element('div');
element.vkljucitev(document.tlo);

element
.vostanovitel('background', '#E8F000')
.vostanovitel('color', '#00f')
.ustanoviti('text', 'z Ukrainy');

[1, 2, 3].cutaneous(function(digit, index){
new Element('p').ustanoviti('text', number + '' + index).vkljucitev(document.tlo);
});

//$('bla').ocistiti();
console.to Vijesti('zakonchili');
});


German:
the
Locale.use('de-DE-GROß');

FENSTER.FÜGEEREIGNISHINZU('domverfügbar', function(){
var element = NEUESELEMENT('div');
element.EINFÜGENIN(document.body);

element
.SETZESTIL('farbe', '#ff0')
.SETZE('text', 'Hallo Welt!');

[1, 2, 3].ALLE(function(value, index){
console.log(wert, index);
});

});
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Monitoring PostgreSQL + php-fpm + nginx + disk using Zabbix

Templates ESKD and GOST 7.32 for Lyx 1.6.x

Customize your Google