Commit Graph

1633 Commits

Author SHA1 Message Date
Nikerabbit
8925d872f4 Merge "Fix issue : Undo language tooltip present in all pages" 2012-08-07 13:06:03 +00:00
Santhosh Thottingal
315d529aed Handling enter key in language filter
* 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
2012-08-07 18:13:27 +05:30
Amire80
a7d3479d81 Merge "Implement visual language grouping in ULS" 2012-08-07 10:59:15 +00:00
Santhosh Thottingal
a9e49acf79 Fix issue: search strings like 't', 'a' are not giving results
There are languges starting with those letters, but without autonyms
Add a null check for undefined autonyms to prevent js error

Change-Id: I88a1d79b3bb23beac7238c1e8817cd6eac614613
2012-08-07 16:22:38 +05:30
Santhosh Thottingal
b42728334b Fix issue : Undo language tooltip present in all pages
Show only in next page after language change.

Change-Id: I044001366328c7a87af6c0f274d9372a9211818c
2012-08-07 15:23:30 +05:30
Santhosh Thottingal
1a10318acb Implement visual language grouping in ULS
Added a utility callback function to sort languages by autonym.
Added CSS fix for group separatos.

Change-Id: I73c7c6518a85e4ea7999be3ef92a121e877610e8
2012-08-07 13:42:20 +05:30
Niklas Laxström
13403af261 Fix the map in RTL, again
Change-Id: Idde206fd968757cacf778ba41140b99e7f322cc7
2012-08-07 06:41:14 +00:00
Santhosh Thottingal
fc5c291536 Do not perform full search on page load
Do it on first click.

Change-Id: I403aef108cf5d4993f6e8fbc9ebf372893e48e3d
2012-08-06 14:20:32 +05:30
Santhosh Thottingal
12d947860a Fix a regression - region filter not working
Change-Id: I13261b96e75de601720f58eb3c045447034dd7b0
2012-08-06 12:32:41 +05:30
Santhosh Thottingal
16c82503fb Misc. performance tweaks
* 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
2012-08-04 11:30:37 +05:30
Reedy
8813bddbba Half the size of the png files (yay for lossless compression)
Change-Id: I99a32a73549cc9b57a45758551e141734386e96f
2012-08-03 13:33:09 +01:00
Santhosh Thottingal
76f9038aff Allow typo in search key
* Introduce Levenshtein algorithm
* New API param 'typos' to give number of typos allowed
* test cases

Change-Id: I22bf34d08a910d1509d7eab5adc292eadc9a7c7d
2012-08-03 07:33:12 +00:00
Santhosh Thottingal
878313d2ec Rearranging Files
* Seperating standalone jQuery ULS plugin and extension related code
* lib/jquery.uls can be submodule, but not now.

Change-Id: I7d9cb47daa88dd1a27ceda602a08cab0073caf33
2012-08-03 12:24:04 +05:30
Santhosh Thottingal
96304a6d22 Merge "Undo feature for language selection" 2012-08-02 15:22:37 +00:00
pginer
7ab7c826c5 ULS headings font and spacing fixes
Adjusting typographic properties to avoid them to be overriden when
the ULS is integrated in a different project

Change-Id: I85fc855c80d170bbfe62cc72bb917b737f2b3b1d
2012-08-02 20:47:20 +05:30
Santhosh Thottingal
8d1985b9fb Undo feature for language selection
* Use jQuery tipsy plugin to show previous language
* previous language is stored in cookie

Change-Id: Iaae668c33209e32a74dee00211bb22c7b3562456
2012-08-02 17:51:31 +03:00
pginer
fa16376501 Trigger icon size fix
Reduce the icon size to fit the size of the language trigger label of the personal
toolbar.

Change-Id: I1946c91a2aa8b47eefa61f10c84b8059949dfc3d
2012-08-02 15:47:52 +02:00
Santhosh Thottingal
baf066f86a Minor cleanup
Remove unused CSS and reorder css, js imports in example/index.html

Change-Id: Iabffe20a683dc4dad07bac95b01f29e7a2159680
2012-08-01 10:59:02 +05:30
Santhosh Thottingal
8959f2a9b0 Language Stickiness
* 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
2012-07-31 22:45:25 +05:30
Santhosh Thottingal
3d9807e7f2 Fix php warnings.
Change-Id: Icd1302f7db425157def4771ffe0d7c816164eb23
2012-07-31 16:03:52 +05:30
Santhosh Thottingal
5703f0f1ad Fix Bug 38665 - Show clean 'x' icon on the search box only when useful
Change-Id: I3fc295728f25cce7a326101467146f8ee3415116
2012-07-30 22:44:28 +05:30
Santhosh Thottingal
388f9cde80 Search performance improvement
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
2012-07-30 18:25:59 +05:30
pginer
d8038afad9 (bug 38686) Autocompletion support
Provide atocopletion capabilities to the search box: showing the remaining
 part of the matching element and allow user selection with keyboard.

Change-Id: Ic591c3c87632fb56af16b9b15ecedbf9558d674a
2012-07-30 15:40:03 +05:30
pginer
5b055bdf5b (bug 38670) Provide a no results found view
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
2012-07-30 14:47:21 +05:30
Santhosh Thottingal
08c14dafa4 Cross-language language name search
Implementation of Also Written As language name
search algorithm.
See http://etherpad.wikimedia.org/l10n-uls-language-search

Change-Id: Iff84408c531b650a44d031b63d5c823737cceafc
2012-07-30 14:08:26 +05:30
Santhosh Thottingal
fb11c720b5 Use autonyms for displaying search results
And use English names in tooltip

Change-Id: Ibf8e4035677f3c0467fe5165c680bce15e3b3bb5
2012-07-26 18:33:47 +05:30
Santhosh Thottingal
e728a690a3 Extension authors
Change-Id: Iecba54b1745b3061374cf8502641ea4524076c67
2012-07-26 12:04:15 +05:30
Santhosh Thottingal
af3f6ac58d Loop optimization and cleanup
Reduced the complexity of search loops
And some cleanup.

Change-Id: I772b02abd14d50ad1965e933d8dbb6d3eb4e0b1d
2012-07-25 16:14:16 +03:00
Santhosh Thottingal
05eb91bee3 cleanup and optimization
* reused jquery object  $( 'input#languagefilter' )
* handled the clean button click and escape press on ULS
* some code cleanup.

Change-Id: I5b8b597dceb4cf273a7eff2761f42557828e630b
2012-07-24 14:29:32 +05:30
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
Santhosh
27f9adcc15 Merge "Fix the location of America and Asia in RTL languages" 2012-07-19 11:14:51 +00:00
Santhosh
e4cd473337 Merge "Enable syntax highlighting inside heredoc" 2012-07-19 11:10:32 +00:00
Niklas Laxström
6187cc45a5 Fix the location of America and Asia in RTL languages
Change-Id: I51485b35518d32c239962bf0943bd63f010ddc3b
2012-07-19 10:28:53 +00:00
Niklas Laxström
966416872e Replace Foo Americas with just America
Change-Id: Id11dc72c6f7e93ad88076441e5fff5ed69f7b069
2012-07-19 10:22:40 +00:00
Niklas Laxström
2c82ff0100 Enable syntax highlighting inside heredoc
Change-Id: I6e77455fac58289dfdca8a6aa72cd305f9b8d7b3
2012-07-19 10:21:18 +00:00
Santhosh Thottingal
c926a4e3ff Merge "Fix the wrong license header from Ie0480019" 2012-07-18 12:46:18 +00:00
Amir E. Aharoni
7f3b3b1210 Save source files as UTF-8
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
2012-07-18 15:29:17 +03:00
Santhosh Thottingal
99336b1e62 Fix the wrong license header from Ie0480019
Change-Id: I518f638b7a0729ad364e6547ee777419de4d4b4f
2012-07-18 17:34:38 +05:30
Siebrand Mazeland
6cc7c75458 Merge "Implement dual license GPLv2 and MIT." 2012-07-18 05:35:30 +00:00
Amir E. Aharoni
2775e6f5b3 Update tests and sync DBs after reordering regions
Followup I6fcf34dd

Change-Id: I2369f97ec978892a8db9fa15c17885de9cc841ec
2012-07-15 15:35:46 +00:00
Niklas Laxström
6af3c4c9b8 Fix usage of console causing errors on browsers not having it
https://translatewiki.net/wiki/Thread:Support/Loss_of_script_functionality

Change-Id: Iace2ba107221673514942331d0e43559ff6b4c19
2012-07-14 01:40:28 +00:00
Siebrand Mazeland
4041e7dca1 Implement dual license GPLv2 and MIT.
Should only be merged after +1 by all current contributors that are added as
reviewers.

Change-Id: Ie0480019524fa7b45ec6635d92b63e8b7880a2a0
2012-07-13 15:16:06 -04:00
alolita
337f1bc1f4 Updated readme with updated url.
Change-Id: I098eae824c705840d9e2dc01eb2c1fc16286052c
2012-07-11 17:32:43 -04:00
Amir E. Aharoni
0e36a4c5e9 Merge "Fixed a test that checks Greek script languages" 2012-07-10 17:11:04 +00:00
Amir E. Aharoni
58bc495d6f Reorder regions in region groups
The order of the regions in each group was random and confusing.
Now it's reordered so it corresponds to the map.

Change-Id: I6fcf34dd97808f26eabbef51665e7d2743a6cd85
2012-07-10 10:58:43 -04:00
Amir E. Aharoni
704a54647b Fixed a test that checks Greek script languages
Tests about the Greek script failed because new languages were added to
the language database. Also, it had to be deepEqual and not strictEqual.
I fixed the tests.

Change-Id: I68cf0593354d71bd35c53bac5afe7cabd25182a1
2012-07-10 09:55:26 -04:00
Santhosh Thottingal
493cfbe2c4 Fix the search icon location in search field.
Change-Id: Ib6253e6a002e02f0b04bce3b31220809ffea79d9
2012-07-04 12:02:16 +05:30
Siebrand Mazeland
fcbcf1a2a9 Merge "Updates for language database (~75 codes added)." 2012-07-03 15:00:15 +00:00
Santhosh
3c32f82cef Merge "Filter out unknown languages." 2012-07-03 14:52:59 +00:00