Commit Graph

459 Commits

Author SHA1 Message Date
Niklas Laxström
8a8f502de7 Style changes to lcd
This change is larger than it should because I came across lots of
unused CSS which I removed or simplified.

https://phabricator.wikimedia.org/T138235
2016-08-17 16:29:08 +02:00
Niklas Laxström
8b52247b22 Remove incorrect comment 2016-07-26 16:19:40 +03:00
Santhosh Thottingal
bb4d96c33a List the languages in Worldwide in their respective regions too
Fix for https://phabricator.wikimedia.org/T137868
This was a wrong solution for https://phabricator.wikimedia.org/T41921

Change-Id: Ib920e75fca71716d14aecd25c163f0c1e8e63270
2016-07-20 09:55:24 +05:30
Amire80
9c8f9fcf77 Add a redirect from chm to mhr
CLDR uses chm instead of mhr, so for practical purposes
it should be a redirect, until https://phabricator.wikimedia.org/T136164
is resolved.
2016-07-19 15:38:15 +03:00
Niklas Laxström
3f1f5af7c0 Add bft
https://translatewiki.net/wiki/Thread:Support/request_for_new_language
2016-06-22 14:30:23 +02:00
Niklas Laxström
c312838ea7 Add fax
https://translatewiki.net/wiki/Thread:Support/Request_for_Fala_language_(fax)
2016-06-22 14:16:59 +02:00
Sébastien Santoro
2ab558b6d8 Add Atikamekw language 2016-06-09 11:20:45 +00:00
Niklas Laxström
25775dd147 Adjust styles and code to support custom list bullets
Tweak specificty of the rule that hides bullets so that it is easy
to override.

Move dir and lang attributes from <li> to <a> so that the bullets
appear on the correct side for reverse directionality scripts.

Change-Id: Ic0d0c5220b0b374c2a3a19023c40d81f3e20007c
2016-06-09 15:08:15 +05:30
Niklas Laxström
8e4a35bb66 Add base language codes as well
In some cases CLDR provides only a script variant we might not use.
2016-05-26 15:34:20 +02:00
Niklas Laxström
35ce36a611 Rewrite ULS aliases in the territories 2016-05-26 15:32:16 +02:00
Niklas Laxström
0faa9bbd4d Remove unknown language codes from territories
Since they are not used, they only waste space.
2016-05-26 15:22:26 +02:00
Niklas Laxström
f5eb37ba73 Update langdb
Someone forgot to update this in the past.
2016-05-26 15:17:24 +02:00
Niklas Laxström
eeb49c6175 Merge pull request #224 from santhoshtr/loopsearch
Avoid calling searchAPI more than once
2016-05-25 15:52:04 +03:00
Santhosh Thottingal
0a06f4e986 Avoid calling searchAPI more than once
The calling code should not be in loop

Change-Id: Ib8433115bf9bf18827ad13bcfb3299a846ae98b3
2016-05-25 16:39:17 +05:30
Santhosh Thottingal
ed2427ba2d Remove regionfilter related utility methods
Change-Id: I1ab96280fa71cac3745eb7e7210b15a1e5bc78f8
2016-05-17 15:25:53 +05:30
Santhosh Thottingal
e9c0f3e4db Show "You may be interested in" section when no results found
This was broken long time back

Change-Id: I15f715067d82fb61959763824183a6813536e94e
2016-05-09 17:09:06 +05:30
Santhosh Thottingal
11b87cb5be Remove the regionfilter module
It has lot of redundant and unused code used when we had the map.
Removing it. No change in functionality is expected

Change-Id: I278ef63b7756b5061c0b6638ba4e7b7deebf5a0d
2016-05-09 17:03:37 +05:30
Santhosh Thottingal
29f28a1f50 Clean up code formatting, add .jsbeautifyrc
Change-Id: Iafcc8084d87d8f2323d97bb4446e031951820d41
2016-05-09 16:41:31 +05:30
Santhosh Thottingal
35cd1b5736 Remove unwanted comma
Change-Id: I9c09ef9cf25949b37035c58f7c8550e30fa3442b
2016-05-09 16:32:12 +05:30
Santhosh Thottingal
0cc7f2f54b Call onCancel from hide
See issue #215

The cancel, hide methods are still confusing, may be in some other patch
we need clean up this. A grep shows ULS use onCancel only with compact
language links.

Change-Id: I0e08d169952945237efce9108d51cb68c4a29ad5
2016-05-02 17:27:18 +05:30
Niklas Laxström
2a538b78e1 Remove compact mode
Make the regular mode look like compact mode
2016-04-21 15:27:49 +05:30
Kartik Mistry
73462b3de1 Update jquery.uls.data.js for #213 2016-04-12 14:14:32 +05:30
Santhosh Thottingal
5568fb491c Merge pull request #212 from wikimedia/heatter
Some cleanup to the language filter
2016-04-11 11:27:36 +05:30
Niklas Laxström
20d5e431a3 Some cleanup to the language filter
No longer using grid to position the icon, but nested divs instead.

Tweaked some padding etc. related cleanup.
2016-04-06 17:26:44 +03:00
Santhosh Thottingal
bf0c555b8c Remove unwanted script related code in search method
Fixes issue #209

Change-Id: I33345fe553abcc9bfd6288fe579878a2cf307e8f
2016-04-06 16:38:44 +05:30
Santhosh Thottingal
7b3cd3d885 Fix: search using API does not respect the passed language list
If there is a search api configured, ULS list all languages that
pass the search irrespective of whether a language is present in
options.languages

Change-Id: I0be80397bb5b4071bc7bc5e787fe107c98e3d912
2016-04-06 15:21:33 +05:30
Santhosh Thottingal
8b3d77dae1 Support language codes that are redirects
Addressing issue #207

Such language codes were not listed in ULS language list.

Root cause was $.uls.data.getLanguagesByScriptGroup was returning
a map of script groups, which contained only resolved language codes.
And later in append method of jquery.uls.lcd.js, there is a check if
that language code is part of languages list passed as option to uls()
call. This test fails and the language code does not get added to display.

Change-Id: Iec914a9694a46eef5750ef3af7346d66e052ab77
2016-04-05 09:17:09 +05:30
This, that and the other
f53de5469b Fix the cancel event function to prevent erroneous close
Changed the conditions for the cancel event function so that the ULS popup does not close when a descendant element of the trigger is clicked.

Was erroneously merged to gerrit as https://gerrit.wikimedia.org/r/#/c/261810/, I forgot that this was an upstream library.

https://phabricator.wikimedia.org/T122722
2016-01-02 02:25:23 +11:00
Santhosh Thottingal
d4de09ffb9 Improve the hide-show logic of ULS
* The events are suppressed on click of ULS trigger, it is an anti
  pattern. It can cause other overlay dialogs, if any, to stay with
  ULS and causes UI glitch. This patch just propagates the events and not
  eats up.
* The show method was hiding all other ULS dialoges open using a
  global $('.uls-menu').hide(). This is again not a good pattern.
  A plugin instance should not interfere with other instance's state.
  More over, calling jQuery hide() method on menu instead of plugin's
  hide method leaves the other plugin instance in a corrupted state.
  The plugin hide method does more things than just hiding the menu.
  It has a 'shown' book keeping property to update. This kind of
  corrupted state was causing bugs like https://phabricator.wikimedia.org/T114123
* While avoiding the above two antipatterns, the way ULS was hidden when
  clicked on any 'other' part of body was improved. It now uses event.target
  to correctly handle the 'click-outside-hide' logic

All these above changes does not change any existing UX.

Change-Id: I40b355115cbda54a68e8d58d3750fb9f1c3b6920
2015-10-06 10:35:05 +05:30
mjbmr
33c28416f5 Add Livvi-Karelian language 2015-08-27 06:38:20 +00:00
Amir E. Aharoni
b4f87fb011 Update Azerbaijani varieties in langdb
CLDR now uses only az-arab and az-latn,
so they must both appear in langdb.
2015-08-02 20:36:20 +03:00
mjbmr
e325783f12 Update Southern Luri name from MediaWiki 2015-08-02 15:08:01 +00:00
mjbmr
7541c3b4d7 Update various names from MediaWiki and translatewiki 2015-07-25 10:30:02 +00:00
Amir E. Aharoni
d81867a7fb Change the autonym of ady
Similar to https://gerrit.wikimedia.org/r/#/c/223783/

This was pointed out to me at translatewiki.net,
and I verified it in a dictionary.
2015-07-10 16:24:18 +03:00
Amir E. Aharoni
54ec06e40d Merge branch 'patch-1' of https://github.com/Mjbmr/jquery.uls into Mjbmr-patch-1 2015-07-10 16:18:45 +03:00
mjbmr
eccd3372ff Add Tunisian variants 2015-06-17 05:24:13 +00:00
mjbmr
542edd8c4a Fix Goan Konkani variants 2015-06-17 05:07:13 +00:00
mjbmr
ec0a1465e3 Fix the name of Central Kurdish 2015-06-01 14:46:32 +00:00
mjbmr
358d989e08 Fix the name of Bakhtiari language 2015-05-24 18:27:45 +00:00
mjbmr
1072e8fd9a Fix name of Northern Luri language 2015-05-11 17:36:45 +00:00
mjbmr
33250d4ebc Add name of South Azerbaijani (azb)
CLDR only uses Latn and Cyrl variant for Azerbaijani
South Azerbaijani uses azb and there is no az-arab
2015-05-08 06:05:34 +00:00
Robin van der Vliet
4ba7d0de68 Update jquery.uls.data.js 2015-04-19 16:53:09 +02:00
Santhosh Thottingal
09883174f4 Merge pull request #182 from Mjbmr/patch-1
Fixes for some languages
2015-04-08 20:08:05 +05:30
Mjbmr
a24f000a6e Fixes for some languages 2015-04-08 12:11:44 +00:00
Amir E. Aharoni
f724e4a289 Remove unnecessary semicolon 2015-04-08 09:41:17 +03:00
Amir E. Aharoni
eb4f8ff251 Make language count calculation only in core.js 2015-03-31 10:20:34 +03:00
Amir E. Aharoni
c81561b3fc Refactor the object keys counter function 2015-03-14 23:20:09 +02:00
Amir E. Aharoni
da9a849b42 Show the Common language section only if the list is long enough 2015-03-14 00:48:18 +02:00
Amir E. Aharoni
b6a30c3d44 Restore support for IE8
IE8 does not support Object.keys.

https://phabricator.wikimedia.org/T86516

Copying the patch from Gerrit:
https://gerrit.wikimedia.org/r/#/c/184316/
2015-02-26 10:46:35 +02:00
thiemowmde
5e1a17c78c Make magnifying glass icon clickable
This makes the magnifying glass icon (search.svg) clickable. Clicking focuses the input field next to the icon, which is the expected, helpful behaviour in my opinion. This is especially helpful with the "compact links" beta feature where the input box is completely invisible and the only remaining indicator that the user can type something is the blinking cursor. If the focus is lost for some reason, this patch allows the user to click the magnifying icon and re-focus the input field again.
2015-01-30 12:05:35 +01:00