Commit Graph
21 Commits
Author SHA1 Message Date
Santhosh Thottingal 964f508533 onSelect callback option for ULS
* Correct the dependencies for ext.uls.core, it need not depend on
mediawiki.Uri.
* Move the setlang function out of ULS core js.
* Add a callback function to the example.

Change-Id: Ie3598236b2a884580092194c57558ec109d20803
2012-07-23 17:42:00 +05:30
Santhosh Thottingal b1b7c2feb3 Use grid based css design (made css resets local)
Introduced foundation based grid css
Related changes in example, template html

Change-Id: I8b1c1bae1c733ea0ed997d8317b9954592cf6eca
2012-07-23 16:49:00 +05:30
SanthoshandGerrit Code Review 27f9adcc15 Merge "Fix the location of America and Asia in RTL languages" 2012-07-19 11:14:51 +00:00
SanthoshandGerrit Code Review e4cd473337 Merge "Enable syntax highlighting inside heredoc" 2012-07-19 11:10:32 +00:00
Santhosh ThottingalandGerrit Code Review c926a4e3ff Merge "Fix the wrong license header from Ie0480019" 2012-07-18 12:46:18 +00:00
Santhosh Thottingal 99336b1e62 Fix the wrong license header from Ie0480019
Change-Id: I518f638b7a0729ad364e6547ee777419de4d4b4f
2012-07-18 17:34:38 +05:30
Santhosh Thottingal 493cfbe2c4 Fix the search icon location in search field.
Change-Id: Ib6253e6a002e02f0b04bce3b31220809ffea79d9
2012-07-04 12:02:16 +05:30
SanthoshandGerrit Code Review 3c32f82cef Merge "Filter out unknown languages." 2012-07-03 14:52:59 +00:00
Santhosh ThottingalandNiklas Laxström 5625f6eb70 Misc UI fixes
* Fix the columns breaking when language name breaks to new line
* Fix the Map highlighting when no region id in viewport.
* Correction of color codes, margins according to design.

Change-Id: I0121de92bdf5340bf2365c3b7d6045ef963e6d2a
2012-07-03 11:46:46 +00:00
Santhosh ThottingalandNiklas Laxström 566651b9f6 Fix the language display scroll sync with regions map
* Remove jquery.viewport which was not able to give correct viewport
relative to container.
* The scroll syncing part is written by Niklas

Change-Id: I1cbeaa2a5c297deab7338f331d8db69c17aa2214
2012-07-03 11:15:34 +00:00
Santhosh Thottingal 851d07dd8c Correct the naming of region and region groups
Change-Id: I857178bc9f830e1ecee7c34541ebab3fbbe95fbd
2012-07-03 10:23:10 +05:30
Santhosh Thottingal a45b43af7b Update the examples with the latest version of source.
Change-Id: I74c1761582ea07c63f558820afc69615047b973c
2012-07-02 10:38:23 +05:30
Santhosh Thottingal 7a9b801a79 Introduce Language Category Display (LCD)
Introduce $.fn.lcd - displaying languages by categories.

Added the jquery.viewport.js module by Mika Tuupola (MIT license).

More tests for language utils.

Change-Id: I804b6da8ab0a2d518e17ae8bbd35e1c1da4bab3f
2012-07-02 10:20:16 +05:30
Santhosh Thottingal 7d899696d0 Standalone html page with ULS
Demonstration of ULS jquery plugin.

Change-Id: I425ffec9efe664cc91a0a3b8c9f79bd06d56abb5
2012-07-01 21:12:10 +05:30
Santhosh Thottingal f71174a02e Remove the dependency on jquery.ui.autocomplete
Implement the search functionality in the module itself.

Change-Id: I2193e3f92fc21c90bbcc163c38affa8fb1ffa406
2012-07-01 20:32:39 +05:30
Santhosh Thottingal 666bec2633 Smart search for the languages
A search match happens if any of the following passes:
a) Language name in current user interface language
   'starts with' or 'contains' search string.
b) Language autonym 'starts with' or 'contains' search string.
c) ISO 639 code match with search string.
d) ISO 15924 code for the script match the search string.

Change-Id: I7690f06423c931fade3bee1da3a445b4b586e13c
2012-06-30 17:53:21 +05:30
Santhosh Thottingal 720a3f3885 Add autonyms to language database
Change-Id: Ifad5721485634142505a37ba00ca68c744781103
2012-06-30 17:20:07 +05:30
Santhosh Thottingal a759f0ecbe Introduce regionfilter
RegionFilter is a basic jquery plugin to work with ULS
to select languages based on regions.

PS2: Added a css class for elements with regionfilter.
Used it for visual indication of selection. Plus some
clean up.

Change-Id: Ib01b4077435f98665075310e285e68f8538eeb4e
2012-06-26 16:53:15 +05:30
SanthoshandGerrit Code Review 2fd23fe2e0 Merge "Focus the search field by default" 2012-06-22 10:08:11 +00:00
Santhosh Thottingal 9087825e6d Basic language selector
* uses setlang attribute in URL to switch language
* introduced a language filter widget by extending
  jquery.ui.autocomplete
* UI rendering is done by using SkinAfterContent hook

Change-Id: Ifa63a04ba1d060b6db8fba14bb868045cf6b97c3
2012-06-21 20:08:47 +05:30
Santhosh ThottingalandAmir E. Aharoni 8527e33475 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
2012-06-15 10:49:18 +03:00