Commit graph

5261 commits

Author SHA1 Message Date
Translation updater bot c1900bdd11 Localisation updates from https://translatewiki.net.
Change-Id: I24c1d63698a71ddd54ae5bfc7b617cbf7b34aad4
2015-07-20 21:52:57 +02:00
Timo Tijhof de550c717c Hygiene: Main return as root structure (handle errors early)
Restructure code to return early for errors instead of nesting
conditionals. This leaves the outer tree of the function as
the natural flow of the primary purpose.

Makes code more resilient by ensuring that new code added to the
function will not execute under error conditions by removing the
need to keep everything encapsulated in the various levels of
error conditionals.

Change-Id: I1b4a67d344fd9843ca088d008487914f87b1c640
2015-07-18 15:55:32 -05:00
jenkins-bot e8e88cec17 Merge "Remove WMF deployment hack ext.cite and ext.rtlcite modules" 2015-07-16 20:41:48 +00:00
Translation updater bot a17ea5a0fa Localisation updates from https://translatewiki.net.
Change-Id: I602c97cce0af77c74bb285f7becb6b049c407e76
2015-07-15 21:37:53 +02:00
Derk-Jan Hartman 3bb504207d Add mobile target to VE/parsoid style module for Cite
Change-Id: Id960ddd55d82167536ad457b675f435957b95c50
2015-07-13 14:57:41 +02:00
jenkins-bot 5f2603bba7 Merge "Change unicode-bidi: isolate to embed" 2015-07-11 21:28:52 +00:00
Amir E. Aharoni 3fa0f7fb22 Prevent jumbling up of footnote numbers after LTR words in RTL wikis
This happens while editing in VisualEditor and ContentTranslation.

This is done by adding unicode-bidi: embed to .mw-ref.

Bug: T105605
Change-Id: I1d03063cad1fa0f2ae8cc792aaaefc715066f17e
2015-07-11 22:55:26 +03:00
Amir E. Aharoni 59ef3c8678 Change unicode-bidi: isolate to embed
"embed" works just as well in modern browsers.

Also fix the comment to be more correct.

Change-Id: I16a701f3b962b5e7f63554be2f28888a938548b0
2015-07-11 22:47:30 +03:00
jenkins-bot 5bbf7334e8 Merge "Fix a test label" 2015-07-11 11:19:54 +00:00
Translation updater bot 6341db4d21 Localisation updates from https://translatewiki.net.
Change-Id: I39c5bfbbd1d4cbdb06373bc52c959a9dd6f44f3b
2015-07-09 22:00:45 +02:00
Amir E. Aharoni b4ca6031ce Fix a test label
The old name was a copy-paste error.

Change-Id: If2771350c0e5e91579488cc9b49e462418b305f1
2015-07-09 17:47:47 +03:00
jenkins-bot 5fd3c0a90c Merge "Polish parser test titles" 2015-07-09 12:56:35 +00:00
jenkins-bot 4e493fb9ab Merge "Change == to === according to PHP coding conventions" 2015-07-08 10:53:14 +00:00
Amir E. Aharoni d309308e39 Polish parser test titles
* Capitalization of "Chinese"
* Explanation about the usage of Klingon numbers
  (the purpose of this test puzzled me until I understood that
  "wa'cha' wej", etc., are numerals in the Klingon language).

Change-Id: I81237f98136de2e22b6ff5acc202a668e28b8810
2015-07-08 10:22:56 +00:00
jenkins-bot 3b5bc4dbb2 Merge "Add more tests for edge cases of references without text" 2015-07-08 09:51:47 +00:00
Brion VIBBER c0cc1dca7b Merge "Add a test for cite_error_ref_no_input" 2015-07-08 09:50:10 +00:00
Translation updater bot b26f3a2677 Localisation updates from https://translatewiki.net.
Change-Id: Ia6a758da1fe8d878e45a66b474c2013617523407
2015-07-07 22:07:16 +02:00
jenkins-bot 6e3dee5381 Merge "Remove spaces from the end of the line" 2015-07-07 14:06:02 +00:00
Amir E. Aharoni 147f6ced19 Change == to === according to PHP coding conventions
Change-Id: I2a93194e3c2160000d30f2f2fd7717f4ba501c23
2015-07-07 15:20:53 +03:00
Amir E. Aharoni 1d7efdbe51 Add more tests for edge cases of references without text
Change-Id: Ia6c10419a7a92dac642db6ea21908927a5830b69
2015-07-07 15:16:26 +03:00
Translation updater bot ef0b8dde0f Localisation updates from https://translatewiki.net.
Change-Id: I7dbef02f493ce1de989e517e3e2c4bfb2be9ead7
2015-07-06 21:44:05 +02:00
Derk-Jan Hartman d4baf5927e Remove WMF deployment hack ext.cite and ext.rtlcite modules
It's been 30 days after deployment of I58adcfbcf9af2bb3.

Bug: T101559
Change-Id: I0217b8d15cdd495a163b3f1fc1af018f6d2fe271
2015-07-06 14:47:27 +00:00
Amir E. Aharoni e80ae07f9b Add a test for cite_error_ref_no_input
Change-Id: Ibb3bb1ab3450a34889dcd66b34542f2dd25fdc2b
2015-07-05 12:40:14 +03:00
Amir E. Aharoni 6cfdd6e1a7 Remove spaces from the end of the line
Spaces in the end of the line are usually unnecessary,
and they doesn't seem to do anything useful here.

Change-Id: Ib4d1b72aafd80f36ddf198f3924e5ebbeba79aa5
2015-07-05 12:26:18 +03:00
Translation updater bot e4a1d6f1fc Localisation updates from https://translatewiki.net.
Change-Id: I5c0956cf7e9334a3643934a317e324208185757e
2015-07-04 20:35:04 +02:00
Translation updater bot 58d52c970a Localisation updates from https://translatewiki.net.
Change-Id: Ia3f6574f5ee845adc4fa44a8542b452647fa1099
2015-07-03 20:37:22 +02:00
Marc Ordinas i Llopis 7661d25fdb Use CSS to style Cite references
Output a default style of reference numbers and text for <ref>s and
<references>, use CSS content generation in supported browsers to render
per-language style.

Right now it provides pixel-perfect renditions of refs in enwiki and
eswiki, and initial support for fawiki (which can't be tested with current
phantomjs). The CSS is loaded from the new module 'ext.cite.style',
implemented in the Cite.php extension.

Further changes to Cite.php will be necessary to change it to use this
same CSS instead of system messages.

Test results (and two blacklisted results) changed due to new HTML
structure.

Related to bugs T51538, T45235 and T73803.

Bug: T86782
Change-Id: I21fbbd3247bf7801e5ef9bd5312f95777f4dd6ef
2015-06-29 15:59:32 -05:00
Translation updater bot af92cfedd3 Localisation updates from https://translatewiki.net.
Change-Id: Ic44d2f09f1623bdd0cb3fa55167d9c97b64060b7
2015-06-23 21:24:38 +02:00
Translation updater bot c3d2fb293a Localisation updates from https://translatewiki.net.
Change-Id: I65d378e1be78c3aedfc5b7f6dd37c05a344bd6f6
2015-06-22 21:14:54 +02:00
Translation updater bot bbcc67a744 Localisation updates from https://translatewiki.net.
Change-Id: Ia12ef3e4cdd9d5890cbb733c7a90b220039d4801
2015-06-21 19:55:58 +02:00
Translation updater bot a425e7facc Localisation updates from https://translatewiki.net.
Change-Id: I9bb138933a912f993077f2f07e9b97a17c767959
2015-06-16 22:35:56 +02:00
Translation updater bot a7f582f07b Localisation updates from https://translatewiki.net.
Change-Id: Ia7ac2c758d082ef9720251823dd3c569767178a4
2015-06-14 21:03:05 +02:00
Translation updater bot 9443ef5737 Localisation updates from https://translatewiki.net.
Change-Id: I476c50f7dee2289c0a93c98190e364bee50b7a81
2015-06-12 21:52:02 +02:00
Kunal Mehta eee3d0cfc6 build: Adding configuration for jsonlint
Change-Id: I03b00e0aaa63fb49d68e0c5ee1b0613c2bb83f6c
2015-06-11 21:30:08 -07:00
Stephane Bisson 61997fd9b8 Style module should define its position explicitly
Put 'ext.cite.style.css' at the top.

Change-Id: Ibb5347a4f831438542da252e6d19f451276419aa
2015-06-10 16:41:13 -04:00
Marc Ordinas i Llopis aa8fed3a3d Use CSS to style Parsoid's Cite HTML
* Add a new module ext.cite.style to load the new CSS.
* Add a ResourceLoaderFileModule that adds the correct CSS file
  depending on the content language, so that the visual style of
  citations can be changed per-language.

The main ext.cite.style.css file renders similarly to MediaWiki's
default Cite style. Also, an example CSS for Farsi numbering is
included.

Bug: T86782
Change-Id: I487095df8a7c4241a14f7b4480360f6774130bec
2015-06-08 21:58:15 +01:00
Bartosz Dziewoński 3f30e08d77 Revert "Do all of Cite's real work during unstrip" and followup
This reverts commits 944b245428
and fa7be37d15.

These resulted in too many new exciting behaviors for the improvement
of nested refs behavior to be worth it. We should try again later.

Also, use Parser::MARKER_PREFIX instead of $parser->uniqPrefix()
which has been deprecated in the meantime by 12571bde.

Fixes T101390, fixes T100477. Reopens T22707, reopens T18330.

Bug: T100477
Bug: T101390
Change-Id: I1a71854cf24e85697ab171be43eeec9054bc504c
2015-06-08 16:24:27 +02:00
Translation updater bot e5cc29e9fa Localisation updates from https://translatewiki.net.
Change-Id: I92b525160888534ff1a4ca3395a011514b71147b
2015-06-07 22:25:58 +02:00
Derk-Jan Hartman 05cb5cc1a0 Cleanup style RL modules for Cite
Move the JS which is purely for accessibility purposes into a separate
JS RL module named ext.cite.a11y. Move all pure CSS, which is not dependant
on accompanying JS into a separate ext.cite.styles module

Bug: T101559
Change-Id: I58adcfbcf9af2bb3b6d5dabb6c38c42af78e0416
2015-06-06 15:43:27 +02:00
jenkins-bot c52d548beb Merge "Move '@media print' rules to separate file" 2015-06-06 13:12:30 +00:00
Kunal Mehta 15f554ea9f build: Updating development dependencies
* grunt-banana-checker: 0.2.1 → 0.2.2

Change-Id: I4285cf28f77591818950dce884fba83d282eee3a
2015-06-05 17:16:40 -07:00
Translation updater bot 49f4b860a3 Localisation updates from https://translatewiki.net.
Change-Id: I9f8767364ee2815b9f1653155498d5d5826b9178
2015-06-05 20:55:33 +02:00
Bartosz Dziewoński 3ac0dedd1b Move '@media print' rules to separate file
Not a fix for T93746 yet, but a prerequisite.

Bug: T93746
Change-Id: I3dc1fa9cf176540500b48f21d9f4f737b37010d1
2015-06-04 22:22:16 +00:00
Translation updater bot 9988e79e1e Localisation updates from https://translatewiki.net.
Change-Id: Ia884576d04482d4e9845cf60be67f7c1767bc6ed
2015-05-31 22:09:55 +02:00
Kunal Mehta e83a80e348 Set manifest_version in extension.json
Bug: T100745
Change-Id: Iee75b2bfe6b440daf9056cf2b7d624610d0f641e
2015-05-28 20:45:57 -07:00
Translation updater bot 6033b73b41 Localisation updates from https://translatewiki.net.
Change-Id: Ic6fb02fecdceccc5ba77411ccc6c621455e64b6a
2015-05-27 22:20:35 +02:00
Jackmcbarn fa7be37d15 Don't run references if the output type isn't HTML
It's possible that the output type is set to HTML when extensionSubstitution
is called, but that when we eventually get unstripped, it isn't anymore. If
this happens, detect it and bail out.

Bug: T99787
Change-Id: I32abaefeebc5357a2ab3fd23bcd47aa9b2a1663a
2015-05-25 13:34:02 +00:00
Kunal Mehta c79fcaa5ec Add SpecialCite stub file for backwards-compatability
Will trigger a warning that it has moved to a new repository

Change-Id: I21d5d751b1043bfd53f2f208c7f28285f5ad9a78
2015-05-25 15:01:42 +02:00
Translation updater bot fd2c57d0e4 Localisation updates from https://translatewiki.net.
Change-Id: Iab7aeba5c1264c3a87dfb8ca2f3390302fb00c18
2015-05-24 00:00:46 +02:00
Translation updater bot cd0fd5ab4f Localisation updates from https://translatewiki.net.
Change-Id: Ib384cdb2e28cc6b08239e3cb36929743b74f8588
2015-05-17 22:02:55 +02:00