Commit graph

4826 commits

Author SHA1 Message Date
Translation updater bot 232d97aefc Localisation updates from https://translatewiki.net.
Change-Id: I85f45b1611a0cfc064647cfb3b4c093aee61b6f9
2015-10-30 21:47:19 +01:00
Timo Tijhof c12ca466f3 Add isset() check before accessing $this->mRefs[$group]
Follows-up c00cf4a which wrongly assumed the reason for empty()
to be about array count but the real reason was existence.

All other code in Cite extension already uses isset() so this
makes it match the rest.

Bug: T117084
Change-Id: Ic9b0d74ae6ceda5acba187c2fab18c8f5dc9526b
2015-10-29 21:57:40 +00:00
Arlo Breault 1c10f71b47 Move processRefs.js to ext/cite/
Change-Id: I10ab294900f090dcdb85b205d9eb0472fd3e9157
2015-10-28 15:31:53 -07:00
Translation updater bot b1996582ad Localisation updates from https://translatewiki.net.
Change-Id: I6a8f76ecabdcb4a05dfc790236c1122a37b8b1ef
2015-10-28 21:53:06 +01:00
Translation updater bot ccc6a0d47d Localisation updates from https://translatewiki.net.
Change-Id: I8fa2320f3de3281cdf9a6f3962a4bb462d2d7d69
2015-10-27 21:31:15 +01:00
Subramanya Sastry 05bf16d3eb T115665: Reorg parsoid repo
* First pass moving around files into different directories.

* Renamed files to remove unnecessary prefixes or align the name
  closer to what the file contains.

* Added temporary soft links to bin/parse.js and bin/roundtrip-test.js
  in the tests/ directory since jenkins jobs seems to have hardcoded
  refs to those paths.

* Deleted:
  - a couple of stale scripts in tests/ that are no longer relevant.
  - a couple of state scripts in api/ that didn't look relevant.
  - swagger spec since it was incomplete, stale, and unmaintained.

Change-Id: I97c30467b190b417eec9e750238704330ae91137
2015-10-27 12:50:47 -05:00
Translation updater bot c166aaf743 Localisation updates from https://translatewiki.net.
Change-Id: If97d83ac8c6a615eac1847e99463f085f4493d4c
2015-10-26 21:02:24 +01:00
Thiemo Mättig c00cf4a204 Avoid counting arrays if not needed
count() tends to be one of the slowest PHP functions and should be
avoided, especially if the actual number of elements is not needed.

Change-Id: Ia979c481f898d2fccedb0ed127417ef05ba7ff38
2015-10-26 17:30:19 +01:00
Translation updater bot a22434e195 Localisation updates from https://translatewiki.net.
Change-Id: I1c17af0ff6475b291727ec951f0a4cc5adb9558c
2015-10-25 22:03:15 +01:00
Translation updater bot e9c00d314d Localisation updates from https://translatewiki.net.
Change-Id: I356332235296f21617ed7f717a7c9a2f12a3bec8
2015-10-23 21:42:43 +02:00
Translation updater bot 5228ab649c Localisation updates from https://translatewiki.net.
Change-Id: I26b3bea1b3a90b4e60d426c61c7e42f5874f4916
2015-10-22 21:58:36 +02:00
Bartosz Dziewoński 2e588a7424 Do not double-parse 'cite_error_references_duplicate_key' error message
This value is supposed to be wikitext, which will be parsed later,
not HTML ready for outputting.

Follow-up to 6c59f47805.

Bug: T116149
Change-Id: I6d6f474db7c7a075499f94301978572179975749
2015-10-21 11:59:34 +00:00
Translation updater bot 15f83c8c3f Localisation updates from https://translatewiki.net.
Change-Id: I82d89f3a033d0c8514c360dd90318f4c9a672ea7
2015-10-20 22:45:55 +02:00
Translation updater bot a00d39d030 Localisation updates from https://translatewiki.net.
Change-Id: I8f49daa04f01c40aac7d4cb4dc42548b19d69f84
2015-10-19 22:14:45 +02:00
Translation updater bot d1b79ed97e Merge "Localisation updates from https://translatewiki.net." 2015-10-18 20:01:45 +00:00
Translation updater bot 96a1bbb551 Localisation updates from https://translatewiki.net.
Change-Id: Ic7feb6bfd2b3d07e33f20eb677ca9324d66aa39f
2015-10-18 21:53:43 +02:00
Bartosz Dziewoński 6c59f47805 Display 'cite_error_references_duplicate_key' next to the affected ref
Follow-up to 5d0fb0309b.

Bug: T114898
Change-Id: Id6d0b7f2c0b76b67a50fc981b9255dff99137bed
2015-10-18 19:44:04 +00:00
Translation updater bot 62327d20e1 Localisation updates from https://translatewiki.net.
Change-Id: I553aadd58f9c212d4d88dcd2e64959af7465b500
2015-10-16 22:03:19 +02:00
Translation updater bot 0d20a69069 Localisation updates from https://translatewiki.net.
Change-Id: I0e223ebbc69326ffd75a0b1b3b5b2c02ea9cf7d1
2015-10-15 09:39:11 +02:00
Translation updater bot 645f3abea8 Localisation updates from https://translatewiki.net.
Change-Id: Iee084051bfb06b73fc204b6e3f4899f281c41027
2015-10-14 21:50:44 +02:00
Translation updater bot a72047ca7d Localisation updates from https://translatewiki.net.
Change-Id: I56088d012d601d494bf2a968d6b2d208932f902a
2015-10-13 22:09:50 +02:00
Translation updater bot 13847ccede Localisation updates from https://translatewiki.net.
Change-Id: I4bb68eac7c2036eb88df3127b71b0f535d4c65c7
2015-10-12 21:03:39 +02:00
Translation updater bot a8fe5e5ebb Localisation updates from https://translatewiki.net.
Change-Id: I5e9bd2c86b682b5412b81899b3414dd4d3d9963f
2015-10-11 21:22:19 +02:00
Translation updater bot a3744539c0 Localisation updates from https://translatewiki.net.
Change-Id: I48cb8471a52ed5f5e08e8c3b5fc4d035a8712648
2015-10-09 22:31:14 +02:00
Translation updater bot 968398013f Localisation updates from https://translatewiki.net.
Change-Id: I1a2d49da0759172bc0081335e6aeadfcce599703
2015-10-08 23:05:45 +02:00
jenkins-bot f75e136ec7 Merge "Add pages with Cite errors to a tracking category" 2015-10-08 19:40:45 +00:00
Translation updater bot 41faaf8ba2 Localisation updates from https://translatewiki.net.
Change-Id: Ic297afecb29aeb80038feed1cee3a8078ec80c81
2015-10-07 21:59:08 +02:00
jenkins-bot a93b2b8658 Merge "Add tests for the follow parameter" 2015-10-06 20:18:44 +00:00
Translation updater bot 18e7c5d5b7 Localisation updates from https://translatewiki.net.
Change-Id: Ic0e33ee46cbdd472a7a4aa5e7a27f3e09c161a3a
2015-10-06 22:00:47 +02:00
Amir E. Aharoni c27317873f Add tests for the follow parameter
Change-Id: Ia939ee6d8bcac0381c4717c6c156d07b8f760f62
2015-10-06 18:39:10 +00:00
Translation updater bot 7f70cd127f Localisation updates from https://translatewiki.net.
Change-Id: I2f58a35287b0b5bf7cce87ab51013209a6b075f8
2015-10-05 22:13:58 +02:00
Translation updater bot 9d6cc187fc Localisation updates from https://translatewiki.net.
Change-Id: Ic97d34fca394f08e0528cc42461b46c0170bba19
2015-10-04 22:17:08 +02:00
Translation updater bot 98f4689417 Localisation updates from https://translatewiki.net.
Change-Id: I0bc9aca5e26385659c6146e6f1ff3c767126a349
2015-10-02 23:46:16 +02:00
Translation updater bot 43116610db Localisation updates from https://translatewiki.net.
Change-Id: I56baa3188f7a8c4be9aef21210bc58a612af5929
2015-10-01 21:40:20 +02:00
jenkins-bot 0531ff7221 Merge "Show an error if a named ref is defined multiple times" 2015-10-01 17:03:04 +00:00
Translation updater bot 92d532c0a2 Localisation updates from https://translatewiki.net.
Change-Id: I9d2d30613b25e89b4e82dbccd593520fb48856ad
2015-09-30 22:08:52 +02:00
eranroz 5d0fb0309b Show an error if a named ref is defined multiple times
Bug: T85386
Change-Id: I6e7a7594628b3e0c09724c11e5d9f650dde25906
2015-09-30 21:27:35 +03:00
Bartosz Dziewoński 0303c2b0b3 Add a parser test for the simplest way to reuse refs
We tested all the corner cases, but never the classic way.

Change-Id: Icbaa7ad5f7491d1ba068a8cc0ec49856201fb963
2015-09-30 15:41:12 +02:00
Translation updater bot 3b8b242791 Localisation updates from https://translatewiki.net.
Change-Id: I4b09d2c48f2564a6b3f74cad85b92bade86196b2
2015-09-28 22:41:46 +02:00
Translation updater bot 6d0106ca68 Localisation updates from https://translatewiki.net.
Change-Id: Idd47db0b338a273b59dfcc606e73bc03d43d1bae
2015-09-26 21:11:46 +02:00
Amir E. Aharoni 68304fcacd Add pages with Cite errors to a tracking category
Bug: T104792
Change-Id: I6f8b12788a20480bd8880332238d545ee70a8ef9
2015-09-24 12:16:13 +03:00
Translation updater bot 392db906b8 Localisation updates from https://translatewiki.net.
Change-Id: I84832252e51695042eb47a1cdea992983d7c9c27
2015-09-21 21:54:55 +02:00
Translation updater bot 31570ef6d3 Localisation updates from https://translatewiki.net.
Change-Id: I457d2499ab437b2388e7b012a407d08717cc02ee
2015-09-12 01:07:38 +02:00
Subramanya Sastry 381ceda257 T93580: Handle <ref>s in inline image captions
Inline images don't display their captions and don't have a
DOM structure for them. They are hidden away in the data-mw
attribute.

So far, we weren't handling <ref>s embedded in these inline
image captions -- both causing rendering diffs in the references
section and crashing the serializer when these nodes were
encountered.

This patch fixes that and also adds parser tests.
The html2html failure added to the blacklist is because of
about-id mismatches in the embedded html. We need smarter
normalization in parserTests.js to remove these false failures.

There is also a long comment about generalizing how this kind
of scenario is handled. Worth tackling that in a separate patch.
In order to simplify and generalize the adhoc nature of
trace output that is currently in place, I had been pondering
creating a DOMProcessor class with state to do that, and
looks like something like will help with this as well.
For this patch, I am leaving behind the special case handling.
Adding state and generalizing how embedded HTML is processed
should be done separately since that requires more thinking
and experimentation.

enwiki/High_Laver?oldid=659441291 and hiwiki/मुक्केबाज़ी?oldid=2689792
now RT without crashers.

Change-Id: I39854c7b5b3e8d7cce84b1b4e05213185f8cccb0
2015-09-04 15:07:41 -05:00
jenkins-bot 1a9f0f2010 Merge "Fix doc block for checkRefsNoReferences" 2015-08-29 15:48:55 +00:00
Translation updater bot aa8655ebdc Localisation updates from https://translatewiki.net.
Change-Id: I96f40808f85d1746687db856d36965d0f86bb7d1
2015-08-26 21:45:01 +02:00
Fomafix fd5fc271a8 Fix white spaces
Change-Id: I372455a77f3265933767dc8fc6774bcb184499ad
2015-08-25 15:56:42 +00:00
Bartosz Dziewoński 04ac55ed52 Revert "Use display: inline-block instead of unicode-bidi"
I think this change causes too many issues on non-LTR wikis
(see the associated tasks) to be acceptable in the current form.

Maybe it should be redone to apply to RTL text only if it's
worth it there (apologies, but I don't quite understand the issue).

This reverts commit e9c1521fca
and commit 59ef3c8678 (which was
the previous attempt to fix it and caused different issues).

Bug: T108493
Bug: T110057
Change-Id: I205400c59a342dcc4cdf89791bc1c761805cd2a8
2015-08-24 20:33:28 +00:00
Translation updater bot d0b189cff0 Localisation updates from https://translatewiki.net.
Change-Id: I64a6012fa63c61e3a01f69ce89a2546244403b15
2015-08-24 21:30:18 +02:00
Subramanya Sastry 37206e2a12 Save data-attribs in DOMs of nested refs
* 4ea8dbd8 exposed a bug handling of nested <refs> (done via
  templates). It caused crashers in rt-testing of a few pages.
  Ex: enwiki/António de Oliveira Salazar?oldid=676623209

* Reproducible with the following wikitext:
-------------------------------------
x <ref>y {{sfn|Kay|1970|pp=123}}</ref>
<references />
-------------------------------------

* This patch fixes the problem by making sure data-mw and
  data-parsoid of the DOM for the nested ref are saved before
  serialization to a string.

* Removed the saveHandler from dom.t.unpackDOMFragments.js and
  reused the simpler dom-walk code added as part of this patch.

* Also updated comments in ext.Cite.js

* Hard to introduce nested <ref> in parser tests, so no
  new tests for this scenario.

Change-Id: I2298bbe87ccddd87f307d206d77d78fcfb0d8a75
2015-08-18 13:43:50 -05:00