Skeleton extension for Universal Language Selector

* Basic extension code with i18n
* Adds a link to personal links to trigger ULS
* Core uls javascript code, to plug to the given trigger.
* Qunit, PHPUnit framework in place.
* and lot of TODOs and FIXMEs

Patch set 2:
* A tiny whitespace fix.

Change-Id: I300647a21e0b7f65b7d9dc6101014ea9389c9f2a
This commit is contained in:
Santhosh Thottingal
2012-06-14 18:28:42 +05:30
committed by Amir E. Aharoni
parent 237820113d
commit 8527e33475
11 changed files with 326 additions and 0 deletions

14
resources/ext.uls.init.js Normal file
View File

@@ -0,0 +1,14 @@
/**
* ULS startup script
*/
( function( $ ) {
$( document ).ready( function() {
/* Create a trigger somewhere in the page.
$trigger = $("<a href='#'>")
.addClass( 'uls-trigger' )
.text("English"); // FIXME proper trigger text to go here.
$('#mw-head').append( $trigger );*/
// Bind ULS to the trigger.
$('.uls-trigger').uls();
} );
} )( jQuery );