DRAFT
Some languages don't yet have autonyms, but probably all languages should
have them. It currently fails, because there are many such languages and
I am not aware of a nice way to skip it in QUnit (there is a proper skipping
mechanism in Perl testing, for example).
Also change orphanScripts() to return all scripts without groups.
Change-Id: I21c13d7bba89f3b991bc340e6ff6e040c704beb8
* if the search string is language code, select it
* else if the autocompletion available select it
* else select the first language matching the query
Change-Id: If66f5c547a471026b7b2aebcde3c3b056e1c2917
There are languges starting with those letters, but without autonyms
Add a null check for undefined autonyms to prevent js error
Change-Id: I88a1d79b3bb23beac7238c1e8817cd6eac614613
Added a utility callback function to sort languages by autonym.
Added CSS fix for group separatos.
Change-Id: I73c7c6518a85e4ea7999be3ef92a121e877610e8
* Do not hit search API if there are results to show from front end
* Avoid the lcd exists check
* slightly reduce the timeout of search term typing
* show autofill for search api results too.
* correct the tooltip text of results.
Change-Id: Id102fbf3bc09eb926d9e36f125ed6291943007f9
* Introduce Levenshtein algorithm
* New API param 'typos' to give number of typos allowed
* test cases
Change-Id: I22bf34d08a910d1509d7eab5adc292eadc9a7c7d
* Seperating standalone jQuery ULS plugin and extension related code
* lib/jquery.uls can be submodule, but not now.
Change-Id: I7d9cb47daa88dd1a27ceda602a08cab0073caf33
Adjusting typographic properties to avoid them to be overriden when
the ULS is integrated in a different project
Change-Id: I85fc855c80d170bbfe62cc72bb917b737f2b3b1d
* use setlang parameter to change language preference
* language preference will be persistant for all users
* for anonymous users, cookie 'language' will be used
* for logged in users, preference 'language' will be used
* uselang parameter can be used for temporary switching
* language codes will be sanitized.
Change-Id: I2472aee9a7dcd824b622edd38e83f20212f09945
Avoid calling the search for each keypress. It will make
browser unresponsive. Call search on timeout. That is when
user stops typing for 500 millisecond
Change-Id: I93a0e5c5d1035463be9a25047134b042f6743fb8
Provide atocopletion capabilities to the search box: showing the remaining
part of the matching element and allow user selection with keyboard.
Change-Id: Ic591c3c87632fb56af16b9b15ecedbf9558d674a
Provide a view showing:
- A feedback message where the current search term is displayed.
- Suggested options: based on likely languages and languages with one
additional level of editing distance than the used in the search algorithm.
- Instructions for search and browse including links to all the sub-regions
available.
* Introduced success, noresults callbacks for language and region filters
* Region filter can be a link for a region alone.
Change-Id: I713b62911bb32e1b1427320ced767b144180c5c4
* 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
Non-ASCII characters broke the functionality.
Saving as UTF-8 fixes this.
Also removed an unneded <?php statement from a JS file and replaced
non-ASCII pretty apostrophes with straight ASCCI.
Change-Id: Ic6719fe0863bc5d8ae19abbf01cfbb7b2b714f12