Commit graph

1701 commits

Author SHA1 Message Date
Timo Tijhof 8b77c16667 Use ResourceLoaderContext::msg() in CiteDataModule
Change-Id: I7ed77a2b84711bfe52e07f97bfc3388441159635
2016-03-11 21:56:36 +00:00
jdlrobson 92ef12a433 Remove num parameter from referencesKey function
Change-Id: Ib215a09dc2d77988cb63a1b3c5fce4cd0cb886cb
2016-03-11 18:13:06 +00:00
Translation updater bot 319238f840 Localisation updates from https://translatewiki.net.
Change-Id: Idff7a7f8f3bbdb9ea9b10aa60099308e0b2caa94
2016-03-09 22:39:48 +01:00
Translation updater bot 60fc36c7e4 Localisation updates from https://translatewiki.net.
Change-Id: I354e7e901ae35faf48ae11f3f136068a724e5ef8
2016-03-07 22:23:27 +01:00
jenkins-bot 04cc521550 Merge "Auto-convert pasted ref tags" 2016-03-07 16:32:16 +00:00
Translation updater bot 89801aa60a Localisation updates from https://translatewiki.net.
Change-Id: Ie6a31f48a3fd25c472526d78e954293ffc5e077f
2016-03-06 22:12:00 +01:00
Translation updater bot b4770061a2 Localisation updates from https://translatewiki.net.
Change-Id: I35a4da917a6fb1194063cedc9daf1a891de73939
2016-03-05 22:56:00 +01:00
Ed Sanders 5d92de7b7a Auto-convert pasted ref tags
Bug: T128805
Depends-On: I7a38db45d25e86ff3f3f6199aa04425ec98f7cc4
Change-Id: I44fb2b8913fb9bef7d984f86b3579e82b29d0cf0
2016-03-05 16:57:10 +00:00
Translation updater bot 3d4c9692f3 Localisation updates from https://translatewiki.net.
Change-Id: I39c713958ad87b2dcdbe685d8850538757f96af4
2016-03-04 22:50:07 +01:00
jenkins-bot 8552cf24d2 Merge "VE: Lookup the correct command for the node" 2016-03-02 23:44:58 +00:00
Translation updater bot 2719b4ea0b Localisation updates from https://translatewiki.net.
Change-Id: I6c05a2dbd30400f74cf67e5f688029ba313f8f9f
2016-03-02 23:35:37 +01:00
Ed Sanders 666beded00 VE: Lookup the correct command for the node
Bug: T128198
Change-Id: I564b0b3e8cf6906d108ee876cff03196065bd164
2016-03-02 18:23:11 +00:00
Translation updater bot 82590f9da4 Localisation updates from https://translatewiki.net.
Change-Id: Idec777ecc238e637e74edd238efe6997bbd7d6e8
2016-03-01 21:53:23 +01:00
Ed Sanders 55d33e13b0 Check VE is available before running unit tests
Bug: T127763
Change-Id: I2ad8814d39b16ce5918d9f53ba9bf4bf59a0cbe9
2016-03-01 12:21:00 +00:00
Translation updater bot 88f4cdfbd6 Localisation updates from https://translatewiki.net.
Change-Id: I81e913c86af124c474041a43389195509d1949c3
2016-02-28 21:56:01 +01:00
Kunal Mehta 92c858fd76 Remove not actually "@comment" from ResourceModules definition
extension.json only removes top level and "config" keys that start with
@, so this "comment" was actually being passed onto ResourceLoader and
eventually being ignored at that stage.

But since it's not a recognized value, it causes validation of the
extension.json file against the schema to fail.

Bug: T128311
Change-Id: Ibed94e1818c8fc9c3afdc3e09d0af5e84c49a342
2016-02-28 01:24:21 -08:00
Translation updater bot 19074bcf0d Localisation updates from https://translatewiki.net.
Change-Id: I9e873009b41afaeddba937c3b739a465fc8da2c2
2016-02-27 21:54:29 +01:00
jdlrobson 509741dc17 Surface references via api query property
* The query request prop=references will return a JSON blob of all
references in the page
* Conveniently references are returned with an array id key that corresponds
to an anchor tag in the HTML
* When references storage is disabled the API request will trigger an
error.

Bug: T123290
Change-Id: I81a965bcb47d17df18f1e415e3c25f88f6b48ffc
2016-02-26 19:02:12 +00:00
jdlrobson 342a3a0ec3 referencesKey is now a static function and renamed
There seems to be no reason for this to be a member function

Per suggestion of Ori, It should also be clearer
it is a getter so it is now prefixed with get
There are no consumers according to Github so a rename is safe

Change-Id: I414959d4cc107135ccbd0739f2fc7d62ca8d04c5
2016-02-26 19:01:41 +00:00
cenarium d63c51ebf2 Merge LinksUpdateConstructed hook into LinksUpdate
This merges the content of the LinksUpdateConstructed hook callback
into the LinksUpdate hook callback since it's fine to defer saving
to the cache.

Change-Id: Iad6008a31aaf659af3c560858df278335bc57c8f
2016-02-26 19:00:54 +00:00
Translation updater bot 17d30cc0a7 Localisation updates from https://translatewiki.net.
Change-Id: If943f6841bcf18f2fad6ee6025adfad82534ddcd
2016-02-25 22:17:31 +01:00
jenkins-bot 22668e53e2 Merge "Change a condition with == to something more precise" 2016-02-24 21:29:23 +00:00
jenkins-bot 3abaad1a27 Merge "Add array type hints and more specific documentation" 2016-02-24 21:29:20 +00:00
Translation updater bot 59dc0e9ba2 Localisation updates from https://translatewiki.net.
Change-Id: I1fac9242bc2827f7a828f2b332b81c95d5d48704
2016-02-24 22:00:45 +01:00
Thiemo Mättig 4eeb884e98 Add array type hints and more specific documentation
The two public functions ref() and references() are called from
Parser::extensionSubstitution(). Everything else is derived from that.

Change-Id: Ib9bb37ac0303f0e90149f5b1c4f4aa3bcf08b957
2016-02-24 20:57:10 +00:00
Amir E. Aharoni adf113af86 Change a condition with == to something more precise
It can be both NULL and an empty string here.
Tests for both cases are added in the following patches:
Ia6c10419a7a92dac642db6ea21908927a5830b69
Ibb3bb1ab3450a34889dcd66b34542f2dd25fdc2b

Change-Id: Ia2b2b6545bb889de59a363a2c1d7569cbc971361
2016-02-24 20:56:12 +00:00
cenarium 469217073a Use span with css instead of strong for cite errors
Change-Id: I9b8954b56646ca9c4632788824346e6116de3146
2016-02-24 18:57:37 +00:00
Bryan Davis 1920b6b80d Use inLanguage() in CiteDataModule
Avoid unstubbing $wgUser during ResourceLoader actions by getting
messages in the language specified in the ResourceLoaderContext.

Bug: T127916
Change-Id: If4034ef7f5a98723cb8d526a067ddcc571a43b76
2016-02-23 17:57:45 -07:00
Translation updater bot 8f904a37d2 Localisation updates from https://translatewiki.net.
Change-Id: I6b6c45210bce9703febfcdb885c7efdef623cf65
2016-02-23 22:31:39 +01:00
Translation updater bot c3c10ab9c9 Localisation updates from https://translatewiki.net.
Change-Id: I05ceb4aa6217f3f9345b69eb4daa1ce14d6f7053
2016-02-22 21:38:12 +01:00
Translation updater bot a729388d98 Localisation updates from https://translatewiki.net.
Change-Id: If038f276f7246339b4e85c108e677d74aac8f73b
2016-02-19 22:06:01 +01:00
Translation updater bot d431fa00a8 Localisation updates from https://translatewiki.net.
Change-Id: I3f5a017fed203a2b2fb1bdf72d49188df094ffb3
2016-02-18 22:14:35 +01:00
jenkins-bot bf3df3fce6 Merge "Use div for references in section preview" 2016-02-18 11:06:09 +00:00
cenarium a6f023902b Use div for references in section preview
This uses a div instead of a span to wrap the section displaying
references in section preview. It also adds an id for the section
header specifically, and does not display the header if its message
is disabled.

Bug: T127188
Change-Id: If3df97319358706f7646f451ff2f4948537130e8
2016-02-18 09:56:52 +00:00
cenarium b991617bc6 Avoid calculating md5 when not caching references
In the old caching system for references, the cache key needs the md5 of
the references, but it shouldn't be calculated when one is not using
this caching system.

Change-Id: I83c17d1df5c5e620ea21d1bf955b86ce94bc119a
2016-02-18 08:17:48 +01:00
Translation updater bot 0a77a3d2a3 Localisation updates from https://translatewiki.net.
Change-Id: If55b6a83078af460d6bb0ec18f7b58a33e778822
2016-02-17 22:47:27 +01:00
Translation updater bot 0d19805e2f Localisation updates from https://translatewiki.net.
Change-Id: I2b42c59b28c6a848eb8ebde54999e24bcd053987
2016-02-16 23:09:47 +01:00
Translation updater bot c6c08ee600 Localisation updates from https://translatewiki.net.
Change-Id: Ic5771efd4dc1ebe8472d9cac0330f361f5fda0c4
2016-02-15 21:38:47 +01:00
Translation updater bot 6c1832eff3 Localisation updates from https://translatewiki.net.
Change-Id: I17ebea1a2f9f9dee8dcdbeb595a20b4de6da490a
2016-02-14 21:29:28 +01:00
Translation updater bot e8775d456b Localisation updates from https://translatewiki.net.
Change-Id: I276aa229677a7a11f87887005999696816b1bc17
2016-02-13 23:00:01 +01:00
jenkins-bot d6bc770016 Merge "Change Mediawiki:Cite error ref_no_key text" 2016-02-12 22:49:38 +00:00
darthbhyrava d8775b5450 Change Mediawiki:Cite error ref_no_key text
Clarified error message by changing it to "The opening <ref> tag is malformed or has a bad name".

Bug: T115810
Change-Id: I0c9cb8f5e81ebdb194c57f24a5792b682dd290dc
2016-02-12 22:59:10 +01:00
jenkins-bot 194532751b Merge "#cite_note and #cite_ref links generated from empty references are broken" 2016-02-12 21:42:56 +00:00
Translation updater bot 3002dc168b Localisation updates from https://translatewiki.net.
Change-Id: Ib1479d7480034b40f87bbf617effda82d01f2b5d
2016-02-12 22:07:27 +01:00
Petr Matas 216b60cb9a #cite_note and #cite_ref links generated from empty references are broken
Bug: T126241
Change-Id: I1e84d3361424e57e9f115a665f77d686a80a9135
2016-02-12 20:49:43 +00:00
jenkins-bot 068c7a84e1 Merge "Store references in page_props and cache" 2016-02-12 19:56:34 +00:00
Translation updater bot 9278810612 Localisation updates from https://translatewiki.net.
Change-Id: I8bf8383aace365a83eb96fd295c42403315567bf
2016-02-11 21:37:38 +01:00
Translation updater bot 2832914298 Localisation updates from https://translatewiki.net.
Change-Id: I81d3303bc6edafa83d2f7f57058c3f93a3788be2
2016-02-10 21:08:46 +01:00
cenarium 70e14ebaeb Store references in page_props and cache
This stores references in page_props during links update in
compressed JSON form. If the size is too big, it's broken up
in several parts to fit, which is very unlikely to occur more
than once.

When the data is retrieved from the db, it's always cached. If
set in config, it's also saved in the cache on parse. If not,
the cache is invalidated when references are modified.

Uses cases include : section preview to also show refs defined
elsewhere on the page (T124840) and MobileFrontend (T123328).
For the later, this still needs API support (T123290).

There's a soft dependency on the core change
I0c73b3d181f32502da75687857ae9aeff731f559.

Bug: T125329
Change-Id: I7b106254b8f264f93b0f0c9cfa89f65adeeea4f0
2016-02-10 14:47:02 +01:00
Ed Sanders eb58f79f8d VE: Fix i18n names broken during migration
Bug: T126373
Change-Id: I682bdaa71bc9a8675c79bae0b2f54955de207945
2016-02-10 00:44:54 +00:00