Commit graph

3666 commits

Author SHA1 Message Date
Amir E. Aharoni d231bcbb19 [BrowserTest] Add prefixes to language screenshot messages
Change-Id: I96c01763d1003619e9c8b0f549a53a1956dde16a
2015-07-20 00:24:42 -05:00
Translation updater bot 307c182569 Localisation updates from https://translatewiki.net.
Change-Id: I5c53115b8a2e7b1bf50a0e948da3e574680a5322
2015-07-19 21:39:56 +02:00
Ed Sanders 8e0394da5c Support command whitelist feature
Depends on I87d8aa3 in core.

Bug: T106061
Change-Id: I694e4e5a83f281da92380a895b72611141838f42
2015-07-18 18:20:49 -05:00
Ed Sanders bb46c34255 Update VE core submodule to master (edaa19b)
New changes:
aab2e90 Localisation updates from https://translatewiki.net.
826055a [BREAKING CHANGE] Rename SurfaceWidget to TargetWidget

Local changes:
* [PULL THROUGH] Rename MWSurfaceWidget to MWTargetWidget

Bug: T94066
Change-Id: If578e15c1ee7effd5ca1d6073521a6c59caac255
2015-07-18 17:19:05 -05:00
Translation updater bot fb78225f76 Localisation updates from https://translatewiki.net.
Change-Id: I2e20ea382c59661ad6c387cfe0798064b61f65c2
2015-07-18 22:04:02 +02:00
Vikas S Yaligar d42e10cacb [BrowserTest] Added screenshots scenarios for links and categories
Also minor cleanup of rspec old "should" syntax, changed all occurences to
"expect" syntax.

Change-Id: I0c2dfc18d06812ed9da2f6c0056c95b7755e5afd
2015-07-18 15:39:28 +00:00
jenkins-bot 0e5a6aca32 Merge "Don't set browser-prefixed transition CSS classes" 2015-07-18 05:35:45 +00:00
jenkins-bot 3d6af458dd Merge "ve.init.mw.TargetLoader: Error when RESTbase load call fails" 2015-07-18 05:21:37 +00:00
Kunal Mehta 0653804151 Don't set browser-prefixed transition CSS classes
jQuery will take care of this automatically: <https://api.jquery.com/css/#css2>.

Follows up bf56f56f3e.

Change-Id: I4db46fc70a5446a9ffc9f6d4375fae3b53609ee0
2015-07-17 16:31:56 -05:00
Translation updater bot 2db8d335f8 Localisation updates from https://translatewiki.net.
Change-Id: I56ecd8fe4e6957fa9af3b0b716b0589260b994c4
2015-07-17 22:26:26 +02:00
Vikas S Yaligar 8b7b20b934 [BrowserTest] Add true internationalized content support to language screenshot
* All translations will be in tests/browser/i18n folder
* Hebrew json’s are added, which needs to be translated.

Paired with Zeljko.

Bug: T105466
Change-Id: I4ae516758fb01a41f0dcf53c7cf3e609c7601cf3
2015-07-16 14:47:56 -05:00
Translation updater bot 43eb3493a8 Localisation updates from https://translatewiki.net.
Change-Id: I68b9b35168115f8007297d4a097c22976fc2f165
2015-07-15 21:43:32 +02:00
jenkins-bot 78a629f46b Merge "i18n: Remove references to 'VisualEditor', instead say 'the visual editor'" 2015-07-15 15:35:47 +00:00
Translation updater bot 89b2054b0c Localisation updates from https://translatewiki.net.
Change-Id: I48e93e1833483204d1a877143b918edfe94a7680
2015-07-14 22:03:32 +02:00
Translation updater bot 16263c9a67 Localisation updates from https://translatewiki.net.
Change-Id: I8b7e871ec998cfd7fe958405e5cb1785368f04f8
2015-07-13 21:36:33 +02:00
jenkins-bot c451470224 Merge "Remove listeners from deprecated search widget 'select' events" 2015-07-13 15:17:22 +00:00
jenkins-bot b7631330a8 Merge "ve.ui.MWReferenceResultWidget: Remove unused 'divider' code and styles" 2015-07-13 15:11:48 +00:00
Ed Sanders 0c1eb0cf33 Remove listeners from deprecated search widget 'select' events
Attach listeners to search *result* widget 'choose' events instead.

Also, pass reference model as 'data' to MWReferenceResultWidget, instead
of index so we don't have to do a lookup later.

Change-Id: I8a9b7ddaa70e29406726ac8463582a8bcf813128
2015-07-13 17:06:28 +02:00
Ed Sanders 5fb8d3a4d0 ve.ui.MWReferenceResultWidget: Remove unused 'divider' code and styles
Also, tweak documentation.

Change-Id: Iaf5045bd65d0d484c8810f4bbe097d6710ca6e7e
2015-07-13 17:06:27 +02:00
Translation updater bot 3991fca8ea Localisation updates from https://translatewiki.net.
Change-Id: I0244f2550f52200365d17c181f3af1a0f127a8b3
2015-07-12 21:52:24 +02:00
Translation updater bot 2653374352 Localisation updates from https://translatewiki.net.
Change-Id: Icabe5b8d0612d0f0d3ba67043285c88fac733b4f
2015-07-11 22:08:20 +02:00
Alex Monk 7653dec439 ve.init.mw.TargetLoader: Error when RESTbase load call fails
No retry right now, but we should at least stop failing silently. Doing this
in a window.alert() for now, as OOUI isn't available at this part of the
page load just yet (that will be coming soon).

Bug: T97041
Change-Id: Iacb195667215ee69d3991e4c41651ab6042243c5
2015-07-10 18:13:37 -07:00
jenkins-bot b4cef1cf01 Merge "Never use original data optimisation when in clipboard mode" 2015-07-10 19:49:41 +00:00
Ed Sanders aeedd808cd Never use original data optimisation when in clipboard mode
In clipboard mode we need the full body regardless of if the reference
has changed since load or not.

Bug: T104230
Change-Id: Ie59e04d381f2fd2680e8af0cf05a80df71052822
2015-07-10 19:45:56 +00:00
Translation updater bot e45674e881 Localisation updates from https://translatewiki.net.
Change-Id: I37e335f6f0dcc739c06d67eaf20fdde4fc9c92ae
2015-07-10 21:16:58 +02:00
jenkins-bot 0f44091150 Merge "Bypass ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref when determining text" 2015-07-09 23:22:48 +00:00
Translation updater bot dc66b82009 Localisation updates from https://translatewiki.net.
Change-Id: I99c36d2efef9db27b4956e5ca243f3666a72a1e1
2015-07-09 22:05:40 +02:00
Ed Sanders 924c58a893 Revert "For empty / whitespace-only headings, output <p> instead of <h#>"
Functionality is now provided by Parsoid's scrubWikitext.

This reverts commit 884f301aa0.

Change-Id: I19f340a1c2d9718bfa05c6667042488f3a589719
2015-07-09 11:46:50 +01:00
Alex Monk b8c39de8ef Bypass ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref when determining text
Bug: T104838
Change-Id: I0f754c949e494744adab5f191b5e8acce0c5d0fe
2015-07-09 02:03:04 +01:00
Translation updater bot d69efc426d Localisation updates from https://translatewiki.net.
Change-Id: Ia23b26ce63a463a9bc4d1d512c092bd100fc8683
2015-07-08 21:57:53 +02:00
jenkins-bot 2cf60686af Merge "Check if links are 'known' rather than 'exist' locally" 2015-07-08 19:29:22 +00:00
Ed Sanders 8971edb480 Check if links are 'known' rather than 'exist' locally
This data is used for marking links red, but links which are known
but don't exist (e.g. interwikis) are not red.

Also fix bug in API caused by trying to return a value of (bool)true which is
apparently not allowed. Use (number)1 instead.

Bug: T104604
Change-Id: I599a513a27b31f7167e688d73bc3685141249971
2015-07-08 20:26:04 +01:00
jenkins-bot 3039da4e30 Merge "Fix section scrolling" 2015-07-08 18:32:03 +00:00
jenkins-bot c39bd98597 Merge "Revert "Make toolbar save button frameless"" 2015-07-08 15:38:55 +00:00
Ed Sanders be5df39f5b Fix section scrolling
Core code now has a scrollIntoView animation triggered on focus
which needs to be cancelled before we scroll to the section heading.

Change-Id: I5eb6a5c98b38c2510d2d7f0108fe56e607b34bd6
2015-07-08 15:34:43 +01:00
Translation updater bot 5f89a6ca6e Localisation updates from https://translatewiki.net.
Change-Id: I63422a4e87f7a2f25a935a86ce6104b5aaa2cfa5
2015-07-07 22:12:04 +02:00
Bartosz Dziewoński 652da4afab Revert "Make toolbar save button frameless"
This reverts commit cb11cbd2f5.

Actually not needed after 3d36cac7fc4808f708f03b66f5c099de440e4569
in OOjs UI, and would change the UI in unexpected way.

Bug: T103403
Change-Id: Ia30b168ea29d03aa76ad81d1f9894a67604fdc08
2015-07-07 14:21:04 +00:00
Marc Ordinas i Llopis 7a33613d23 Use Parsoid's new Cite HTML and CSS
Starting with I21fbbd3247bf7801e5ef9bd5312f95777f4dd6ef, Parsoid
will emit a new HTML for its Cite extension, which enables CSS
styling. In I487095df8a7c4241a14f7b4480360f6774130bec the new
module 'ext.cite.style' is added to the Cite extension to style
this new HTML format.

This patch
* Loads the ext.cite.style module if the Cite extension is
  present.
* Uses the new HTML format for the internal structure of
  reference and reference list nodes, so they are correctly
  styled.

Backwards compatibility: Only new HTML is used internally in VE,
so as long as ext.cite.style can be loaded the new styles will be
used. It does not depend on which format Parsoid returns, so this
patch only depends on the Cite extension patch, not on the Parsoid
one.

Note: The only way I've found of adding a ext.cite.style dependency
only if Cite is present is to register the whole
ext.visualEditor.mwreference module in the
onResourceLoaderRegisterModules hook. Maybe someone can point to
a better way?

Bug: T86782
Change-Id: Ibf333a502d64d2ed6e029221458b7c606554e414
2015-07-06 14:23:18 -07:00
Translation updater bot cfb378930f Localisation updates from https://translatewiki.net.
Change-Id: I986d1348c91a5ea36b621d1328b71a37fdaf34dc
2015-07-06 21:48:50 +02:00
James D. Forrester 9b5639681e i18n: Remove references to 'VisualEditor', instead say 'the visual editor'
De-emphasising the product name as it's intimidating and irrelevant to most
users what the name of the software they're using is. Leaving the beta
welcome dialog alone, as that's being worked on as a larger piece.

Change-Id: I92e82ed004f7615f96818872df5f64fec38fbee0
2015-07-06 11:10:38 -07:00
Translation updater bot 2b33948661 Localisation updates from https://translatewiki.net.
Change-Id: Ia9d325d773eadb417d9e6787529d7f299ec104b2
2015-07-05 22:02:13 +02:00
Translation updater bot 16e9083113 Localisation updates from https://translatewiki.net.
Change-Id: I6c8cbcb76bec5789fdaec223e95f0fe8269fac30
2015-07-04 20:40:09 +02:00
jenkins-bot 36dac12958 Merge "Use core dimension widget times separator" 2015-07-03 22:20:33 +00:00
James D. Forrester 57a86aa0e2 Delete the never-used 'MW alien' Beta Feature hook/i18n
The feature is now available for all, so this won't be needed.

Change-Id: I553c9473953651c0963609dd22a895e17c2e2af5
2015-07-03 12:41:20 -07:00
Translation updater bot 422d82448d Localisation updates from https://translatewiki.net.
Change-Id: I818b50c7dc9fee48b5263ed17e170e567633b3ca
2015-07-03 20:51:56 +02:00
Ed Sanders 84eadef74a Use core dimension widget times separator
For de-duplication, and because trailing whitespace is not allowed.

Bug: T104691
Change-Id: I2e65799daae7e57e6e638b3d6dcf968a6f4582c7
2015-07-03 13:21:29 +01:00
jenkins-bot 9e730bf528 Merge "Save dialog: Show reload link next to FancyCaptchas" 2015-07-02 22:39:26 +00:00
jenkins-bot 3321989d82 Merge "Populate the internal target lookup menu when the user opens the link inspector" 2015-07-02 22:39:23 +00:00
jenkins-bot de8afeb833 Merge "MWInternalLinkAnnotationWidget: Force 'Open' button to use full path" 2015-07-02 22:39:21 +00:00
jenkins-bot 052405565c Merge "Revert "Show <newarticletext> as surface placeholder, not an edit notice"" 2015-07-02 20:45:28 +00:00
Alex Monk a5281d01c7 Populate the internal target lookup menu when the user opens the link inspector
Instead of only having it be populated upon setup.

Bug: T97723
Change-Id: I5ead32625efa79289b38955546a5843adef13101
2015-07-02 20:37:13 +00:00
Jforrester 96285182b2 Revert "Localisation updates from https://translatewiki.net."
Not sure if a TWN config change happened, but this breaks the repo pretty epically.

This reverts commit 57237c2133.

Change-Id: I3ed8140e7a9e052d4c547724648ce8859c27db38
2015-07-02 20:22:21 +00:00
Translation updater bot 57237c2133 Localisation updates from https://translatewiki.net.
Change-Id: If27897fa36a70187b38899985e7a346d54eb0766
2015-07-02 21:30:19 +02:00
Alex Monk c912f4e6dc Save dialog: Show reload link next to FancyCaptchas
Bug: T103227
Change-Id: Ib0548aa8ce3e2322dedc9980323e6e1f1cd705a0
2015-07-02 20:12:34 +01:00
Esanders b2ff7aaa17 Revert "Show <newarticletext> as surface placeholder, not an edit notice"
This reverts commit 5ac5c7a05b.

Bug: T104227
Change-Id: Id86dd228c2c671758acc6d2d3314c92da8917472
2015-07-02 15:20:24 +00:00
jenkins-bot 6e601a9930 Merge "Make toolbar save button frameless" 2015-07-01 22:48:16 +00:00
jenkins-bot 859f6daee6 Merge "Show <newarticletext> as surface placeholder, not an edit notice" 2015-07-01 15:49:12 +00:00
Alex Monk 5ac5c7a05b Show <newarticletext> as surface placeholder, not an edit notice
Bug: T104227
Change-Id: If0e1df48c1b3818235f7e02220144d467fb78fe9
2015-07-01 15:46:09 +00:00
Ed Sanders bef186c874 ViewPageTarget-vector.css: Fix non-HD mode typo
Missing comma between two selectors

Change-Id: I3e2ab561991f5f11598be1460f65a239e3c0d7ca
2015-07-01 15:35:55 +00:00
Ed Sanders cb11cbd2f5 Make toolbar save button frameless
Depends on I26b540dd2 in oojs-ui for styling.

Bug: T101165
Change-Id: I075b8cecf9df2026fb1da17e2ebdf0d848a3d250
2015-07-01 12:12:50 +01:00
Translation updater bot e47587c4ab Localisation updates from https://translatewiki.net.
Change-Id: Iad3cab6fae48a54087787fd41436e05f7fb44749
2015-06-30 21:26:38 +02:00
jenkins-bot b9da7365ef Merge "Make texts of edit tabs' tooltips more helpful to new users" 2015-06-30 18:44:19 +00:00
jenkins-bot 78aba18b1e Merge "Use new hasContent method on linear data" 2015-06-30 15:47:42 +00:00
Ed Sanders 472c98053d Ensure placeholder styling matches document
Bug: T96593
Change-Id: I23bb1393a9a6779b70ed1004496f3ca6ff038e43
2015-06-30 09:47:34 +01:00
Ed Sanders 6822635158 Use new hasContent method on linear data
Change-Id: I430e628a9db30970ecdf6996bc51e7440a474077
2015-06-30 09:45:24 +01:00
Roan Kattouw 6aac8eed78 Follow-up 8112c3ba30: fix JS error on link inspector teardown
LinkAnnotationInspector in VE core calls
this.setAnnotation( null ); on teardown, which causes
MWLinkAnnotationInspector#onInternalLinkChange to be invoked
with a null fragment.

Bug: T103176
Bug: T104231
Change-Id: Ibb50ba1696609bebdfc2857ea292ee30b6b5126a
2015-06-29 23:53:49 +00:00
Bartosz Dziewoński 6d18641e4d Specify 'associatedWindows' for link and citation tools
Depends on I21fb955ecb697060263538914014d5712e013695 in core.

Bug: T98845
Change-Id: Id7f59c0095e8d85bb608bed0ab60603665fbca47
2015-06-29 16:26:32 -07:00
jenkins-bot 1beb1cb386 Merge "Don't add basic reference tool to catch-all" 2015-06-29 21:17:07 +00:00
James D. Forrester 71623b0e53 Make texts of edit tabs' tooltips more helpful to new users
We used to re-label the other edit tab but this fell away for Wikimedia users
when we switched from adding a new tab to replacing the old one via config;
over-riding 'tooltip-ca-edit' looks like the best way of doing this here. The
mention of wikitext means it's less of a shock to users.

Bug: T99271
Change-Id: I0cb871095c9e5e8ef5a3c73b3bb105079b451dec
2015-06-29 13:39:27 -07:00
Translation updater bot 686dd8bfb5 Localisation updates from https://translatewiki.net.
Change-Id: I3fc86154fb067959491636dc13f48d139be363cb
2015-06-29 20:53:14 +02:00
Alex Monk 93c2ac5014 Don't add basic reference tool to catch-all
Bug: T101130
Change-Id: I225da5cb6a9b961af556029166bdf728197475e4
2015-06-29 19:42:00 +01:00
Translation updater bot 90b9f93ed2 Localisation updates from https://translatewiki.net.
Change-Id: I7d166d58cf13358820c2500d9b7a55930f4c0474
2015-06-28 22:19:08 +02:00
Translation updater bot 7280466b2c Localisation updates from https://translatewiki.net.
Change-Id: I6d6f22ee28c71fd668b15514f2936318e31705c8
2015-06-26 22:00:09 +02:00
jenkins-bot e3f439d5fe Merge "Get rid of Category: prefix when looking up categories from the API" 2015-06-26 15:34:35 +00:00
jenkins-bot 112d1e3744 Merge "MWLinkAnnotationInspector: Get HtmlDocument in a different way" 2015-06-26 10:45:16 +00:00
jenkins-bot bd394194e3 Merge "ve.init.mw.Target: Strip all <script>/<object>/<style>/<embed> on save" 2015-06-25 23:45:00 +00:00
Alex Monk d4e2c55cfc Get rid of Category: prefix when looking up categories from the API
Bug: T103777
Change-Id: I27a81d832e3da7a0177d1c69af605c0525415b6b
2015-06-25 20:19:15 +01:00
Translation updater bot 4f2b052fc2 Localisation updates from https://translatewiki.net.
Change-Id: I20c73ce767aa2de9866fe93febe2da838d1197f7
2015-06-25 20:49:25 +02:00
Matthew Flaschen 8112c3ba30 MWLinkAnnotationInspector: Get HtmlDocument in a different way
Get the HtmlDocument in a different way that doesn't involve
ve.init.target.

For page (non-Flow) MW VE, I checked that it yields the same result.

Bug: T103176
Change-Id: I54bdf4f29f6acf4359be45b5b2ddfd23b5835c34
2015-06-25 11:08:54 -07:00
jenkins-bot ee6c0fb892 Merge "Use new MediaWiki core TitleInputWidget" 2015-06-25 00:23:44 +00:00
jenkins-bot bbd91b0fb9 Merge "Remove redundant match function from block image" 2015-06-25 00:06:40 +00:00
Ed Sanders 52cb066dc7 Use new MediaWiki core TitleInputWidget
All link input/title input functionality has been moved to core, so
we can replace the link widget, redirect widget and template search
widget with it.

Depends on Ib463e60cad96 in MediaWiki core.

Change-Id: I452f3b86ead403307072cf904f0553c9771f4300
2015-06-24 17:06:00 -07:00
jenkins-bot 2582f951af Merge "Give TranclusionNodes a matchFunction so they beat LanguageAnnotations" 2015-06-24 23:53:32 +00:00
Ed Sanders 6d8bd6f6e8 Remove redundant match function from block image
Functionality now provided by allowedRdfaTypes.

Bug: T98999
Change-Id: Icd933f4456fdc85fe08bdc9edc61040cb5bacd89
2015-06-24 23:45:14 +00:00
Translation updater bot b7628ecdba Localisation updates from https://translatewiki.net.
Change-Id: Ie7f6501f8162f8d1f91b452595c4eb2e6b543bdf
2015-06-24 22:08:19 +02:00
Alex Monk c0de5f2f51 MWInternalLinkAnnotationWidget: Force 'Open' button to use full path
Instead of just assuming we're in /wiki/. That might be OK for VE core
and external links, but not for internal MW links.

Bug: T85619
Change-Id: I53d7fed63a66e3c72d4c8fd66cd1f85fb10a2e55
2015-06-23 22:26:10 +00:00
Translation updater bot 2e6060e5c7 Localisation updates from https://translatewiki.net.
Change-Id: I65119d7d69d07d0c9b363dbab9d73043b83262c0
2015-06-23 21:29:39 +02:00
James D. Forrester 4f1881ea74 ve.init.mw.Target: Strip all <script>/<object>/<style>/<embed> on save
Bug: T103430
Change-Id: Ie6ca3181f4c0764625b4d69fa169abc67ffb15bb
2015-06-23 08:42:01 -07:00
Timo Tijhof 87f2d0bc2a Make ext.visualEditor.mwalienextension mandatory (no longer experimental)
This module is required in order to alienate all extension blocks
by default. Otherwise they are interpreted as plain divs which
allow content editable.

Bug: T103455
Change-Id: I08f6b9a516ba6bee6ed18256222108116eceee1e
2015-06-23 03:45:50 +01:00
Translation updater bot 610868d8ba Localisation updates from https://translatewiki.net.
Change-Id: Id569662ba4e278a6f43fba8506a0c52f4eecd59c
2015-06-22 21:19:54 +02:00
Translation updater bot 5931b6edeb Localisation updates from https://translatewiki.net.
Change-Id: I3aaf0d4cbdedf862de827d249f55e9e5bb77af6b
2015-06-21 20:07:01 +02:00
jenkins-bot bb9f9f9fb4 Merge "Converting an error image (red link) from block to inline does not lose its error state" 2015-06-17 17:28:03 +00:00
suchetag f7026d5e5b Converting an error image (red link) from block to inline does not lose its error state
Bug: T101085
Change-Id: I521be8fbcbab27d712ec408ea7048dca2eaab198
2015-06-17 22:41:41 +05:30
Translation updater bot 86aacedf6f Localisation updates from https://translatewiki.net.
Change-Id: I9c820dd7de908d8509ddba195fc2ce6062cf91d9
2015-06-16 22:43:24 +02:00
jenkins-bot 104859c1c7 Merge "mw.ViewPageTarget: Ensure canonial view url is restored" 2015-06-16 15:51:21 +00:00
Ed Sanders 965a5dde89 Give TranclusionNodes a matchFunction so they beat LanguageAnnotations
This is a hacky fix, we should find a better way of telling the
model registry that language annotation loses to certain RDFa types.

Bug: T101977
Change-Id: I8be3aa55cbbc2832b8a02a15de27289b3041967e
2015-06-16 14:12:37 +01:00
jenkins-bot 4984df9331 Merge "Improve readability of license text in save dialog" 2015-06-16 00:19:03 +00:00
Translation updater bot 0147a742a6 Localisation updates from https://translatewiki.net.
Change-Id: I6c0d9372ed09007fdbe2c5701674f1d91f65a51a
2015-06-15 22:55:50 +02:00
Timo Tijhof e1ce49509c mw.ViewPageTarget: Ensure canonial view url is restored
When loading VE by clicking Edit on a view url, this naturally
works (we temporarily append our query, and remove it when ready).

When loading VE from a permalink (e.g. Open in new tab) or any
other source linked from HTML pages, then we're not in control
over adding the query (it's already there); we're only in control
over restoring the view url afterwards.

Bug: T102363
Change-Id: I4912ff1c6b28ac987517760ffed481a4cd3bd1ca
2015-06-15 13:28:35 +01:00
Translation updater bot 3c5ae91490 Localisation updates from https://translatewiki.net.
Change-Id: Ica2a4117a9328605fb6d83cea6cc8b2c7153278b
2015-06-14 21:17:31 +02:00