Commit Graph
70 Commits
Author SHA1 Message Date
Niklas LaxströmandSanthosh Thottingal 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 0927f4be0e Make the script generate formatted json file
Otherwise changes are almost impossible to review.
2016-05-26 15:18:28 +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 ab3cd92ee9 Localisation updates from https://translatewiki.net. 2016-05-26 07:40:47 +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
Niklas Laxström eaf350a20c Some styling tweaks to search bar
From https://gerrit.wikimedia.org/r/#/c/285593/6/resources/css/ext.uls.css
2016-05-23 18:10:30 +03:00
Niklas Laxström 6accb871d1 Localisation updates from https://translatewiki.net. 2016-05-23 08:11:15 +02:00
Niklas Laxström 3d47102351 Localisation updates from https://translatewiki.net. 2016-05-19 09:33:58 +02:00
Niklas Laxström 08969481e5 Merge pull request #218 from kartikm/license
Use SPDX license field in package.json
2016-05-18 16:50:25 +03:00
Niklas Laxström 79cbb8a5bb Merge pull request #222 from wikimedia/code_removal
Remove regionfilter related utility methods
2016-05-18 16:45:55 +03:00
Niklas Laxström 7dcdab7f9c Localisation updates from https://translatewiki.net. 2016-05-16 07:34:58 +02:00
Niklas Laxström e18aaece09 Localisation updates from https://translatewiki.net. 2016-05-12 09:37:35 +02:00
Niklas Laxström 3000287116 Merge pull request #221 from wikimedia/no-regionfilter
Remove the regionfilter module
2016-05-11 09:05:00 +03:00
Niklas Laxström 60668c6037 Merge pull request #220 from wikimedia/215
Call onCancel from hide
2016-05-03 14:11:15 +03:00
Niklas Laxström 9bc25b726f Merge pull request #219 from ricordisamoa/devDependencies
Bump devDependencies to latest and make pass
2016-05-03 11:44:58 +03:00
Niklas Laxström 2924e68dce Merge pull request #203 from kartikm/bh
Use same format for bh/bho
2016-04-22 15:33:24 +05:30
Niklas Laxström 2f2f814738 Compress images 2016-04-21 12:27:11 +02:00
Niklas Laxström c103030cc3 Replace search icon with a new one
Also removed the smallening of the search icon narrow mode.
2016-04-21 15:50:50 +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
Niklas Laxström 19e670153e Merge pull request #214 from kartikm/kbp
Update jquery.uls.data.js for #213
2016-04-12 11:46:15 +03:00
Niklas Laxström 1e096ab6d2 Add [kbp] Kabɩyɛ
https://translatewiki.net/wiki/Thread:Support/Translating_the_500_most_used_messages_into_Kabiy%C3%A8
2016-04-12 11:34:56 +03:00
Niklas Laxström 40e67f5da2 Localisation updates from https://translatewiki.net. 2016-04-07 08:07:30 +02:00
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
Niklas Laxström 30d86fb8ba Merge pull request #210 from wikimedia/209
Remove unwanted script related code in search method
2016-04-06 15:03:03 +03:00
Niklas Laxström bd78c24be0 Merge pull request #208 from wikimedia/207
Support language codes that are redirects
2016-04-05 08:58:13 +03:00
Niklas Laxström 1e8c2168f6 Localisation updates from https://translatewiki.net. 2016-03-03 08:27:54 +01:00
Niklas Laxström 35e3d30f58 Localisation updates from https://translatewiki.net. 2016-02-29 17:21:42 +01:00
Niklas Laxström 6ee1cb6eaa Localisation updates from https://translatewiki.net. 2016-02-25 09:21:57 +01:00
Niklas Laxström 3bdbc65b12 Localisation updates from https://translatewiki.net. 2016-02-08 11:48:35 +01:00
Niklas Laxström 49f5f1a6b8 Localisation updates from https://translatewiki.net. 2016-01-25 07:42:24 +01:00
Niklas Laxström 9a7d4d0576 Localisation updates from https://translatewiki.net. 2016-01-18 08:12:31 +01:00
Niklas Laxström e019587901 Localisation updates from https://translatewiki.net. 2016-01-04 15:49:25 +01:00
Niklas Laxström e6f7672b75 Localisation updates from https://translatewiki.net. 2015-12-29 11:31:11 +01:00
Niklas Laxström ffcfdf1905 Merge pull request #180 from amire80/object-keys
Restore support for IE8
2015-02-26 10:50:25 +02:00
Niklas Laxström 91069c36be Remove empty translation from de-formal 2015-01-06 14:37:38 +02:00
Niklas Laxström 982e2c32e7 Merge pull request #159 from santhoshtr/decorator
Add decorator option for language links
2014-09-25 10:30:15 +03:00
Niklas Laxström 0d34e864c6 Merge pull request #144 from edg2s/patch-2
Only use default pos if top/left are undefined
2014-04-22 10:41:05 +03:00
Niklas Laxström 4354079ff4 Regenerate jquery.uls.data 2014-04-12 15:29:13 +03:00
Niklas Laxström e6f3aea1ae Add Ludian 2014-04-12 15:18:22 +03:00
Niklas Laxström 42733b5856 Remove prefixed border-radius rules 2014-03-22 18:03:01 +00:00
Niklas Laxström 5b6862745b Add rmf to langdb 2014-03-05 13:44:27 +00:00
Niklas Laxström 6676222ab0 Lojban to lower case
Reported by Evropi on IRC
http://www.lojban.org/publications/level0/brochure-utf/overview.html
2014-03-03 09:04:32 +02:00
Niklas Laxström c5826222a4 Localisation updates from https://translatewiki.net. 2014-03-01 14:56:48 +00:00
Niklas Laxström d4ea222750 Drop -moz-linear-gradient for images
The costs are bigger than benefits now
2014-01-23 23:47:13 +00:00
Niklas Laxström 78e9b83c6b Make ULS language selector appear faster after clicking trigger
* Removed unused class end.
* Class uls-lcd-region-section was used in two different elements,
  retained it on the outer one.
* Build a list of languages per region, once done render the regions at once.
* Use direct dom manipulation in hot spots.
* Use shorter selectors like children instead of find and dropping the tag name.
* Fixed mismatch when there were no results and when the message was shown.
* Less flickering by not hiding or showing regions unnecessary
* Cache the common languages "quicklist"
* Added itemsPerColumn as an option

Reduces time used to show language selector after clicking the trigger on my
machine from about 1.8s to about 380 ms (JS execution times, actual times are
about the same but little bigger. The actual rendering is now less than 100ms,
the rest is other setup overheard and $.fn.scrollIntoView which can take many
hundreds of milliseconds.
2013-12-20 10:31:04 +00:00
Niklas Laxström 69f3256fa2 Avoid title case 2013-12-13 13:40:55 +00:00
Niklas Laxström 9d77cfb76f Fix typo 2013-11-19 11:16:14 +00:00
Niklas Laxström a4276bb18a Optimize png images with optipng -o7 2013-11-08 08:19:13 +00:00
Niklas Laxström 67cc85f5ee Reduce data size a bit by using unescaped unicode 2013-11-01 08:45:32 +00:00
Niklas Laxström 240c06da62 Merge pull request #114 from siebrand/6
Remove non-existing "-ms-linear-gradient"
2013-10-30 05:20:44 -07:00
Niklas Laxström f1a1f6d018 Merge pull request #99 from amire80/fil-tl
Redirect fil language (Filipino) to tl (Tagalog)
2013-06-20 03:10:01 -07:00
Niklas Laxström 96c3a1f797 Merge pull request #94 from amire80/syc
Added the Syriac language
2013-05-21 00:28:06 -07:00
Niklas Laxström edfa7339de Merge pull request #89 from amire80/script-for-invalid-language
Add Zyyy for an undetermined script and use it accordingly
2013-04-25 08:43:26 -07:00
Niklas Laxström d0d66ddc36 Merge pull request #88 from amire80/afterShowing-hook
Add an onVisible hook
2013-04-25 05:10:17 -07:00
Niklas Laxström 5d6c83d945 Add spaces 2013-03-15 10:21:59 +00:00
Niklas Laxström c95fab6923 Merge pull request #39 from amire80/bug_41768
Clicking outside ULS popup should close the popup
2012-11-16 09:49:01 -08:00
Niklas Laxström e63aaf90bb Fix ha names per https://gerrit.wikimedia.org/r/24761 2012-09-24 02:00:30 +03:00
NikerabbitandGerrit Code Review ccbd1dcdde Merge changes I83d4808a,If8ea8c1f
* changes:
  JsHint fixes - Move the invocation into the parens that contain the function.
  Fix Bug 39096 - Narayam compatibility with ULS
2012-09-07 11:07:10 +00:00
Niklas LaxströmandGerrit Code Review a524e09cbf Message consistency
* Removed title case
* "language used for menus"

Change-Id: If5c0323f5e49f2e71a3b6257b62ce5a08c74704c
2012-09-03 09:10:08 +00:00
Niklas Laxström a4f103e78f Added/fixed some sami languages
Names taken from (en|fi).wiktionary.org

Change-Id: I6b08417e9a9d65753028d6c5f151b89485542484
2012-08-30 14:35:48 +00:00
Niklas LaxströmandAmir E. Aharoni 4eb214b66f Initial version of geolocation support
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
2012-08-30 15:36:51 +03:00
Niklas Laxström 4bfb011529 Stray space
Change-Id: I2c6e3a6670f99769b1227578c26579e4678fe781
2012-08-20 11:14:09 +00:00
Niklas Laxström 550e9644fa (bug 39230) Autocompletion does not get cleared on region change
* Introduced deactivate (clear without showing all languages)
* Renamed noresult in region filter to noresults to match the
  callback in languagefilter
* Some comments to help understand the code

Change-Id: I544a29b860a6d3f4a5aa770f84cc8a72ae4a4b9d
2012-08-16 09:33:39 +00:00
Niklas Laxström 446a418ad4 Two RTL fixes
* WW can flip sides, other regions not
* Display settings icon now changes side and doesn't overlap with text

Change-Id: I35a6c93448a8dd178e657ba25093cf77199227c8
2012-08-16 08:57:16 +00:00
Niklas LaxströmandGerrit Code Review a2e3671a26 Added autonyms directly to langdb.yaml
* Can add languages not in MW
* Can get rid of foo / bar names which include different scripts
* Can get rid of directionality marks
* PHP scripts to generate the jquery.uls.data.js is now independent of
  mediawiki and moved the scripts to lib/jquery.uls/data
* No pretty printing for the jquery.uls.data.js and added a 'do not edit' comment.
* Related changes in RL module definition and example html

Change-Id: I9a360dbdec4e9312aa5c76f801424ff95a8550d6
2012-08-14 10:19:38 +00:00
NikerabbitandGerrit Code Review c8da071045 Merge "Handling enter key in language filter" 2012-08-08 13:54:27 +00:00
Niklas Laxström 4051277a76 Fix the map in RTL, again
Change-Id: Idde206fd968757cacf778ba41140b99e7f322cc7
2012-08-07 06:41:14 +00:00