Commit graph

1015 commits

Author SHA1 Message Date
Translation updater bot 7961b1b9dd Localisation updates from https://translatewiki.net.
Change-Id: I15d5e871c153698141c8850e4890ca2d85eef94b
2015-08-23 21:39:39 +02:00
Timo Tijhof 58c966e104 Revert "Don't top-load CSS" (causes FOUC)
This reverts commit 024d62be45.

Loading this in the bottom causes a flash of unstyled content
in Chrome on MediaWiki-namespace CSS/JS pages where the text is
first black un-bolded on a grey background and then re-arranges
with bolding in a few places (visually widening some pieces of
text and bumping them over). This is visually distracting and
somewhat confusing.

There are upcoming plans to collapse the stylesheet queue (and even
the dynamic load queue). Let's start with the ones that are actually
causing FOUCs like this one.

Impact should be minimal as it only affects pages where this
module is loaded.

Change-Id: Iaf1ce5e5b8cff56e987581a3dbe7f24460badde2
2015-08-20 23:44:36 +02:00
Translation updater bot ff14349e9b Localisation updates from https://translatewiki.net.
Change-Id: Ie0653bdec3c1e56b670a3d8020363bd8959d6624
2015-08-18 21:22:47 +02:00
Translation updater bot 72c69947a8 Localisation updates from https://translatewiki.net.
Change-Id: Ia8d73e3a31ea8f2159bd8bae02ce8369debe7b20
2015-08-17 21:13:40 +02:00
Translation updater bot abad8ef316 Localisation updates from https://translatewiki.net.
Change-Id: Icb1931f22cb0f60f080509547d06a3dac8b5c872
2015-08-16 21:57:08 +02:00
Translation updater bot 54391858a7 Localisation updates from https://translatewiki.net.
Change-Id: Id0bb68c78b4d2428a403477b0ab5657401b582e0
2015-08-15 21:48:42 +02:00
Ori Livneh 942607cfed Fix-up for I2de8a400d: explicitly declare module position
Rather than leaving it undefined, which causes a warning.

Change-Id: If0851400ce63dbfbc2765f0828f2331e8f900b46
2015-08-13 11:30:12 -07:00
Translation updater bot 2f8ca3fedd Localisation updates from https://translatewiki.net.
Change-Id: I9e593cfcb67682a87d14c868e7cb20f66984aee3
2015-08-12 21:33:52 +02:00
jenkins-bot 29f705b2d0 Merge "Don't top-load CSS" 2015-08-11 17:47:23 +00:00
Ori Livneh 024d62be45 Don't top-load CSS
Syntax-highlighting CSS enhances the presentation of the content, but not so
much so that the content is illegible or malformed without it. It is better not
to load it in the critical path.

Change-Id: I2de8a400dabd33b3bae43285f19401a0e147ad50
2015-08-07 20:55:18 -07:00
Translation updater bot d2ca3f9295 Localisation updates from https://translatewiki.net.
Change-Id: I59de76ebcf245beef80de7164bbf14072943a1e8
2015-07-31 21:49:41 +02:00
jenkins-bot 706f149b91 Merge "Unbreak VE integration in debug mode" 2015-07-30 21:20:36 +00:00
Translation updater bot 877cfa4a2b Localisation updates from https://translatewiki.net.
Change-Id: Ibf1b64769fd6ac813e076bd849a68f3cecf9b234
2015-07-30 21:13:00 +02:00
Translation updater bot a112efe540 Localisation updates from https://translatewiki.net.
Change-Id: Ida5a03f12af65caa56d849f70e78ced5b03e8337
2015-07-29 21:51:33 +02:00
Alex Monk cb61c42dd3 Unbreak VE integration in debug mode
The data module was not working properly in debug mode because since
Ifeddef8c we've extended FileModule which just tries to use URLs.

Change-Id: I822c2e64926a3d6bf1ea53e4fa27bc544ede87d1
2015-07-28 23:59:07 +01:00
Translation updater bot 97969c9776 Localisation updates from https://translatewiki.net.
Change-Id: Id431fc6b076c32b3e6f0180de20ed9bcb8dbd873
2015-07-26 21:41:44 +02:00
jenkins-bot d05162e653 Merge "Map 'gettext' to 'pot'" 2015-07-24 12:07:40 +00:00
jenkins-bot 4117be91b9 Merge "Render "dcl" as "sql"" 2015-07-24 12:07:38 +00:00
Translation updater bot be010b457e Localisation updates from https://translatewiki.net.
Change-Id: I39d800eebfd70d5b4312c0134abd82137c5fe08d
2015-07-22 22:17:19 +02:00
jenkins-bot 5b2dc3115c Merge "Use $parser->mUniqPrefix instead of $parser::MARKER_PREFIX for MW 1.25 compatibility" 2015-07-21 05:01:27 +00:00
Translation updater bot 3336333069 Localisation updates from https://translatewiki.net.
Change-Id: Id9c1116f613a1bf3013ca313c60ed17d1ac57771
2015-07-20 21:58:15 +02:00
Translation updater bot ffbbd9fb83 Localisation updates from https://translatewiki.net.
Change-Id: Ie0d11638c30963b44057813d46b4223c6c0d7559
2015-07-18 22:02:11 +02:00
John Vandenberg 3fdb883739 Map 'gettext' to 'pot'
Bug: T105889
Change-Id: I41a7441987bae95bfb7e138f06d9c27feef070b9
2015-07-18 17:09:08 +10:00
Translation updater bot b66424d794 Localisation updates from https://translatewiki.net.
Change-Id: I0de7ce6cebc329cb02c56b218c732241af5e6c21
2015-07-17 22:25:21 +02:00
Translation updater bot 2237b348b8 Localisation updates from https://translatewiki.net.
Change-Id: I33b2286315c98315ac5ecfd75266c711b4fc6187
2015-07-16 21:14:20 +02:00
John Vandenberg 99b0cd96bd Render "dcl" as "sql"
"dcl" (Data Control Language) in GeSHi was SQL with
additional keyword support, and a fallback to pygments
'sql' renders correctly, albeit without all keywords
highlighted, however most of the keywords are part of 'sql'.

Change-Id: I121ce6d6ab20328dd1788f537127e16fa3049503
2015-07-16 08:48:21 +10:00
Translation updater bot 5f476089c3 Localisation updates from https://translatewiki.net.
Change-Id: I960aa705c3a3661cf0b9993da0ea35e6649589e7
2015-07-15 21:42:58 +02:00
Bartosz Dziewoński 05bae5a932 Use $parser->mUniqPrefix instead of $parser::MARKER_PREFIX for MW 1.25 compatibility
Parser::MARKER_PREFIX is a new constant introduced in MW 1.26,
previously the value was dynamic and available as
$parser->mUniqPrefix. That continues to be supported in MW 1.26+.

Follow-up to 043969f84e.

Bug: T105796
Change-Id: I9dfc9e1a424e28fc4f870dd513306e5144d1ec7c
2015-07-15 12:44:17 +00:00
Translation updater bot 77d86eb735 Localisation updates from https://translatewiki.net.
Change-Id: I8690af823bdda611fe44fd3895ae67d4b51842fc
2015-07-14 22:02:31 +02:00
jenkins-bot d47de3b3b2 Merge "Restore 'direction: ltr;' for .mw-highlight" 2015-07-14 15:09:10 +00:00
Translation updater bot 558396de81 Localisation updates from https://translatewiki.net.
Change-Id: I13921d8d2d133c79a92f7ee86151ed661317da85
2015-07-13 21:36:04 +02:00
John Vandenberg 653292c2f2 Map other assembler language to 'asm' or 'nasm'
Add mappings for 6502acme, 6502tasm, 6502kickass,
68000devpac, dcpu16, m68k, mmix, mpasm, pic16, and z80.

Change-Id: If593f4ccbd158517824b6ceed43b7d6cf3b08080
2015-07-13 13:12:12 +10:00
Translation updater bot 0270324da7 Localisation updates from https://translatewiki.net.
Change-Id: I9153a163eb0e5cf62e1b92d08aa258b9f0cac7a1
2015-07-12 21:51:38 +02:00
John Vandenberg 124434abc8 Render "arm" as "asm"
"arm" in GeSHi was assembly with additional keyword support,
and a fallback to pygments 'asm' renders correctly.

Change-Id: I3eb354cda2a1f324dd539eb20e9801c8350e21d1
2015-07-12 19:20:06 +00:00
John Vandenberg aacd82820b Use 'ebnf' to render 'bnf'
bnf syntax renders correctly using the ebnf handler.

Change-Id: I4f6f96d1b1c034c1f653797d0d03436307ddc819
2015-07-12 21:36:30 +10:00
John Vandenberg 53ea68e8b3 Render "bibtex" as "latex"
bibtex was supported by GeSHi, and is LaTeX syntax.

Change-Id: Id29f61529c5afbc5c9ecf51f81b5cdae7f3b3737
2015-07-12 15:53:04 +10:00
Translation updater bot 97b1833f91 Localisation updates from https://translatewiki.net.
Change-Id: Ia05157b9600af3177fb56c063962582b46918a2f
2015-07-11 22:07:32 +02:00
Bartosz Dziewoński 6b1a4a6d8c Restore 'direction: ltr;' for .mw-highlight
Follow-up to 043969f84e.

It is not needed for current HTML generated by the extension tag,
but is required for compatibility with cached renders generated
between 6484894497 and
043969f84e.

Bug: T105499
Change-Id: Ie15d9c7fb673528b2ab5e40e6beddc580fb6d368
2015-07-11 13:50:41 +02:00
Translation updater bot c1e886c6d3 Localisation updates from https://translatewiki.net.
Change-Id: Ib606d0eab1e3f1bf7828f5be8ca069ab332b2125
2015-07-10 21:15:56 +02:00
Translation updater bot 4393d1bf3e Localisation updates from https://translatewiki.net.
Change-Id: I0ed8271d0817630f2c11d658c965de36d7194e68
2015-07-09 22:04:31 +02:00
Translation updater bot da21e6f39c Localisation updates from https://translatewiki.net.
Change-Id: I6441ae229bb0143dbf3ecb86c14a2e541cf625bb
2015-07-08 21:57:16 +02:00
jenkins-bot 0a9315860c Merge "Add VisualEditor support for 'line' attribute" 2015-07-08 18:41:16 +00:00
Timo Tijhof 206f0fd585 Fix "MWException: Unexpected output from Pygments" in highlight fallback
Follows-up 043969f84e.

This caused a fatal MWException when saving/reading pages that contain a
<source> that couldn't be highlighted (e.g. no lang attribute, unknown
lang, or too large).

Specifically when wgWellFormedXml=false, in which case $out isn't
just from Pygments, but actually from our own Html::element.

Change-Id: Ib299a274d28021b2c7bba52d763dd1e17c1f09ec
2015-07-07 22:12:53 +01:00
Translation updater bot 509a23af6b Localisation updates from https://translatewiki.net.
Change-Id: I58468794ad416324a72294756ad5040525392a55
2015-07-07 22:11:05 +02:00
Ed Sanders d38d9c1994 Add VisualEditor support for 'line' attribute
The line attribute sets line='1', as both Parsoid and VE
expect proper XML attributes.

Change-Id: I10b5717fcc4b8e84a3030425a4a6a9a865272830
2015-07-06 22:09:23 +01:00
Translation updater bot 04f2b607fa Localisation updates from https://translatewiki.net.
Change-Id: I741f2f976cbe328d61c35b89584829cb00589e04
2015-07-06 21:48:04 +02:00
Bartosz Dziewoński 48bf989cad Highlight background of whole lines, not just text in them
Bug: T103964
Change-Id: Ia1036f00e05634fe6b7e3b65af2a34fc91a540e5
2015-07-05 23:39:38 +00:00
Bartosz Dziewoński 043969f84e Refactor final output formatting
* Use 'nowiki' strip marker to prevent list processing (also known as
  doBlockLevels()). This resolves various issues related to using
  <syntaxhighlight/> blocks in lists and lists suddenly appearing
  inside <syntaxhighlight/> blocks. Fixes T17333, T25674, T104067.

* To prevent <p/>-wrapping resulting from the above, add our own
  wrapper <div/> around the output.

* Since we already have our own wrapper, remove Pygments' one and
  extend it with custom attributes. This resolves some regressions
  from the GeSHi migration. Fixes most of T103964.

Bug: T17333
Bug: T25674
Bug: T103964
Bug: T104067
Change-Id: I3afd1224a18549c62cd4a95fd046affa6d1d3b3f
2015-07-05 22:03:24 +00:00
Translation updater bot 1b3f2c4dd1 Localisation updates from https://translatewiki.net.
Change-Id: I40b6725bafcb9fe210d9e4d09c4ca1e55ab6b86e
2015-07-05 22:01:39 +02:00
jenkins-bot df8416e973 Merge "Add a tracking category on pages that contain invalid <syntaxhighlight> attributes" 2015-07-05 17:03:31 +00:00