Commit graph

1792 commits

Author SHA1 Message Date
Translation updater bot 0e8e529618 Localisation updates from https://translatewiki.net.
Change-Id: I5a62e4a8cc4191ec75d6bb0e672aa578905c5f8c
2021-04-09 08:59:15 +02:00
Translation updater bot fef102d53c Localisation updates from https://translatewiki.net.
Change-Id: Ic04401fb8d5d488b8fcbfee51129fe65d0c5bacd
2021-04-01 08:38:11 +02:00
Translation updater bot 6b38cc37fd Localisation updates from https://translatewiki.net.
Change-Id: I241b0aec8c8ec8918e5cdb114d7c3b576d251914
2021-03-29 08:37:13 +02:00
Translation updater bot ebbdc35828 Localisation updates from https://translatewiki.net.
Change-Id: I490e0878d8a1c95460d479ffe08258e65c8757bc
2021-03-23 08:25:38 +01:00
Translation updater bot 59f84abeae Localisation updates from https://translatewiki.net.
Change-Id: Id4618dc52db369eb2c6f384e59c9e02b96b72160
2021-03-22 08:38:05 +01:00
jenkins-bot 8fd0fb3afb Merge "Fix i18n documentation" 2021-03-17 13:38:55 +00:00
Adam Wight 67c8f1af8d Fix i18n documentation
Change-Id: I53a5371a0b01d918d149ffab8490374c52a21e16
2021-03-17 11:13:47 +01:00
Translation updater bot 839072b924 Localisation updates from https://translatewiki.net.
Change-Id: Ia28b941cda46a21b92dd0fcd2ab3b3534b4c909f
2021-03-16 08:33:53 +01:00
libraryupgrader 578aee3ed5 build: Updating eslint-config-wikimedia to 0.19.0
Additional changes:
* eslint: Renamed `wikimedia/client` profile to `client-es5` (T277085).

Change-Id: I9ae968d7846b4c1596a6c802ea4eca8a008ab091
2021-03-14 17:40:19 +00:00
Umherirrender a5333289b8 Remove php entry point
Deprecation notice since I43d7febac9ae620d739dd494a87aba2a7010801c

Bug: T140850
Change-Id: If2ce8d2932e9fb2881f3b32634925493ec012996
2021-03-13 00:00:53 +01:00
Translation updater bot c0afeb2ecf Localisation updates from https://translatewiki.net.
Change-Id: Idd1365927b803b434291c1e8bf942501ad8ec176
2021-03-12 08:47:00 +01:00
Translation updater bot dd846b7ff3 Localisation updates from https://translatewiki.net.
Change-Id: I8d94e00489aecd03ef0de20a5c57746dae64ef60
2021-03-10 08:32:48 +01:00
libraryupgrader 99de8fa660 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: Ia16f5401997e5144e27dde8fafb370a56f71e3ad
2021-03-08 02:55:10 +00:00
Translation updater bot 23ffadd46a Localisation updates from https://translatewiki.net.
Change-Id: I0f430a09ab3cdd85d56e9ba773641afdf04ef671
2021-03-05 08:56:45 +01:00
Adam Wight d63a375fac Finalize event platform migration
Bug: T275011
Bug: T275012
Change-Id: I51a3c3b6b3943db651807fbb2c0eb17c8c51440f
2021-02-24 16:52:55 +01:00
jenkins-bot 9a42121f2e Merge "Send title without namespace" 2021-02-22 16:11:36 +00:00
Translation updater bot f1e9c85da9 Localisation updates from https://translatewiki.net.
Change-Id: I3bc9630d9317c3093e35b2a9f8c88e5221f29de9
2021-02-22 08:53:53 +01:00
Thiemo Kreuz 6129f5d589 Don't validate <templatedata> tags on non-wikitext pages
I tested this locally, and indeed: Try to edit for example your
own page http://en.wikipedia.org/wiki/Special:MyPage/common.js
Try to paste and save this:

 var notWikitext = '<templatedata>{</templatedata>';

The page fails to save. (You might not see the error message
because of T258790#6751678.)

But this is not even wikitext. The <templatedata> string is
meaningless and does not trigger any TemplateData code when
the page is parsed and saved. Still there is an additional (!)
parser run that processes every page with the wikitext parser,
no matter what the actual content model is.

This does not only cause strange stack traces (see T272231),
it's most probably a massive performance bottleneck. Luckily
the majority of pages on the Wikimedia cluster is wikitext
anyway.

Bug: T272231
Change-Id: I2efcadc9bae6ecb37314f6d45c0c520abfbb85a0
2021-02-19 15:10:28 +01:00
Translation updater bot 759953d862 Localisation updates from https://translatewiki.net.
Change-Id: I3ba6b696745f72062214dacda286f902b00175be
2021-02-19 08:32:51 +01:00
Adam Wight e9e1b8ff48 Send title without namespace
These are a mess and hard to de-localize.  Also, the schema is
already documented as not including the namespace in this field.

A proper migration would be very difficult, so we'll have to remember
that our data includes this glitch and manually strip namespace
prefixes before the deployment date, as needed.

Change-Id: If2a4dd865b95458dc63162460f252500fd52436e
2021-02-18 18:27:53 +01:00
WMDE-Fisch 43e3043bab Allow input fields for parameter values to expand
Adding a new widget that inherits from MultilineTextInputWidget but
is initialized with only one row and prevents using the return key
to add new lines.

Bug: T263533
Change-Id: I5423f5f04075d21abd7acf09b622fd6444feeeb2
2021-02-17 17:27:54 +01:00
Translation updater bot 71e0ef3009 Localisation updates from https://translatewiki.net.
Change-Id: Idae2b4f7815fa673d91b8e52c3bd90ae72a131bc
2021-02-17 08:43:41 +01:00
Translation updater bot ea77c53f54 Localisation updates from https://translatewiki.net.
Change-Id: I94d3df5831ebae433f4ea71f8efab3a43144e911
2021-02-15 10:06:36 +01:00
jenkins-bot e474d1632d Merge "Update a few confusing variable names in editor code" 2021-02-13 17:24:02 +00:00
jenkins-bot f26a5d37ec Merge "More strict validation of InterfaceTexts" 2021-02-13 17:23:44 +00:00
Translation updater bot e9c3df10e9 Localisation updates from https://translatewiki.net.
Change-Id: I847e5d59e664532822f7454c60d40bc47d9ad2ec
2021-02-11 08:40:15 +01:00
Translation updater bot f5236fb131 Localisation updates from https://translatewiki.net.
Change-Id: Ia007571c165b51884762f2ab73e15833b0f3565a
2021-02-09 08:41:44 +01:00
Translation updater bot 71f110eea5 Localisation updates from https://translatewiki.net.
Change-Id: I0b12da9f9bdeb90672901ef3a4571198dc813fe2
2021-02-08 08:45:20 +01:00
jenkins-bot 08afd9c3b6 Merge "Bucket the user's edit count before logging an event" 2021-02-01 17:06:07 +00:00
libraryupgrader b3342f69b6 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* 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:
  * compat/compat

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

Change-Id: I6c04cb615ac1110833bbaaed686fc226b59d2c50
2021-01-30 14:53:11 +00:00
Translation updater bot 4d78fbaff7 Localisation updates from https://translatewiki.net.
Change-Id: Ic76334f8d4942a99590fd86eea57242ad4f02d6b
2021-01-28 08:37:12 +01:00
Translation updater bot 9e8cae2cd7 Localisation updates from https://translatewiki.net.
Change-Id: Id95f89ad82eac2dcb9630e804b81e62fc912566a
2021-01-27 08:35:31 +01:00
Translation updater bot 036b8bfaa6 Localisation updates from https://translatewiki.net.
Change-Id: I9cea24c3683969bb1c6cb37989a34cdae7a73379
2021-01-26 08:54:04 +01:00
jenkins-bot 8b9c2f8b13 Merge "Remove inconsistent capitalization of parameter names" 2021-01-25 16:26:17 +00:00
Translation updater bot adc545245e Localisation updates from https://translatewiki.net.
Change-Id: I15b02eab75da71c9f17624f171a63e73abe6d503
2021-01-25 08:54:51 +01:00
Andrew Kostka d81226fdf7 Bucket the user's edit count before logging an event
Bug: T272569
Change-Id: I5313a3808b266bb60644b40bdb192db77208774a
2021-01-21 13:52:28 +01:00
Translation updater bot 777ce7963d Localisation updates from https://translatewiki.net.
Change-Id: I06f3fd19f043e31f0685f8f6a9caa58b1492ff17
2021-01-21 08:32:52 +01:00
Translation updater bot 58ebf35ef1 Localisation updates from https://translatewiki.net.
Change-Id: I4126d5dac6004bf523946dd518d8762d1ea9900b
2021-01-18 08:39:56 +01:00
Umherirrender b97d851664 Add missing @param to test documentation
Change-Id: Ie99e77e7e6f543eaf041eb8530c6f318538c8da5
2021-01-17 20:17:57 +01:00
Translation updater bot 68f1efc7e0 Localisation updates from https://translatewiki.net.
Change-Id: I830dbfab9edfd1a4654ad5552d07189a5016c3f2
2021-01-14 08:51:25 +01:00
Thiemo Kreuz 563a44ca72 Change param duplicate numbering to start with 2
… instead of 0. Conditionally add a dash in front as well to
avoid confusing results like '1' + sequence number = '12'.

Change-Id: I345704b00ba3812c4905f85e35cf21a6dfd05437
2021-01-08 14:50:04 +00:00
Thiemo Kreuz 954211d8ba Fix handling of duplicate parameter names
I looks like the Model.params data structure is build in a way
that it allows mismatching parameter "keys" and "names". E.g.

{
    "a": { "name": "a" },
    "a0": { "name": "a" },
}

There are comments in the code that suggest this is
intentional.

I found code that confused these two values and tries to use
the name as a key, for example. This fails, messes up the
paramOrder, and such.

This should not have much, if any effect for users because
users are blocked from doing this anyway, e.g. buttons get
disabled.

Change-Id: I2067024ad8d5b8e985a4f162cf6875f523777a6c
2021-01-08 15:48:55 +01:00
Andrew Kostka dfa86a7c71 The parameter-type-change event should also fire if type was initially undefined
Bug: T260343
Change-Id: I26f50dfd6b4b747b1ef88d619df6aff5278d412a
2021-01-08 14:09:34 +00:00
Translation updater bot aaf660f38c Localisation updates from https://translatewiki.net.
Change-Id: Ic7d58568699329a69e787fe17d0dd313fe175b0c
2021-01-06 08:29:20 +01:00
Translation updater bot fce41ca1b0 Localisation updates from https://translatewiki.net.
Change-Id: Ic6f2e55664d902438e6b93e4266bed779f871416
2021-01-04 08:44:53 +01:00
Translation updater bot baad48a17d Localisation updates from https://translatewiki.net.
Change-Id: I58b997ad23ff7c6f864839ced35e507118c2518f
2020-12-30 10:15:07 +01:00
Translation updater bot 00abdd1d6f Localisation updates from https://translatewiki.net.
Change-Id: Ief15a37d5c6f52feb28e81d99ac6ddccc5b1b3ab
2020-12-29 09:48:51 +01:00
Translation updater bot 11f9c006c3 Localisation updates from https://translatewiki.net.
Change-Id: Idb23f4ec35de93a187375d671c11c273c6ebfe39
2020-12-28 10:40:06 +01:00
Thiemo Kreuz 294786223d Remove inconsistent capitalization of parameter names
Example:

On
https://en.wikipedia.beta.wmflabs.org/wiki/Template:Anschutz
the two parameters "state" and "capitalization_test" don't have
a label in the <templatedata> JSON structure. Instead the
internal parameter name is shown. But it's capitalized for an
unknown reason. I guess this is done to make the table look
"nice". But it causes confusion – see the ticket.

This capitalization is there since the very first commits from
2013, see I16d3f9e.

Compare with VisualEditor: Edit the template on
https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.8542952978413387-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
or use the old wikitext editor and TemplateWizard to insert
the template. In both cases the parameter names are not
capitalized.

Another argument why this capitalization is misplaced: When
there is no <templatedata> JSON blob, the TemplateData editor
auto-detects the parameters and semi-automatically creates a
minimal JSON blob. This is the moment where labels should be
created and stored so the user can edit them. But this doesn't
happen (for good reasons).

The user can't do anything about the current capitalization.
The only way to change it is to add a label that does nothing
but repeat the parameter name, just to undo the capitalization.
That should not be the way this works, I would like to argue.

Bug: T174771
Change-Id: Ia8133d3f0d6b79fe89c63bb0392a334c0a185a65
2020-12-23 11:59:12 +00:00
Translation updater bot cab188ac88 Localisation updates from https://translatewiki.net.
Change-Id: I7f523213eb0b48a45ee979011cb0519f5775530d
2020-12-22 08:32:50 +01:00