Commit graph

3079 commits

Author SHA1 Message Date
DannyS712 617ba89a78 Delete empty translation files
Including test.json which isn't a language

Change-Id: Ib2d2c9d2943471a3b671318997ccf9bd689b88f6
2021-04-07 15:43:34 +00:00
Itamar Givon 385d54f607 Update calls to WikibaseClient::getLanguageFallbackLabelDescriptionLookupFactory
Bug: T279084
Depends-On: Ibcd85906b7317e67175616a00a04333f9ffb7ca6
Change-Id: I18c1c4690dc9ec1a8adbb24268b2bff3f8331b2b
2021-04-07 10:24:31 +02:00
Translation updater bot 60935ddafd Localisation updates from https://translatewiki.net.
Change-Id: Iba4e6edb89ce54ce474489a9a9be7a4561b82147
2021-04-06 12:02:45 +02:00
ZabeMath e0ca2b86f4 Avoid using User::setOption()
User::setOption() is deprecated and should be replaced with UserOptionsManager::setOption()

Bug: T277818
Change-Id: I8bfcf9e732b6067d5461792d78c8b41ac31de3a9
2021-04-02 18:31:47 +00:00
jenkins-bot 5ee45bc81c Merge "Update WikibaseClient::getStore() call" 2021-04-01 13:31:49 +00:00
Translation updater bot 7c26d35daf Localisation updates from https://translatewiki.net.
Change-Id: I16babfd7b89d29f0ff2b5b85f6fe4a0da73c1ceb
2021-04-01 08:37:41 +02:00
Lucas Werkmeister 004da5f9ad Update WikibaseClient::getStore() call
Bug: T277482
Change-Id: I9c1af47257121e0d3346c5aa3d62ce746f47a0d2
Depends-On: I6b80739641d55730d8e0a217d9f23aa9392bdf35
2021-03-31 19:52:21 +02:00
Translation updater bot ee096440ed Localisation updates from https://translatewiki.net.
Change-Id: I94882442242933e4d9862cc03e205f50833594dd
2021-03-30 08:33:13 +02:00
libraryupgrader 5d8eb9f913 build: Updating y18n to 4.0.1
* https://npmjs.com/advisories/1654 (CVE-2020-7774)

Change-Id: Ib7b3959e5f50d4a67ab1655913f4ebe291624177
2021-03-30 03:29:04 +00:00
Translation updater bot 2088c82670 Localisation updates from https://translatewiki.net.
Change-Id: Ib825eb7462b7eee39d34f28c0127c69c6b441661
2021-03-22 08:37:09 +01:00
jenkins-bot 7730da68aa Merge "Remove php entry point" 2021-03-14 16:10:16 +00:00
libraryupgrader c592ad866c build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I1d86e23f42de9c7415defd1a3249162d0f0cc22a
2021-03-14 01:38:40 +00:00
Umherirrender 08ac202ba9 Remove php entry point
Deprecation notice since I7c37e6eb6b7c802fa1e4ebaca2752247ba4d3b8c

Bug: T140850
Change-Id: Iff4c44bed0b143bb015bca047e4673bf2d11aa2b
2021-03-13 00:22:58 +01:00
jenkins-bot 646fcf6ad1 Merge "Update WikibaseClient::getSite() call" 2021-03-09 10:57:24 +00:00
jenkins-bot 2652cf4e64 Merge "Update WikibaseClient::getSettings() calls" 2021-03-09 10:57:12 +00:00
libraryupgrader f2edc70021 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I8ac79545d8941943bcc470f7fcef5323a588c8a5
2021-03-07 04:54:19 +00:00
Lucas Werkmeister a9d2b684b8 Update WikibaseRepo::getStringNormalizer() call
Bug: T276430
Change-Id: Ibc9dc74650b3e6bd726ae452a744c9b433ccef08
Depends-On: I58a9dc2f9f185f260bd6da84840f2b58905d38fa
2021-03-04 14:37:41 +01:00
Lucas Werkmeister 2afaad505d Update WikibaseClient::getSite() call
Bug: T276349
Change-Id: I37b7876c43a7c21fc14f228f3133ed897742bb4e
Depends-On: I9724724a635b808a7f1a8c88447216dc0d1dd738
2021-03-04 11:37:03 +01:00
Lucas Werkmeister 9247f49067 Update WikibaseClient::getSettings() calls
Bug: T275412
Change-Id: I9d0762886cebb96c0d5de911248a53a9ffc14a0f
Depends-On: I3506ad80d57639f066c2b86358058b4432b6a666
2021-03-04 11:36:55 +01:00
Translation updater bot ad7eaabb9d Localisation updates from https://translatewiki.net.
Change-Id: Id0331bf88eeb075ecadd1e9f46c7eb3b65b8a0d4
2021-03-04 08:38:43 +01:00
jenkins-bot b1d8d072e3 Merge "Update getEntityIdParser method callers to static" 2021-03-02 14:06:48 +00:00
Translation updater bot 0bf7c5fec0 Localisation updates from https://translatewiki.net.
Change-Id: Ia8f86d24284248dc6bc14beca12f8479b3fbe2e2
2021-03-02 08:50:00 +01:00
Itamar Givon 6a8f7df8ad Update getEntityIdParser method callers to static
Bug: T275886
Depends-On: I5bcd59b954521b74eeae4f2f207ebb35ccba97d7
Change-Id: I1f930a809a6094e2079b972a78cc3403ddeb6f73
2021-03-01 16:34:14 +01:00
Translation updater bot a5f2825e53 Localisation updates from https://translatewiki.net.
Change-Id: Ic4a414c15043b76a98f921f602f8ac97d9a6b37d
2021-03-01 08:52:22 +01:00
Translation updater bot 363550d13f Localisation updates from https://translatewiki.net.
Change-Id: I6f431b9398214fde6682f5558be7caaf8ecf040e
2021-02-25 08:38:54 +01:00
jenkins-bot 7bb3d281da Merge "Use Mathoid to validate Wikibase formuale" 2021-02-23 21:06:52 +00:00
jenkins-bot 92cc03d300 Merge "Remove redundant ExtensionRegistry callback" 2021-02-18 21:51:29 +00:00
Moritz Schubotz (physikerwelt) 35d57a65cc Use Mathoid to validate Wikibase formuale
* Reenable math validator tests
* Introduce $wgMathUseRestBase which defaults to true
  and determines if mathoid is used via RESTbase or directly
* The effect of this change can be tested by setting $wgMathUseRestBase
  to false, and then creating a new statement of a property with type math.
  One should see a connection to mathoid for every new string and one should
  also see the WAN cache for the check endpoint to fill up. Note that
  setting WANObject cache to the database simplifies the investigation
  of the WAN cache content.

Bug: T274436
Change-Id: I40109e9e09464da78bf855646fb800ee87c1ea67
2021-02-18 22:13:58 +01:00
jenkins-bot 132dd74949 Merge "Update a few type hints" 2021-02-18 18:27:16 +00:00
Thiemo Kreuz 56ad7ff334 Update a few type hints
Some random bits I found while working on some other code.

Change-Id: I29be84cb54e05af5030defd99cb1f42f9c6a5b63
2021-02-18 16:20:35 +00:00
Thiemo Kreuz 8632db2dfc Use modern new static syntax instead of get_called_class
Change-Id: I901505912784fa32a694c4c854eee86c42fd9c0c
2021-02-18 16:16:42 +00:00
Translation updater bot e4577337d5 Localisation updates from https://translatewiki.net.
Change-Id: Ia6c03b47d8dc3a663ccbc57526a8755d7eebb440
2021-02-15 10:05:44 +01:00
Timo Tijhof 2308e436ce Remove redundant ExtensionRegistry callback
This additional hook does not seem to be needed.

- wgMathValidModes: All access to this information already uses
  getValidModes() and thus there is no need to write this back
  to the input variable (use outside the extension is not supported
  and it is already not used as cache either).

- wgMathDisableTexFilter: All access already uses getDisableTexFilter()
  Move the last bit of logic there instead.

- wgDefaultUserOptions: Duplicate of this already exists in the
  onGetPreferences hook higher up.

This seems almost too easy, so I suspect someone tried this before
and intentionally didn't finish it because of some non-obvious
issue.

See T189966 for related perf anaysis.

Change-Id: I4d7fdf6fcae3d44a37bf80d9c72fff2b4361f0c9
2021-02-10 23:29:49 +00:00
Moritz Schubotz (physikerwelt) 7780424504 Extend mathoids Checker functionality
* Keep status code and response in memory
* Allow external cache preloading.
  This will be required for the one-stop mathoid batch rendering
* Duplicate functionality from the restBASE interface
** Error rendering
** Validity checks
** getter for validated tex

Depends-On: Ic779e671ada0d0306e0935e578b47c431abd520e
Change-Id: I066975b9ba03f5861f6c92687cba4743044ea82a
2021-02-09 23:36:03 +01:00
Translation updater bot 6e52bc2807 Localisation updates from https://translatewiki.net.
Change-Id: Ia1cd024d58e46e8b00349b33f9abe213ea56d2f3
2021-02-08 08:42:21 +01:00
libraryupgrader 79a7324eed build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic
  * MediaWiki.Commenting.PropertyDocumentation.WrongStyle

* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * no-useless-escape

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I1c641a4945f94337ca22763920601400ee9ab691
2021-02-06 12:19:19 +00:00
jenkins-bot 33dee20ee1 Merge "Improve debugging" 2021-02-05 21:32:56 +00:00
Moritz Schubotz (physikerwelt) 67720e080d Improve debugging
* simplify generation of debug output
* invert if statement to reduce indention
* minor fixes:
** update storedInDatabase
** store PNG output
** restore matoid style handling from
   Ief1b6345c17db41f92684e00233d57240e97599f

Bug: T252389
Change-Id: I71853124e5f2633f94fc9aacdedc24a86f27d08b
2021-02-05 18:08:29 +01:00
Moritz Schubotz (physikerwelt) 2e0276c7f9 Remove mathoids coverage test
Before the HTTP tests were blocked T265628, the Math extension did
test all examples from w:Help:TeX and additional regression test
against the configured mathoid/restbase instance. Effectively, those
tests did only verify the hashes returned from mathoid/restbase.
We now drop this kind of integration test.

Bug: T265646

Change-Id: Iffe5105457297fdc2222af9f11ff56e78c479f32
2021-02-02 19:16:21 +00:00
Translation updater bot 71e77e82bf Localisation updates from https://translatewiki.net.
Change-Id: I1294d0dc6ed851432ce6d5fb404f0ba48a3fc7c1
2021-02-02 08:39:23 +01:00
Moritz Schubotz (physikerwelt) 50a8fe1079 Convert Math to abstract schema
Bug: T268561
Change-Id: I0c7c1fec8cc4d2b7eb6e14db03b1b753ba95193b
2021-01-30 19:28:21 +01:00
Translation updater bot 51f405c413 Localisation updates from https://translatewiki.net.
Change-Id: I710c2198423e9ab613ca5bbbc44187ace19f216b
2021-01-25 08:54:03 +01:00
Umherirrender bcaab9cbf6 Improve function and property documentation
Change-Id: Ic809107bbce3d9019e0c9239281635a738ccdc36
2021-01-23 01:46:48 +01:00
jenkins-bot ff51ab3207 Merge "Fixes tags data being lost after first onParserAfterTidy call" 2021-01-22 17:52:45 +00:00
Translation updater bot a194598672 Localisation updates from https://translatewiki.net.
Change-Id: Iaf27e72914864966c45f0d795f2eba05b4b50b9a
2021-01-21 08:32:15 +01:00
Translation updater bot e4541b544f Localisation updates from https://translatewiki.net.
Change-Id: Ic28fac1c272926285ff69ec0f347501cf53f459a
2021-01-18 08:38:41 +01:00
Vedmaka d110f7eeef
Fixes tags data being lost after first onParserAfterTidy call
This patch is a result of an observation that when <math> tags being
placed before {{#tree:..}} call they are not rendering correctly and
displaying -postMath strip markers instead, so never being replaced by
the actual math markup.

The reason is that the TreeAndMenu do parse operations within its parser
function callback and considering the MathHooks::onParserAfterTidy is
programmed to clear all the MathHooks::$tags data after first call of
the hook it looses all the data stored.

This issue also should appear of <math> is used with any other extension
function that calls parser `parse`, `recursiveTagParse`, etc

The patch modified MathHooks::onParserAfterTidy callback making it
remove tag data only after successful replacement instead of clearing
all the tags data on the first call

Change-Id: Icd115c61492d2ee9aa2004ad1940ff837bd1059a
2021-01-15 11:11:28 +03:00
Translation updater bot 6a359d2907 Localisation updates from https://translatewiki.net.
Change-Id: If2770212d280dc0f58a2c18fa24895887f125ab8
2021-01-14 08:50:41 +01:00
Translation updater bot 832c98694b Localisation updates from https://translatewiki.net.
Change-Id: Ia179d192b59a44a3851529fa76ca80e5cdb46bc0
2021-01-08 08:56:05 +01:00
Translation updater bot 2747026419 Localisation updates from https://translatewiki.net.
Change-Id: I7b61fd8f907fbbba99697e7331bd71a6a809bfe1
2021-01-04 08:44:02 +01:00