Commit graph

1359 commits

Author SHA1 Message Date
Translation updater bot 456341344a Localisation updates from https://translatewiki.net.
Change-Id: I9cb45c668d692c44b75ac6f06412e327d0daf15d
2016-08-04 23:29:52 +02:00
Translation updater bot e9eba8e74c Localisation updates from https://translatewiki.net.
Change-Id: Iff4fbe5a443b0be046bf16115d9be09abb8d7ae3
2016-08-03 22:40:59 +02:00
jenkins-bot 7010b98d7f Merge "Include a number in messages showing a number with a unit" 2016-08-03 10:03:39 +00:00
jenkins-bot cbca683b21 Merge "Reduce help text font-size" 2016-08-03 09:59:38 +00:00
Translation updater bot acfbebf28b Localisation updates from https://translatewiki.net.
Change-Id: I28e096672bba3d471ef01bdd2b365e72cc16380e
2016-08-02 22:45:33 +02:00
WMDE-Fisch fefe746b07 Reduce help text font-size
Bug: T139100
Change-Id: Ie4401b1a49026606109d90160001d327472f1bff
2016-08-02 14:12:57 +00:00
jenkins-bot 7ce0442fa0 Merge "Track the load times of RevisionSlider" 2016-08-02 12:08:31 +00:00
addshore fd61e41db8 Track the load times of RevisionSlider
Change-Id: Ibeaac111802af80d2910c1892d233b7835069148
2016-08-02 13:02:57 +01:00
jenkins-bot dd8ee7bad4 Merge "Consider custom user language setting, and include all parameters in generated URLs" 2016-08-02 09:42:53 +00:00
Translation updater bot c836f8b60d Localisation updates from https://translatewiki.net.
Change-Id: I7340bad03e24247877c2109c83dc5d735a21cdc4
2016-08-01 22:36:56 +02:00
Leszek Manicki 042a3bb213 Consider custom user language setting, and include all parameters in generated URLs
User langauge setting could be overriden by adding uselang parameter
to the URL. Extension should use its value if present when fetching
the localized diff page.

Bug: T141760
Change-Id: I2539bc7bf523870f55f67bc94000c28644528172
2016-08-01 17:10:21 +02:00
jenkins-bot ff550611b2 Merge "Clean up the usage of <bdi> tags" 2016-08-01 13:53:57 +00:00
addshore f2d12c6728 Add browser test for history after dragging pointer
Change-Id: Icfc28009b4b2168bdde328055906238e0108713c
2016-08-01 12:25:46 +01:00
Leszek Manicki de8ec35f2f Fix restoring the position of pointers when moving in browser history
This fixes two bugs:
 - when more older revisions are loaded and inserted at the "beginning"
   of revision list, the slider position in the top history state
   should be adjusted. Otherwise when going back in browser history
   wrong "window" of the slider is displayed.
   This bug has been introduced in Ib3f4a6ac57ff17008f9d8784c4716bd294443096
 - when clicking revision bars the history state should contain
   the position of the changed after the clicking instead of the
   position prior to the event. Otherwise when going back and forward,
   the latter does not change the pointer positions (two top history
   states before going back store the same pointer positions).

Change-Id: I2305a731a5e43ea15ad8468eb3dc4a5eea12b182
2016-08-01 12:35:35 +02:00
addshore 093bb1466b Use history.replaceState on initial load
Bug: T141732
Change-Id: I283b9f45f9ecf6bed5d5031ea21b374f12758309
2016-07-31 20:13:00 +01:00
addshore f7289bf65c Use SliderView refreshRevisions method in SliderView
Change-Id: Ibaeb9776ee18061c99ddf1a6e794b5a3a6faa16a
2016-07-31 19:50:33 +01:00
Translation updater bot 49d07b80dd Localisation updates from https://translatewiki.net.
Change-Id: Ic960336193b1a7c5f83dd6a97075c4c1fb61a7a9
2016-07-30 22:30:46 +02:00
Translation updater bot 524457c156 Localisation updates from https://translatewiki.net.
Change-Id: I5b9673344e309e7f700885fdca74ba1c664b6577
2016-07-28 23:04:55 +02:00
Leszek Manicki 3cc218391c Include a number in messages showing a number with a unit
Extension should not enforce English order with number being followed
by unit "bytes" in messages related to byte size.
This also splits a message into two messages: one for page size value,
and other for change size. The latter size is signed and value to be
shown is colour-coded HTML element so it is a bit more complicated
case than the page size.

Bug: T141507
Change-Id: I96992eafd4cd8a5aed3fcd5944129bcd83139a16
2016-07-28 15:04:25 +02:00
jenkins-bot 6aea17b627 Merge "Fetch more revisions as the user moves back and forward" 2016-07-28 11:38:53 +00:00
Leszek Manicki dc838bc87d Fetch more revisions as the user moves back and forward
This changes the previous behaviour of fetching always up to
500 most recent revisions.

Now the extensions fetches N revisions including the newer
revision selected to diff as the most recent revision.
N is number of revisions that would fit in the current
window when rendered as bars.
When user is close to either "end" of the slider, extensions
fetches another batch of up to N older or newer revisions,
as long as user does not reach the oldest or the newest
revision of the page.

Among others, this removes the limitations of the previous
approach: showing only 500 revisions, and failing to show
anything when any of selected revisions was older than
500 recent revisions.

This change also simplifies usage of Api class.

Bug: T135005
Change-Id: Ib3f4a6ac57ff17008f9d8784c4716bd294443096
2016-07-28 12:58:35 +02:00
Translation updater bot aa855ba729 Localisation updates from https://translatewiki.net.
Change-Id: Ic46b8ada908583c36ca1abf3ad3f0e9503a10254
2016-07-27 22:39:36 +02:00
jenkins-bot c6be0d7660 Merge "Smarter setting of the "gravity" of tooltips" 2016-07-27 14:27:50 +00:00
Leszek Manicki 0534bf2ba8 Clean up the usage of <bdi> tags
Bug: T141215
Change-Id: I981eb29a40fbca76ae5e7bc6aa3d723ecfb42f23
2016-07-27 11:50:15 +02:00
Leszek Manicki 633e7421e1 Remove HTML tags from i18n messages
This moves all HTML formatting out of messages and makes all
formatting happen in code. This should make work of translator
easier and the UI of the extension no longer rely on HTML tags
being included or not in i18n messages.

In particular "tooltip" rows are now generated in code, with
only their labels being translatable.

Change-Id: I2af9b9f0e231a7b2827a202d9ac7161b8c95855a
2016-07-27 10:28:37 +02:00
Translation updater bot 9b8fc8d968 Localisation updates from https://translatewiki.net.
Change-Id: I527e6835c041caebfe2c1a112d3a05517f2fa864
2016-07-26 22:55:45 +02:00
jenkins-bot eec506ab94 Merge "Add support for GENDER to the username label in the tooltip" 2016-07-26 12:10:40 +00:00
addshore e5c8a04e62 Use Title::inNamespace() in Hooks
Change-Id: I5fc56e612fb48635acb1a8ed6e034968df39afa4
2016-07-26 12:09:45 +01:00
Leszek Manicki c7190cf97d Add support for GENDER to the username label in the tooltip
After fetching a batch of revision data, user names are extracted
and another API query is made to get gender preferences for users.

This change also moves a code responsible for MediaWiki API calls
to its own class.

Bug: T136367
Change-Id: Id11fe14e9ca37829141ae92b13b51f10f992eb96
2016-07-26 11:50:59 +02:00
Leszek Manicki 8ec7004cc3 Do not escape quotes and double quotes in user names
Quotes and double quotes are allowed as part of a user name/page title.
Other things escaped by previously used mw.html.escape, ie. <, >, &
are not allowed in a user name any way. But just in case, to stick with
current preventive behaviour, this strips those three characters
if they somehow happen to appear in the user name returned by API.

Bug: T141171
Change-Id: I08dd09dcc94823461d7e9a8b116c088c4e8ee8d5
2016-07-26 10:24:44 +02:00
jenkins-bot 83e98ade8c Merge "Don't load on Special pages" 2016-07-26 07:19:39 +00:00
Translation updater bot ed24aff549 Localisation updates from https://translatewiki.net.
Change-Id: Ie4339842ef4b7f19d5cdcdc7d1caf64c2eb7511d
2016-07-25 22:25:39 +02:00
addshore f61443cb9d Don't load on Special pages
Bug: T141296
Change-Id: I3b2e37d45793d8f3ac50f06e92d767368eadee29
2016-07-25 21:15:15 +01:00
Leszek Manicki d737153e29 Smarter setting of the "gravity" of tooltips
This adjusts the position of the tooltip depending on what is the
position of the related revision bar in the plot, and on the
size of the contents of the tooltip.

This change makes the tooltip be always displayed below
the revision plot, so it is visible to the user no matter if there is
enough (visible) space above the plot.
Also now it is checked if there is enough space on the left and right
side of the browser window to display the tooltip centered horizontally.
If not, this adjusts the horizontal position of the tooltip so that
it does not get shown outside of the window.
The latter in particular improves displaying of longer edit
summaries in RTL mode. Apparently LTR-centered browsers took care
of not showing the tooltip outside the right edge of the window
but in the case of left edge the tooltip could run outside of the window
leaving a part of summary not visible to the user without scrolling.

Bug: T141071
Bug: T141093
Change-Id: I8d519c5fd42d8403b527fa97d72a5c46991fc27b
2016-07-25 12:14:42 +02:00
Translation updater bot ea9860b7cd Localisation updates from https://translatewiki.net.
Change-Id: I2aea0b57c8d580a106ca583470769be3153cc91e
2016-07-22 22:41:19 +02:00
WMDE-Fisch 23348bae74 Fix naming issues in some messages
Change-Id: I36873a72ea28748f5355f9bca32893512fbadd78
2016-07-22 10:03:17 +02:00
Translation updater bot d55b254ba7 Localisation updates from https://translatewiki.net.
Change-Id: Idb059dd1fffe806b37219fd4b65e79eea7cc81dd
2016-07-21 23:00:07 +02:00
Translation updater bot 147fa86bab Localisation updates from https://translatewiki.net.
Change-Id: Ic0686fdd31d7a7f2699e1ed02b517b373e8adb9b
2016-07-20 22:41:23 +02:00
Leszek Manicki 133585fe1d Update a link to Meta page on the Technical Wishlist
The Meta page has been moved so the link should also reflect that.
The old Meta page is redirecting to the new one, so this is not
a critical change.

Bug: T140875
Change-Id: Id07c94aa28290b616693ee379451f30c278a75fb
2016-07-20 18:08:47 +02:00
Leszek Manicki 8d91433b61 Open links in the "tutorial" in the new window
In particular, link to a Meta page on the related community wish
should open in the new window/tab.

Bug: T140875
Change-Id: Ib0d7bf679c9ac8a3ee2fdf2289fc53cfdfdaa671
2016-07-20 12:28:20 +02:00
Leszek Manicki f13e71e9cd Fix spelling of RevisionSlider
Use consistently "RevisionSlider" and not "Revision Slider" in messages

Bug: T140875
Change-Id: If5474041198fc65f57cfae1199c9528871536373
2016-07-20 09:46:44 +00:00
Translation updater bot 129d8b8127 Localisation updates from https://translatewiki.net.
Change-Id: Ib685a112854d7d66ada01aa25a4bd3ca9fdc15e1
2016-07-19 22:29:06 +02:00
Translation updater bot d14b2f2f25 Localisation updates from https://translatewiki.net.
Change-Id: I3b4e739c2598a4f99690459b1e56a2fbdb14d326
2016-07-18 22:30:48 +02:00
jenkins-bot e017abc3f3 Merge "Make sure that positive/negative sign in displayed correctly" 2016-07-18 12:34:54 +00:00
Amire80 bee97e111f Make sure that positive/negative sign in displayed correctly
In RTL UI the positive and negative numbers will
appear on the wrong side unless the direction is
defined explicitly.

Change-Id: I39ef512993878daf10008e967ffd0492f7e1e80a
2016-07-18 11:24:08 +00:00
addshore b6d1e3962e Add ellipsis to loading message
Bug: T140579
Change-Id: I28add40fb9c9e88a5352a70d07a77521b74ffe03
2016-07-18 11:15:44 +01:00
Translation updater bot f0c29b2ddc Localisation updates from https://translatewiki.net.
Change-Id: I7294af5531a5123d4553e6549515033feab03197
2016-07-17 22:30:37 +02:00
Translation updater bot 96d0760c53 Localisation updates from https://translatewiki.net.
Change-Id: Ic0e47f4cb4f5c25a7dc536deecfd80197efc082e
2016-07-16 22:59:41 +02:00
Translation updater bot b727bae8f2 Localisation updates from https://translatewiki.net.
Change-Id: I75fa4eff1961f76542b5f6d3cbca4da87f991cfd
2016-07-15 22:30:51 +02:00
WMDE-leszek 6b95bbf194 Merge "Account for suppressed comments and users" 2016-07-15 10:20:43 +00:00