Commit graph

359 commits

Author SHA1 Message Date
Translation updater bot a76c3ad66d Localisation updates from https://translatewiki.net.
Change-Id: I46dedc50c43bc858187fb179c387d36fd305f61a
2015-09-08 21:50:34 +02:00
Translation updater bot 0853d62fa0 Localisation updates from https://translatewiki.net.
Change-Id: I05d75e4f420a5915e346a120e51b2e2567a6be56
2015-09-05 21:10:47 +02:00
Translation updater bot b3bdb8691d Localisation updates from https://translatewiki.net.
Change-Id: Icfa560e58cb0deabd2722c261ec44ce8f3c8d6e4
2015-09-04 21:54:45 +02:00
Translation updater bot c503547e47 Localisation updates from https://translatewiki.net.
Change-Id: I6aad78decfbb76f3ea704a381971ff73cb5f31cb
2015-09-02 21:39:43 +02:00
Translation updater bot 2462889843 Localisation updates from https://translatewiki.net.
Change-Id: I42f1f5497936b7fb0a5af3050a5955ec1508640c
2015-09-01 21:46:35 +02:00
jenkins-bot 8502d3ea05 Merge "Specialized inspector for ISBN magic links" 2015-09-01 18:34:23 +00:00
C. Scott Ananian 7cc23367f6 Specialized inspector for ISBN magic links
Implement a special node type, context item, and inspector for
ISBN/PMID/RFC magic links.  Add buttons to the link inspectors
to convert back and forth between "simple" links, and magic links.

Depends on I5d000d8b63dafdfe0a2753069d3f0ac5b03b8829 in Parsoid
for clean round-tripping of localized ISBN magic links.

Bug: T63558
Change-Id: Id5b7a2ae3c80b0e5eed598f0bd024d3e94f7e9aa
2015-09-01 14:25:59 -04:00
Translation updater bot 3f0be19d56 Localisation updates from https://translatewiki.net.
Change-Id: I0d2732c724ac3c422eb76a269be789fd0805e62a
2015-08-29 21:47:45 +02:00
Translation updater bot 397c5ce65e Merge "Localisation updates from https://translatewiki.net." 2015-08-27 19:40:29 +00:00
Translation updater bot c0c1b542b3 Localisation updates from https://translatewiki.net.
Change-Id: Iefbd74f51a24c9018fed8cd5551e5d2eb0927380
2015-08-27 21:38:37 +02:00
Roan Kattouw e4d2d4785e ve.dm.MWImageModel: Require parent document
Add a parentDoc parameter to the MWImageModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

Also add a parentDoc parameter to newFromImageAttributes(), replacing
the lang and dir parameters. Remove the unused and ill-conceived
caption parameter.

This causes caption documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
images because a document generated by cloneFromRange() (which
propagates the HTML document) was passed into setCaptionDocument(),
but it didn't work when creating new images.

Bug: T109599
Change-Id: Ida36862092cd779ffc2f04c0ecbc1164f8d71453
2015-08-27 00:09:21 -07:00
jenkins-bot c02874842b Merge "Fix pattern for matching wikitext headings" 2015-08-25 16:23:15 +00:00
jenkins-bot 547d5afebd Merge "MWInternalLinkAnnotation: Override new getDisplayTitle method" 2015-08-24 21:41:22 +00:00
Ed Sanders a67965a888 MWInternalLinkAnnotation: Override new getDisplayTitle method
This allows the URL paste handler to use the normalized title
as the text content. Add a test to cover this behaviour.

Depends on Ica48fea69cc in core.

Bug: T109980
Change-Id: I2784adaf2949a73256049921227dde0917ef9aef
2015-08-24 14:29:49 -07:00
Ed Sanders 456439923a Fix pattern for matching wikitext headings
Fix the back-reference to \1 (1st set of brakcets).

Add an test to make sure the example sequences actually trigger the
wikitextString handler, and tweak test to ensure that the start-of-line
restriction in the heading regexp doesn't affect link matches.

Change-Id: I76187a12292a4923d1ee2505cfb955431ac252bb
2015-08-24 16:54:45 -04:00
Ed Sanders a33b082c13 MWWikitextStringTransferHandler: Show indeterminate progress bar while converting
Also store the abortable API request so it can be cancelled
by the dialog.

To test this, put sleep(4); in ApiVisualEditor.php.

Depends on Ied21e574baa in core.

Change-Id: I83ffa9e0b7164ca4a34eae86cde452d8f38dc853
2015-08-23 14:18:40 -07:00
C. Scott Ananian ceb0e1f867 Autolink typed ISBN/RFC/PMIDs
Depends on Ibdad2fa98fca08eeaa96bf33a08dd7723c1edb8c in Parsoid.

Depends on I3dcd289ed7b565b9162ee671038eeb45449e1215 in ve-core.

Bug: T109498
Change-Id: I5650410d7fca30c90baddd4f0c3f6d80e6b39042
2015-08-23 13:59:22 -07:00
Translation updater bot d9af00392f Localisation updates from https://translatewiki.net.
Change-Id: I0c362dd030a23102524c0300d6bc6a6771f6b6fa
2015-08-21 21:00:37 +02:00
jenkins-bot c20915032e Merge "QA: Upgrading to mw-selenium 1.x" 2015-08-20 17:27:12 +00:00
Dan Duvall 668a149103 QA: Upgrading to mw-selenium 1.x
Upgraded mw-selenium to 1.x, following the docs at
https://doc.wikimedia.org/rubygems/mediawiki-selenium/file.UPGRADE.html

Created an `environments.yml` file, converted page object definitions to
use relative paths, and refactored references to the global `ENV` using
methods of `MediawikiSelenium::Environment`.

Upgraded commons_upload as well to resolve a dependency conflict on
mediawiki_api.

Paired with: Rummana Yasmeen <ryasmeen@wikimedia.org>

Bug: T99661
Change-Id: I2a05cd816ea43afb48157e5dbe1ae42c6c124f6b
2015-08-20 09:52:16 -07:00
jenkins-bot 90b2717bb9 Merge "build: Enable jscs rule 'requireVarDeclFirst' and make pass" 2015-08-19 20:45:13 +00:00
jenkins-bot 8b50887e78 Merge "build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass" 2015-08-19 20:31:38 +00:00
Translation updater bot 6f5de25be5 Localisation updates from https://translatewiki.net.
Change-Id: I08cf651d4e52d32b5c9a700630fa98308f7e6455
2015-08-19 22:16:27 +02:00
James D. Forrester 19df1d4c8a build: Enable jscs rule 'requireVarDeclFirst' and make pass
Change-Id: Ia2f765d12bde001c329c2ff4c080a36b71de9803
2015-08-19 11:05:01 -07:00
James D. Forrester f5c6f61163 build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass
Change-Id: I846d36c15e1b1f810d2ef7fd422f8412790bcb0f
2015-08-19 10:33:02 -07:00
C. Scott Ananian a6775796fe Detect paste of wikitext and convert it
This invokes Parsoid to convert likely wikitext pastes.

This addresses about 20% of the <nowiki> insertion quantified at
https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:%C3%89diteurVisuel/Avis/Nowiki
for 2015-04-08 which were due to inadvertent pastes of wikitext.

For a better user experience, suppress Parsoid's P-wrapping if the
output consists of a single top-level P element.  This ensures that
pasting '[[Foo]]' won't add an unexpected newline before the paste.

Bug: T54204
Bug: T109449
Change-Id: I26a4cd8dc5b7e7caf16ca081dbe7baf6a7db8e5c
2015-08-18 15:16:06 +00:00
James D. Forrester e282522cf2 Update VE core submodule to master (cf224ad)
New changes:
263b4fc Localisation updates from https://translatewiki.net.
0487dcc ve.dm.CommentNode: Add space to comments' clipboard html
3a5422b DebugBar: Add a close button

Change-Id: I9ff3a77a3eb8d2d9a9dc61aa6cb52db577d1592e
2015-08-18 10:24:39 +01:00
C. Scott Ananian c197d0b075 Update VE core submodule to master (d020898)
New changes:
985edd2 Localisation updates from https://translatewiki.net.
9883b44 Follow-up 985edd24: Fix build for added language 'shn'
b0d5ee2 Localisation updates from https://translatewiki.net.
18ca837 Localisation updates from https://translatewiki.net.
f6a0945 Don't include trailing punctuation in autolinked typed text

Local changes:
* Add MW-specific trailing punctuation rules for autolinking

Change-Id: Iaa620142222f47e9fde2d03b935f38c24d38800b
2015-08-17 10:01:54 -07:00
Translation updater bot f317630ccf Localisation updates from https://translatewiki.net.
Change-Id: Id71873e306b7a8a66eae2d5d7ccbf89893fe1c7c
2015-08-16 21:57:49 +02:00
Translation updater bot 77b9f27ef8 Localisation updates from https://translatewiki.net.
Change-Id: I821f333cbe82f5964ff8bfcba0bf5809cfb23211
2015-08-15 21:49:39 +02:00
Translation updater bot 50f4cfad7f Localisation updates from https://translatewiki.net.
Change-Id: I825f0927b0061bc63d1c2b0054a843a7de81b595
2015-08-14 22:13:10 +02:00
Translation updater bot 6a16eabad0 Localisation updates from https://translatewiki.net.
Change-Id: I25ea3f11a3fcc85c9c9f5965660cf7f9a1f30ee0
2015-08-13 20:58:37 +02:00
Translation updater bot cb610dc041 Localisation updates from https://translatewiki.net.
Change-Id: I87160b9cd22e571afd19a9f323274a4e48f4a473
2015-08-12 21:34:49 +02:00
Translation updater bot 6e140ff83c Localisation updates from https://translatewiki.net.
Change-Id: I6e53b60e8f11bf32a8307100ce1e2ed18f2292bb
2015-08-08 21:16:04 +02:00
Translation updater bot b6d587b800 Localisation updates from https://translatewiki.net.
Change-Id: I0cd237cefbbfd5bb49f7f5d38ed5829fee57203c
2015-08-07 21:54:33 +02:00
Translation updater bot 4602beba6d Localisation updates from https://translatewiki.net.
Change-Id: I208aec94262c922c88243256b74c8cee13da5958
2015-08-06 21:39:32 +02:00
Translation updater bot 165c4c8ef0 Localisation updates from https://translatewiki.net.
Change-Id: I9820f9acaff2187368611ae644384f250dc59fbb
2015-08-05 22:37:38 +02:00
Translation updater bot 51dae38da6 Localisation updates from https://translatewiki.net.
Change-Id: I666ab2ef0e864ce5166a2fe5a95b033514b04f36
2015-08-04 23:18:28 +02:00
Jforrester dbe11c3b14 Revert "Revert "For empty / whitespace-only headings, output <p> instead of <h#>""
It's seemingly still needed.

This reverts commit 924c58a893.

Change-Id: Ib9428865fbab2669153bd23cf239717080eb8291
2015-08-03 22:49:16 +00:00
Translation updater bot daa87a3651 Localisation updates from https://translatewiki.net.
Change-Id: I5e096e96395b6df698aa210fabdb91a6fd3e59c1
2015-08-03 22:06:38 +02:00
jenkins-bot c98038d258 Merge "MW target: Make 'static' methods either static or be instance methods" 2015-08-01 22:41:53 +00:00
Ed Sanders fd2ef3e4cd MW target: Make 'static' methods either static or be instance methods
MW target has 'static' methods, some of which aren't attached
to the static property, the rest of which should be instance methods.

Rename success/fail functions to remove 'on' as that is reserved for
actual event listeners.

Change-Id: I63e68dbe1923906208b180abfc4a9a280b4d098e
2015-08-01 22:38:49 +00:00
Translation updater bot b61ce1bb1b Localisation updates from https://translatewiki.net.
Change-Id: I0c6c26e8530944e904a351bbae82ac7b3e74611a
2015-08-01 21:49:37 +02:00
Translation updater bot ba6fca03cd Localisation updates from https://translatewiki.net.
Change-Id: I0de5d945fbf3b21e91be2270166a675e0e3c440c
2015-07-30 21:13:45 +02:00
Ed Sanders d2c15e9eb5 Bring in code from MobileFrontend
* Use local edit source tool, and emit event to MF
* Bring in toolbar styles, bonus: remove old desktop style hacks

Bug: T96186
Change-Id: I89351e409aa4e9d626edd7151ae05bdcd58f1cee
2015-07-30 17:13:00 +00:00
Translation updater bot 7ae8321366 Localisation updates from https://translatewiki.net.
Change-Id: I67fff722b4925649f82e2672f48871fce296d7d7
2015-07-29 21:52:32 +02:00
Ed Sanders fecdc29a38 Replace ve-init-mw-desktopArticleTarget-* with ve-init-mw-target-*
Except in cases where it is only applied to desktop articles.

Change-Id: I40a9dabcd8454138f94affde809afee9c93732a4
2015-07-29 18:26:36 +01:00
Ed Sanders b5de6fa575 [BREAKING CHANGE] Rename (View|Mobile)PageTarget to (Desktop|Mobile)ArticleTarget
Change-Id: I6a8fa76dc4d70cc04722e30e3fea6a6112d56b40
2015-07-29 18:26:36 +01:00
Translation updater bot d319217d34 Localisation updates from https://translatewiki.net.
Change-Id: I48148623ed24a6dc8b3a366f19850b4ed1875f21
2015-07-28 21:51:17 +02:00
Translation updater bot f4978517d0 Localisation updates from https://translatewiki.net.
Change-Id: I2d39f194ddce159861b20f25aaae39deb9d8741b
2015-07-26 21:42:26 +02:00