Commit Graph

802 Commits

Author SHA1 Message Date
Federico Leva
b8517a2a1d Replace #p-lang-list for monobook as well
Followup to I154919a54b032dd481fe080204a2a16819d85140

Change-Id: Ibbfccfe2300f10808a45ee2bb1ecb45dcf3eb079
2014-06-12 13:42:30 +00:00
Thiemo Mättig
91018834c3 Keep Monobook skin intact
Bug: 64741
Change-Id: I5f54537f66d72785744221c64a6705d98f1689f9
2014-05-30 22:49:04 +02:00
jenkins-bot
84f07fe5f8 Merge "Remove unwanted anonymous functions" 2014-05-27 10:25:58 +00:00
jenkins-bot
518a7ae3c0 Merge "Always display assistant languages where available" 2014-05-27 04:04:12 +00:00
Nemo bis
625334fe63 Always display assistant languages where available
Assistant languages are chosen by users in a wiki with
Translate extension. If assistant languages are defined,
use that also for predicting the languages in compact list.

Bug: 62342
Change-Id: I25f42f3802e80baf5d4724ba6e42e00b8be2349e
2014-05-27 04:03:50 +00:00
Santhosh Thottingal
0c16041f5b Fix the missing close icon in ULS
Regression after the patch I39005ef2425c01b8623bf9df6d75c1e27f1c5bda
and I4a2542b3b745b8b749845a7e8dbb926dd5c4f0e4
Missed to rename the class in MW ULS.

Change-Id: If44d225a2e859dafa544b4a99ee554cecbfd8aca
2014-05-26 14:11:27 +05:30
Santhosh Thottingal
2d9a28b694 Remove unwanted anonymous functions
Change-Id: Ieefbd58fbc829182048df1d89921b97599a3392c
2014-05-26 11:51:59 +05:30
florianschmidtwelzow
2794039142 Close the tipsy tooltip when clicked on it
We want to close tipsy when user clicks on itself, not on trigger.

Bug: 65664
Change-Id: I0de52d3917a984e675e42b83b9f5b767bd7f2e4b
2014-05-26 06:14:58 +00:00
jenkins-bot
eb600dfbee Merge "Replace #p-lang-list with #p-lang .body ul" 2014-05-23 09:31:54 +00:00
Amir E. Aharoni
50f6bdce29 Replace #p-lang-list with #p-lang .body ul
The #p-lang-list id was removed from core (I028880cfa),
and this broke the compact links beta feature.
This commit replaces it with a different selector.

Change-Id: I154919a54b032dd481fe080204a2a16819d85140
2014-05-22 13:17:15 +00:00
Santhosh Thottingal
e3a480205c Update the class names per update jquery.uls lib
jquery.uls renamed settings-block class to uls-settings-block.
Similarly icon-close to uls-icon-close

Change-Id: I39005ef2425c01b8623bf9df6d75c1e27f1c5bda
2014-05-22 11:27:08 +00:00
jenkins-bot
f716a176f8 Merge "Add Hussaini Nastaleeq font for Urdu" 2014-05-12 05:45:11 +00:00
Kartik Mistry
5e9550431c Add Hussaini Nastaleeq font for Urdu
* Added Hussaini Nastaleeq font.
* Added custom license text for Hussaini Nastaleeq.
* Updated licenses/README for new license.

Bug: 56939
Change-Id: Icd28de1172783c794ac16aaa60e27056b728fb28
2014-05-12 11:03:36 +05:30
Nemo bis
131ca48d0b Misc typofixes
Change-Id: I0da399382082ad0d197f48641050b6813e3bdc6e
2014-05-11 15:52:13 +02:00
Santhosh Thottingal
8e665c5607 Allow overriding the header styles from typography refresh
Bug: 63718
Change-Id: Ifa36c6718694158c44da09ae8eb62d31ef5fd0a0
2014-04-16 04:07:36 +00:00
jenkins-bot
53a4d8b087 Merge "Allow always logging tofu detection" 2014-04-14 03:46:01 +00:00
Amir E. Aharoni
10a25c1cc9 Allow always logging tofu detection
This commit allows to log tofu detection always,
even if the rest of the webfonts library is not loaded.

By default this is disabled.

To enable it, set the variable $wgULSTofuLoggingChance
to a number between 0 and 100, indicating the chance of it
getting logged. The idea of the lottery is that even a partial
sample can be useful.

Change-Id: Ia08fe0de348b7eebfa95498a6be58ae41608ba3b
2014-04-14 09:14:14 +05:30
Amir E. Aharoni
7c5b750700 Localize the number in the "more languages" message
Change-Id: I11c88423b048f31c8a6fc9be1af63e32835717b4
2014-04-06 20:17:08 +05:30
Amir E. Aharoni
2ac455bd2a RTL positioning for compact interlanguage links
Bug: 62981
Change-Id: If68975431eb58a7fcafcb7fec9f8a95f5e09ad80
2014-04-06 19:48:56 +05:30
Amir E. Aharoni
d4c2053fc0 Whitespace and comments cleanup
Change-Id: Ic1f3d3acbb8d6473d6cc5c2d04f3689dca49f911
2014-04-04 18:52:50 +03:00
Amir E. Aharoni
debc1db7e6 Update the comment for $.fn.webfonts.defaults.fontSelector
Suggested by Niklas in the comments on
If68fce9c0bd281019de6e2992c856bdbe843aec8

Change-Id: I3d61b757c72504cac961d13f89f0b3df58746c7b
2014-04-01 14:50:09 +03:00
jenkins-bot
7b8b1c1f8b Merge "Simplify tofu detection cache" 2014-04-01 11:30:07 +00:00
Niharika Kohli
28d5d8da03 Unhide a language instead of adding it
Solves a few bugs. Displays language titles and quality indicators
are not lost.

Bug: 62376

Change-Id: I0d597eec3b70bb33c96086eefe14edcd92029aaa
2014-04-01 10:42:31 +00:00
jenkins-bot
430544be2d Merge "Reorganize the compact links code, make it a jquery plugin" 2014-04-01 10:42:13 +00:00
Santhosh Thottingal
92652c11b1 Reorganize the compact links code, make it a jquery plugin
No change in functionality. Refactored the code a lot and made it as
a jquery plugin, similar to the other components of ULS

Change-Id: I69199ba37b13ec7fd4a9b7b8eba5b3aa28f0edb5
2014-03-29 10:02:55 +05:30
jenkins-bot
0a98d2f381 Merge "Use preventDefault instead of stopPropagation" 2014-03-27 08:26:06 +00:00
jenkins-bot
0ce681da63 Merge "Reduce line-height of possibly broken "200 more languages" label" 2014-03-25 12:46:22 +00:00
Santhosh Thottingal
ce383b803e Push selected language to previous languages list
Bug: 62692
Change-Id: I3b40ed1038cec0b34d3b0fbefcae4d4ae650ce36
2014-03-24 12:51:03 +05:30
jenkins-bot
7c01da2233 Merge "Remove prefixed border-radius rules" 2014-03-23 03:54:32 +00:00
Niklas Laxström
cfe5f234b6 Remove prefixed border-radius rules
Inspired by I52f987ddcef

Change-Id: I637d7739b1d0b18b3970a15ce7d6b677b7862707
2014-03-22 17:57:07 +00:00
Thiemo Mättig
9a5ca12d2a Reduce line-height of possibly broken "200 more languages" label
Depending on the browser, skin, zoom and language the "200 more
languages" label breaks into two lines. The line height is so big
that it looks like "200 weitere

Sprachen" in German. The margin to the top (where the [...] button
is) and to the bottom (where the Wikidata "Edit links" link is) is
much smaller than the line-height.

My additional margin is choosen in a way that the design is still
pixel perfect if the text fits in one line.

Change-Id: I2fd797998a4f4e72a3764a72873f1356efc0dfb3
2014-03-22 17:47:24 +01:00
Thiemo Mättig
5fab7bd738 Make sure script execution doesn't stop by assuming unchecked input is set
These methods aren't designed to return "undefined" or "null".
What they return is not checked. It's assumed to always be an
object (2 of them) or an array (1 of them). This simple patch
does make sure the following code does not fail with TypeErrors.

Bug: 55701
Change-Id: I19f51bbff2209044485b9d7cef4c7654cb5f6425
2014-03-22 15:54:47 +00:00
Niharika Kohli
1031c11521 Rename variables for better comprehension
Change-Id: Ifa8da084a93e85201564bae3aa71b0c3c899894b
2014-03-21 08:36:46 +00:00
Niharika Kohli
964349dd70 Remove redundant code and improve accuracy
Change-Id: I00c6953a041b38c68b658377516a82e8aa9cdb6c
2014-03-19 14:26:51 +00:00
Amir E. Aharoni
0c8984e2f5 Simplify tofu detection cache
Change-Id: If68fce9c0bd281019de6e2992c856bdbe843aec8
2014-03-18 16:29:05 +05:30
Niklas Laxström
62939949b4 Use preventDefault instead of stopPropagation
Change-Id: I9c2da14b94348cec39e6a9a1571b22de39e437f0
2014-03-08 11:04:34 +00:00
Kartik Mistry
30b31aaf16 Rename Lohit Oriya to Lohit Odia
* Updated font to 2.5.5. Since there wasn't any other changes, I just
   renamed font name here.
 * Upstream: https://fedorahosted.org/lohit/

Change-Id: I553098e54849c19ede45951d208d81f5d681f2e1
2014-03-08 11:33:28 +05:30
Niharika Kohli
5ca0d5d400 Compacting the interlanguage links with the ULS
Displays a shorter version of the language list with the languages that are more relevant to you.
More info at https://www.mediawiki.org/wiki/Universal_Language_Selector/Design/Interlanguage_links

Due to a problem with duplicate patchsets we had to create a new one. 
The history and info on code and security revisions is available at
https://gerrit.wikimedia.org/r/#/c/104793/

Change-Id: I109bfb10f6181b6408aab170db5e8ca32493d657
2014-03-04 09:41:47 +00:00
Santhosh Thottingal
ac50f27d2d Fix: Live preview of languages removes labels from the language panel
MW ULS uses its api to load the localization. Avoid the conflict with
i18n.load method. Directly use the i18n message stores load method

Bug: 61990
Change-Id: I7ea7e7fc31a0831ae2b2c4b4301fbe81109fdf9d
2014-02-27 15:18:13 +05:30
Amir E. Aharoni
261542d738 Log tofu detection event
This only works if webfonts enabled (the checkbox is checked).

Change-Id: Ibbedc6a34dacb983f156d8a33afa5ab625e32f5f
2014-02-26 00:19:08 +02:00
jenkins-bot
cf164ced3e Merge "resources/images: Optimize all SVGs (partially by hand)" 2014-02-19 08:50:21 +00:00
Bartosz Dziewoński
c9cd0fc401 resources/images: Optimize all SVGs (partially by hand)
Passed with svgo 0.4.2 <https://github.com/svg/svgo>, then prepended
'<?xml version="1.0" encoding="UTF-8"?>' prolog to each file since
svgo sees it fit to remove it and that breaks file type detection.
svgo truncated all numerical values to a maximum of 3 decimal places
of precision.

Applied some additional optimizations by hand (with a text editor or
in Inkscape).

Did not touch upstream-managed SVG files, will submit separate
patches for them.

File size changes:

* cog-sprite.svg:    2,520 → 1,253 bytes – 50.3% smaller
* cog.svg:          17,961 → 1,154 bytes – 93.6% smaller
* display.svg:       2,591 → 1,053 bytes – 59.4% smaller
* help.svg:          1,790 →   674 bytes – 62.3% smaller
* input.svg:         5,515 → 2,092 bytes – 62.1% smaller
* remove-input.svg:  5,956 → 2,208 bytes – 62.9% smaller

Total:              36,333 → 8,434 bytes – 76.8% smaller

Details:

* cog-sprite.svg:
  * Use <defs> and <use> instead of duplicating the path data.

* cog.svg:
  * Vacuumed defs with Inkscape, there were weird leftovers there.

* input.svg:
  * Simplified the shapes.

* remove-input.svg:
  * As above. Reused the same path data with a transform to improve
    compression when embedded.

Bug: 56292
Change-Id: Iad1771829ba2711e4827befc1c73e34453734640
2014-02-19 00:54:42 +01:00
Niklas Laxström
ff6c3041c2 Wrong border color for caret
After seeing this wrong color dozens of times while testing svg
icons on high zooms, I can't stand the slightly different color of
the border for the caret from the rest of the ULS dialog. The border
of ULS is transparent with 0.2 alpha component over the background,
in this case I just hardcoded the resulting color here to match.

Change-Id: Ib2b2801f51ea02d2788d8703e3410eca9b3a57a3
2014-02-18 22:23:44 +00:00
Amir E. Aharoni
7627358fb4 Prevent JSON parsing errors
Bug: 61137
Change-Id: I2df6b6108bb7834b927205d3b6afa69354cecaf7
2014-02-10 15:25:37 +02:00
jenkins-bot
ab83208b60 Merge "Encode URL parameter" 2014-02-10 12:38:32 +00:00
Santhosh Thottingal
1c3a935ef0 Try to restore the old preferences, if any, if possible
Preferences were saved using jStorage. The browsers which ULS supports now
have wide native support for local storage, so we removed jquery.jStorage
in I09b2bd52972.

The old local storage key was 'jStorage' as put by jquery.jStorage. We now
check if that key is present. If so we migrate the preferences and remove
the old key to save space. We are not aware of anything else using this
module.

Change-Id: I995a32c4cb7a3bc818fe255f92dbc972211cb112
2014-02-10 17:52:04 +05:30
Santhosh Thottingal
e21c221e2b Use localStorage, fallback to cookie, remove jquery.jStorage RL dependency
As per comments in I22613d9f6846db5456beb532cec47396fccda8ae

Change-Id: I09b2bd52972d9aef20dd469c556631e0299bc407
2014-02-10 12:11:13 +00:00
Santhosh Thottingal
27771fdeaf Restore enableWebfonts pref and remove uls-enable
This patch restores the enableWebfonts preference, stored inside
the uls-preferences blob. It existed as 'enable-webfonts' in
the past and was removed in
If735a733717596fae03042c5e277bd538bd8501f

Each wiki can be configured to load the fonts by default
using the new global variable $wgULSWebfontsEnabled.
Its default value is true (to load fonts).

This also removes the preference 'uls-enable', recently added in
I71b70d8ee7c3cad7f49b32e5dc494ef4fc1bdb2f

The initialization of ext.uls.webfonts.js is changed as well,
so that minimal webfonts JS library code is loaded,
and the rest is loaded only if a user requests it.

Bug: 60304
Change-Id: I49e812eae32266f165591c75fd67b86ca06b13f0
2014-02-10 17:40:30 +05:30
jenkins-bot
7b376a80c8 Merge "Fix remaining strings not participating in live language preview" 2014-02-10 06:56:34 +00:00
jenkins-bot
9a5a1d909f Merge "Remove duplicate code and add todo" 2014-02-10 06:54:11 +00:00