Commit graph

19491 commits

Author SHA1 Message Date
jenkins-bot
771be6c7aa Merge "Restore password reset invalid email message" 2024-08-04 16:58:25 +00:00
Translation updater bot
cd80704e27
Localisation updates from https://translatewiki.net.
Change-Id: I2de7b7940855721c98548e758b766ce58a77553c
2024-08-02 09:05:05 +02:00
jenkins-bot
2d3c0375d1 Merge "Drop writeapi userright" 2024-08-01 21:06:33 +00:00
Translation updater bot
253429ecbd Localisation updates from https://translatewiki.net.
Change-Id: I93442491e1ee093ecd048e463fabc66a22da1325
2024-08-01 07:44:08 +00:00
jenkins-bot
512c78b8ea Merge "Make {{#language}} consistent with {{#dir}} and {{#bcp47}}" 2024-07-31 11:42:16 +00:00
jenkins-bot
52a10a36b1 Merge "Add {{#bcp47}} parser function" 2024-07-31 11:42:08 +00:00
Reedy
b52a8addf5 Drop writeapi userright
Bug: T294397
Depends-On: Ib34228a18917e404517d45e539bd786419d9c401
Change-Id: Ifad2edc782b36d21c8c67fecde7f011dce02c11b
2024-07-31 11:10:50 +00:00
Translation updater bot
286ec3c01d
Localisation updates from https://translatewiki.net.
Change-Id: Ia3fdf9eeb39730a6b607a8d5778d549100d978a5
2024-07-31 09:04:34 +02:00
jenkins-bot
f338ac3295 Merge "Add {{#dir}} parser function" 2024-07-30 20:34:27 +00:00
C. Scott Ananian
450fe7fcd8 Make {{#language}} consistent with {{#dir}} and {{#bcp47}}
Add the same no-arg options for language code that
{{#dir}} and {{#bcp47}} have, for consistency:
* `{{#language}}` will return the name of the *target language*
  (for articles, the content language; for messages, the user language)

The default value for the "in language" argument should be the autonym.
This was working previously but only via a baroque code flow path for
invalid language codes.  Make this a bit clearer and add tests.

Since non-autonym language code translations are added via the
[[Extension:CLDR]] in production, hook LanguageGetTranslatedLanguageNames
in the ParserTestRunner to ensure that we can test this.

Followup-To: Ice1c671c5b3cc077d2bb80ea5dc25c5eabbfeb36
Followup-To: I19c3e91a924e080f37dc95a0d4e61493583b533e
Change-Id: Ibf6e7f194cc056eadb48a5ad8e6d01a761d9351c
2024-07-30 20:27:17 +00:00
C. Scott Ananian
416c33bb6a Add {{#bcp47}} parser function
Template:Bcp47 is one of the most used templates in Wikimedia Commons.
Providing its functionality as a parser function, tied to MediaWiki's
language-handling code, reduces code duplication and will allow us to
reduce template usage on commons.

As with the {{#dir}} parser function, support one special case:

* `{{#bcp47}}` will return the BCP-47 code of the *target language*
  (for articles, the content language; for messages, the user language)

Note the following slight differences from [[Template:BCP47]] on Commons,
documented in an added parser test:

* 'simple' maps to 'en-simple' (not just 'en')
* 'roa-tara' maps to 'nap-x-tara' (not 'it-x-tara')

Bug: T366623
Change-Id: Ice1c671c5b3cc077d2bb80ea5dc25c5eabbfeb36
2024-07-30 20:27:03 +00:00
Bartosz Dziewoński
6f82b91873 Restore password reset invalid email message
This mostly reverts commit 28ad29ea0f.

Checking the validity of the provided email doesn't reveal any
information about any users, and it could help catch genuine mistakes,
e.g. if someone inputs the username in the email field.

Previously if an invalid email was provided, we showed a success
message that is an obvious lie (saying we sent an email to something
that isn't an email address).

Change-Id: Idec437b29b22e5b1e5aaff3846632fbc413a3dcb
2024-07-30 14:19:13 +00:00
Translation updater bot
f08e9502df
Localisation updates from https://translatewiki.net.
Change-Id: I2443fb0035bdb9ce0ea5a54421f467b1cf1668c9
2024-07-30 09:06:14 +02:00
jenkins-bot
e2fe610284 Merge "Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php" 2024-07-29 09:16:52 +00:00
Translation updater bot
ee1cfa963f Localisation updates from https://translatewiki.net.
Change-Id: I75747bc905271f30e6ea08917345d3836b577fcf
2024-07-29 08:14:31 +00:00
Amir E. Aharoni
f0a981fd0c Add namespace translations for Saint Lucian Creole (acf)
Translated by User:Suitcaseshoes on translatewiki.net.

Bug: T371051
Change-Id: I3dc77ad2ed297f23eb49925f7b943266a8a65e22
2024-07-26 10:24:05 -04:00
Amir E. Aharoni
180082f968 Add Saint Lucian Creole (acf)
Bug: T371051
Change-Id: I1ebd651aa9a4bd15a1f4dc898abdae7a8efb4406
2024-07-26 09:23:40 +00:00
Translation updater bot
43b5c82a0a Localisation updates from https://translatewiki.net.
Change-Id: I3f1558b5c93c8e08f2982e6699e14585b1da6f29
2024-07-26 08:14:59 +00:00
Seawolf35gerrit
fc194e5b3a languages: Switch around formalityIndex for nl and nl-informal
Bug: T366595
Change-Id: Ic5d5e83d409bba6da3fab4606e1442f02813f22c
2024-07-25 23:00:40 +00:00
Winston Sung
3a453c1446
Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php
First export in commit 754c37901f
(Change-Id Ie16c8fbd777a51cebafd32cd1406907c763be975 ).

Language codes nan, nan-hani, nan-latn will be used for language
converter codes.

Bug: T354937
Bug: T370987
Change-Id: Ia87cfa3ec3a71e554ba767bacdb970549454aa93
2024-07-25 19:03:12 +08:00
Translation updater bot
e9d4a3fca6
Localisation updates from https://translatewiki.net.
Change-Id: Ia7465680f80b4b3d3f3d386414ffdc743f8b9ed8
2024-07-25 09:04:31 +02:00
Amir E. Aharoni
f7d9a5f2db Add namespace translations in Iban (iba)
Provided by Song GK at
https://translatewiki.net/w/i.php?title=User_talk:Song_GK&oldid=12540720#Namespaces

Bug: T367991
Change-Id: I688011b795a20529e57d9d8702e4e135f78e93b2
2024-07-24 19:58:33 -04:00
Translation updater bot
20639f5d5f
Localisation updates from https://translatewiki.net.
Change-Id: I29876c23b2da3633d3b7496f01bbfba448b20540
2024-07-24 09:04:39 +02:00
jenkins-bot
e4faf612c9 Merge "Add fallback language to Iban" 2024-07-23 15:04:11 +00:00
Translation updater bot
b72360da54
Localisation updates from https://translatewiki.net.
Change-Id: I2b006d1cb9cb03afbccfc6a9825faaea49d41d5b
2024-07-23 09:07:10 +02:00
Meno25
b30ac0000d Updates for Arabic (ar) and Egyptian Arabic (arz)
* Update $magicWords and $specialPageAliases

Change-Id: I7fc99a924dd9ccb8d616dab88949556569cac39e
2024-07-22 22:23:28 +00:00
jenkins-bot
9217cd94f8 Merge "tests: Remove unstyled text atop Special:JavaScriptTest" 2024-07-22 12:18:00 +00:00
Translation updater bot
485643c7d9
Localisation updates from https://translatewiki.net.
Change-Id: I6446103a546afd4eda263d90631a8a1de647c272
2024-07-22 09:04:30 +02:00
Timo Tijhof
b50f6aa17a tests: Remove unstyled text atop Special:JavaScriptTest
I added this over 10 years ago when this page was still an integrated
and skinned MW page. Now that we use the standalone QUnit layout, the
message no longer fits in. Also, since QUnit 2.14, the layout is fixed
so our message is invisible anyway becaise it falls behind the toolbar.

Bug: T250045
Change-Id: Icc228e332155147c7f88fb3d85953fc1046473fc
2024-07-20 05:01:21 +01:00
Ebrahim Byagowi
e1385d3bdf Add {{#dir}} parser function
Template:Dir is one of the most used templates in Wikimedia Commons,
this tries to provide parts of its functionality in hope we can
perhaps simplify or get rid of the template eventually for clarity and
performance reasons.

As a convenience, `{{#dir}}` and `{{#dir:}}` are synonyms for
`{{#dir:{{PAGELANGUAGE}}}}`: they return the direction of the target
language.  For articles, the target language is the content language;
for messages, the target language is the user language.

In addition, to avoid confusion between BCP-47 language codes and
MediaWiki-internal language codes, an optional second parameter can be
supplied.  If the second parameter is the (localizable) string
'bcp47', the language code given in the first parameter will be
treated as a BCP-47 code.  For example: `{{#dir:sr-Cyrl|bcp47}}`.

(See LanguageCode::bcp47ToInternal() for a description of the
differences and overlaps between MediaWiki internal and BCP-47
codes.  These overlaps *so far* don't result in any case where
encouraging editors to be precise about which set of enumerated
string values they are using for consistency with other
language-related functions, and because MediaWiki internally
differentiates between BCP-47 codes and internal codes.)

Bug: T359761
Change-Id: I19c3e91a924e080f37dc95a0d4e61493583b533e
2024-07-19 16:57:48 -04:00
Seawolf35gerrit
e873d1f5e4 i18n: Reword title invalid empty.
Rewording title-invalid-empty to make it more clear and descriptive. 

Bug: T370434
Change-Id: I9c821d593f890aa0a4deccafa0c15f34e1bd6ffd
2024-07-19 16:03:33 +00:00
Translation updater bot
bf5d598350
Localisation updates from https://translatewiki.net.
Change-Id: I614ad18b95d1c0c2758d0b3678b99a7d97e49b10
2024-07-19 09:05:10 +02:00
Srishakatux
6340a6f1f2 Add namespace translations for isv-latn
Based on translations provided here: https://translatewiki.net/wiki/User_talk:IJzeren_Jan#Namespaces

Bug: T367688
Change-Id: I9aec55d47be7ca85ad82ed3ea97645107ad8998a
2024-07-18 20:17:18 +00:00
GergesShamon
51106043b0 [i18n] Change the names of the Arabic months
Bug: T370456
Change-Id: Ib5257276e38884eb7711c2c0842e4ed6ab58cf39
2024-07-18 18:44:26 +00:00
Translation updater bot
bb002cd6e1
Localisation updates from https://translatewiki.net.
Change-Id: I39ba128dded23e76e697d8850fde30e1edab1824
2024-07-18 09:04:40 +02:00
Translation updater bot
c78f85ba3d
Localisation updates from https://translatewiki.net.
Change-Id: I776151944e8ab9a77c9cc2da87e1b92a5bf29d7b
2024-07-17 09:04:28 +02:00
Translation updater bot
76cd4f707f Localisation updates from https://translatewiki.net.
Change-Id: I00eb13661d369ad6874d10aa66a8b3f23b10ef99
2024-07-16 08:30:05 +00:00
Translation updater bot
40a07e42e5
Localisation updates from https://translatewiki.net.
Change-Id: Ia7fd7a01fb295103abdebff2ae4812d08ab967f5
2024-07-15 09:04:36 +02:00
jenkins-bot
a0f6e4c7cb Merge "SpecialImport: Fix unparsed wikitext in error messages" 2024-07-12 18:15:05 +00:00
Translation updater bot
754c37901f Localisation updates from https://translatewiki.net.
Change-Id: Ie16c8fbd777a51cebafd32cd1406907c763be975
2024-07-12 14:09:50 +00:00
Translation updater bot
5d75a6cefc
Localisation updates from https://translatewiki.net.
Change-Id: I1a44167769d89a6f7183448d821e34b8fa301c45
2024-07-11 09:06:13 +02:00
Amir E. Aharoni
1b9f830cab Add MessagesAii.php for correct content direction
Bug: T369727
Change-Id: I1845d3949eecfb66593c422031ba50a180b56718
2024-07-10 11:33:36 -04:00
Translation updater bot
30c622c091
Localisation updates from https://translatewiki.net.
Change-Id: Id00b720194d3a715050cbce55e40ca11b34212ce
2024-07-10 09:04:15 +02:00
jenkins-bot
bf1fb532c7 Merge "Add a MessagesTrw.php file" 2024-07-10 04:18:59 +00:00
Translation updater bot
839e38173c
Localisation updates from https://translatewiki.net.
Change-Id: I580366e9838482844f1db700dc3337daba6b1cef
2024-07-09 09:07:50 +02:00
Amir E. Aharoni
96c23fe7ba Add a MessagesTrw.php file
Minimal support for this language to
allow right to left reading and writing.
Similar to MessagesPhr.php.

Bug: T369578
Change-Id: I977c8aa3964ef0d04afda46ab29609d0c7ce5594
2024-07-08 19:52:02 -04:00
Translation updater bot
015321f8f3
Localisation updates from https://translatewiki.net.
Change-Id: I231e31fe00031cefaeba180bea33054fe72e29e7
2024-07-08 09:07:30 +02:00
nokibsarkar
6895bc84d5 LanguageConverter: Added support for mni-Beng in mniwiki
This is the Language Converter from Meitei Script to Bengali Script in mniwiki.
I don't know the language. I got help from a native speaker User:Haoreima.
The original prototype was in a Python Library written by myself.
It only converts the words that have Meitei characters (U+ABC0..U+ABFF).
The original prototype is already being used in mniwiki via Gadget and a Bot.

Bug: T357853
Change-Id: I810f18050f29efa38b2a646d96644e298af47c50
2024-07-06 17:05:19 +06:00
Amir E. Aharoni
46c17cc2e9 Add fallback language to Iban
Requested by the main translator here:
https://translatewiki.net/w/i.php?title=User_talk:Song_GK&oldid=12494417

Bug: T367991
Change-Id: Ie86967426a2a95235ccfa4fbddf8797c6d152a77
2024-07-05 17:59:01 +00:00
Translation updater bot
85a43125f6
Localisation updates from https://translatewiki.net.
Change-Id: I7324434e720b90095deb391a15ee482812cbaab0
2024-07-05 09:04:37 +02:00
Bartosz Dziewoński
8a1da30d3f SpecialImport: Fix unparsed wikitext in error messages
Bug: T313059
Change-Id: Id8e1b7c2bab628b1570d3c90403767f783d565cf
2024-07-04 20:25:18 +02:00
Translation updater bot
6d592633da
Localisation updates from https://translatewiki.net.
Change-Id: Ib5f3f755947e57c47ae14bc02f99c01e6b590332
2024-07-04 09:01:49 +02:00
agamyasamuel
2c9ced1675 Added leading colon to parser-template-loop-warning
Bug: T368809

Fixed previous Commit CommitId: Ib35deb1b85b41ef1ef0ae572af975d5c6fc6702c

Change-Id: I702f496376d32443ae364b7a2e8991ae113e03bf
2024-07-04 01:08:39 +05:30
jenkins-bot
b457503304 Merge "Messages: Add an additional alias for the DEFAULTSORT magic word in Serbian language" 2024-07-03 08:02:39 +00:00
Translation updater bot
28388cbecb
Localisation updates from https://translatewiki.net.
Change-Id: Ibc8f059495b98ba01ac27469d1afe991beb74ec2
2024-07-03 09:01:43 +02:00
Jon Robson
c33b31728d Skins: Support useskin=json
This allows rendering of the data passed to the skin rendering
layer, to allow developers to debug the information used to render
a skin.

Bug: T364696
Change-Id: I32aaa6a85d24df4f4689269f6a455823bb08196b
2024-07-02 21:29:00 +00:00
Translation updater bot
21d339c940
Localisation updates from https://translatewiki.net.
Change-Id: I3b11e5f1651a472932eeaddfd4c7256aac1592b2
2024-07-02 09:06:21 +02:00
Translation updater bot
536e89de8f Localisation updates from https://translatewiki.net.
Change-Id: I9cc800fed10319c1056c1c530ae3677ec4428c2d
2024-07-01 07:19:21 +00:00
Translation updater bot
cb8184e909
Localisation updates from https://translatewiki.net.
Change-Id: Ie2abfd1d7044c04ba8b40b7831fe1e0c874362c1
2024-06-28 09:05:04 +02:00
jenkins-bot
70e927e1d0 Merge "i18n: Add messages for Codex components" 2024-06-27 13:52:43 +00:00
Anne Tomasevich
3bcea43454 i18n: Add messages for Codex components
Some Codex components have strings that are always or usually
consistent across features (such as the aria-label for the
icon-only "Close" button in a CdxDialog). Currently, the burden
is on the developer user to provide a translated string every
time they use one of these components.

These new messages will be used in Codex components for features
in MediaWiki, so the strings no longer need to be provided by the
dev user. See the parent task T345386 for additional context.

Bug: T368447
Change-Id: Ia39b9b775cc53719deae51abe96e18ba13dcfb7d
2024-06-27 08:36:10 -04:00
jenkins-bot
85514ce395 Merge "Remove unused message 'createaccount-hook-aborted'" 2024-06-26 17:47:41 +00:00
Bartosz Dziewoński
69adff293d Remove unused message 'createaccount-hook-aborted'
Unused since cfb62c605f (2018).

Bug: T224429
Change-Id: I6fc46bc94a258199af393de1f27e8269359e5716
2024-06-26 15:35:37 +02:00
Zoranzoki21
d58b83b2f5 Messages: Add an additional alias for the DEFAULTSORT magic word in Serbian language
Per community consensus of Serbian Wikipedia community at https://sr.wikipedia.org/wiki/Википедија:Гласање/Преименовање_шаблона_DEFAULTSORT#Тачка_један

Change-Id: I8de4b1468133e1783557dc7513f08f61ad91d6e5
2024-06-26 09:20:41 +00:00
jenkins-bot
6908e19eaa Merge "Fix typo in messages files for Serbian language" 2024-06-26 09:14:59 +00:00
Translation updater bot
fd2edd1701
Localisation updates from https://translatewiki.net.
Change-Id: I79501383ec3508e47effa070dcca11a952fa29da
2024-06-26 09:04:38 +02:00
Translation updater bot
dfd748033e
Localisation updates from https://translatewiki.net.
Change-Id: I47769df5dc91ad12d817e117fe931b1452e8b2ef
2024-06-25 09:05:07 +02:00
Translation updater bot
3be9942418
Localisation updates from https://translatewiki.net.
Change-Id: I5fd089ce78479d36594ce2d4f70fcfe2d72107b1
2024-06-24 09:04:22 +02:00
Translation updater bot
3ee5de05eb Localisation updates from https://translatewiki.net.
Change-Id: Ifa754e7d19a07e4104c18b09bc0e8633090caad8
2024-06-21 08:16:33 +00:00
James D. Forrester
c74515fa39 i18n: Use "Don't" over "Do not" in tog-diffonly
For consistency with tog-norollbackdiff (and similar messages
in downstream repos).

Bug: T367988
Change-Id: I1dcf539b637f42f416958729c36918a8aa18fb10
2024-06-20 10:38:42 -04:00
jenkins-bot
57b4204c66 Merge "Fix indentations of special page aliases" 2024-06-20 14:07:51 +00:00
jenkins-bot
2d708b563c Merge "Update messages for special page names/aliases" 2024-06-20 14:04:47 +00:00
anterdc99
d4f82d8195 Fix indentations of special page aliases
What:
* Fix indentations in MessagesEn.php
* Fix indentations in MessagesZh_hans.php

Depends-On: Ie6506c6bb004ebc89326094997a80d97551235ab
Change-Id: Ia980177ca03e6d61fe7bed075c6cf138bf44a3ca
2024-06-20 13:37:58 +00:00
anterdc99
19e6e03639 Update messages for special page names/aliases
What:
* Capitalized "API" in MessagesZh_hans.php
* Translated new special page names into Simplified Chinese

Change-Id: Ie6506c6bb004ebc89326094997a80d97551235ab
2024-06-20 13:37:40 +00:00
Dreamy Jazz
a7ff376161 Revert "Add messages for the "named" user group"
This reverts commit 0995e06b8e.

Reason for revert: The "named" group was removed in
I06bd5d7150203bbcb0806868fe829a438af486ba

Bug: T355741
Change-Id: I898470de4416e8e9d59901641767a4457648238b
2024-06-20 13:17:37 +00:00
Translation updater bot
72580a3737
Localisation updates from https://translatewiki.net.
Change-Id: If5b2fa14f8e004952bd293da225a55190366bea6
2024-06-20 09:04:52 +02:00
jenkins-bot
3078fe7eb9 Merge "Add protection indicators to mediawiki/core" 2024-06-19 18:54:26 +00:00
Translation updater bot
2e8fa743db
Localisation updates from https://translatewiki.net.
Change-Id: I2f6b9643ec3ca61f0070a390b336dd047d4ffca4
2024-06-19 09:04:45 +02:00
Translation updater bot
3c3e0504a1
Localisation updates from https://translatewiki.net.
Change-Id: Idd2d819ed83474118ea88c312d477d32f6454a82
2024-06-18 09:04:48 +02:00
Translation updater bot
c88d1f50ee
Localisation updates from https://translatewiki.net.
Change-Id: I6e374bdcde8b328af3b28c3f63fbd587684648c0
2024-06-17 09:11:28 +02:00
raymond
9bdec05faa typo: api -> API
Follow-up to I1dd5ed82680a28f9c15136b446a2de0398525061

Change-Id: I98b5db11120fbb5dd9711df80567cb26573debd2
2024-06-15 09:34:58 +02:00
Translation updater bot
dbc2bc4d74 Localisation updates from https://translatewiki.net.
Change-Id: I712e145bd4be73e5107697dfbf0de3e720d085cf
2024-06-14 08:46:28 +00:00
jenkins-bot
286f49b678 Merge "Add Special:RestSandbox for exploring REST API" 2024-06-14 01:19:30 +00:00
daniel
c01b7c7b4b Add Special:RestSandbox for exploring REST API
Special:RestSandbox presents a Swagger-UI interface for exploring REST APIs. The available APIs can be configured using RestSandboxSpecs.

For now, the default is to support no APIs, so the feature is disabled in production. In the future, it would make sense to expose the wiki's own REST API per default. The corresponding entry in $wgRestSandboxSpecs in LocalSettings.php would look like this:

	'mw' => [
		'url' => $wgScriptPath . '/rest.php/',
		'name' => 'MediaWiki REST API',
	]

Note that the spec URL may still change.

To also explore the endpoints exposed through RESTbase, we might add:

	'wmf-restbase' => [
		'url' => $wgServer . '/api/rest_v1/',
		'name' => 'Wikimedia RESTbase API',
	]

Similarly, we could expose a spec for endpoints on api.wikimedia.org, which could then be explored using the new special page.

NOTE: This adds a dependency on the swagger-ui npm library. See T325558 for the security review.

Bug: T362006
Change-Id: I1dd5ed82680a28f9c15136b446a2de0398525061
2024-06-13 21:40:36 +02:00
Roan Kattouw
6347d8aa68 HTMLForm: Remove use of jquery.chosen in HTMLMultiSelectField
HTMLMultiSelectField used the jquery.chosen library, but only for the
legacy display format, and only if the 'dropdown' option was passed.
There is only one form that passes the 'dropdown' option
(SpecialActiveUsers), and that form uses the OOUI display format, so
this code is unused.

Also remove the htmlform-chosen-placeholder i18n message, which is now
unused as well.

Bug: T53443
Change-Id: Ie4f9fff322ae26fbdf9eae1b3634d1b04e746179
2024-06-13 17:28:37 +00:00
jenkins-bot
68c63f31c0 Merge "arrayDef: Implement JSON schema validation in ArrayDef" 2024-06-12 16:08:20 +00:00
Atieno
709cb1e09b arrayDef: Implement JSON schema validation in ArrayDef
Bug: T362108
Change-Id: Ia64e96e2b368d28a560f1277c9f31ba225a6e1c6
2024-06-12 15:34:05 +03:00
Translation updater bot
e1b62187b1
Localisation updates from https://translatewiki.net.
Change-Id: If897bf9c2f5eefcef3bad92a18d89f0fbe5a1459
2024-06-12 09:04:47 +02:00
Translation updater bot
c92d74ab94 Localisation updates from https://translatewiki.net.
Change-Id: Ic3710044c6fa3aceaf2091a0b20cccb641b7df09
2024-06-11 09:04:24 +02:00
Translation updater bot
ae155e78c0 Localisation updates from https://translatewiki.net.
Change-Id: I142dd895994ac2e33bc64dc5a74c2426203d2637
2024-06-10 09:04:02 +02:00
Amir E. Aharoni
38ec2e7279 Remove an unnecessary space before a line break
Change-Id: I54ee55876b493cf0ecec9641f240751aaf04c056
2024-06-08 19:49:19 -04:00
Translation updater bot
898eeb37e7 Localisation updates from https://translatewiki.net.
Change-Id: Id0edfa7f1788fe0a2c15019daa26845623b8b15b
2024-06-07 09:04:08 +02:00
Translation updater bot
91d3501fdf Localisation updates from https://translatewiki.net.
Change-Id: Ica7d64d7d0cd5beef27700ece71db2da2f1f9311
2024-06-06 09:04:25 +02:00
Translation updater bot
8b2cbfde15 Localisation updates from https://translatewiki.net.
Change-Id: I6cc082d3fb4eb7ac91760dacafdb18637a150965
2024-06-05 09:04:47 +02:00
Translation updater bot
c6d610c2bb Localisation updates from https://translatewiki.net.
Change-Id: Iad97f4d2094056b63975e216a5389f02ab2cb551
2024-06-04 09:05:14 +02:00
Translation updater bot
4d9dba9e78 Localisation updates from https://translatewiki.net.
Change-Id: I7e810865c51386ea5c5fceda3c7cd196806480b1
2024-06-03 09:05:19 +02:00
jenkins-bot
9f8c62a20e Merge "composer: Remove localization from unlocalizable LockFileChecker" 2024-05-31 23:33:19 +00:00
Translation updater bot
a71090f595 Localisation updates from https://translatewiki.net.
Change-Id: I9976fd9ee3413d7a31dfe0c81e088bcd1bb27b24
2024-05-31 08:14:12 +00:00
Timo Tijhof
157102ae0c composer: Remove localization from unlocalizable LockFileChecker
This is internal class is exclusively used by LockFileChecker,
which in turn is used by maintenance/checkComposerLockUpToDate.php,
which in turn is used by PHPUnit and maintenance/update.php.

Both of these cases have to use workarounds to disable localisation,
because they run on the CLI (no request context or user language),
and without access to MediaWikiServices, Database, or LocalSettings.

Follows-up:

* T330228: I2caddfb8f2 (5ecbb62f7f): Add composer check to PHPUnit.
* T333412: Skip composer check for mediawiki-vendor Jenkins jobs.
* If6110eeaec (397e00444a): Fix invisible pre-fatal errors messages.
* T283389: I0d56f23560 (20e77793b8): Refactor and add localization.
* I995a1cb01a (d5d585b9b2): Fix "premature access" during PHPUnit.
* I33bf81087c2: Fix MessageCache crash during update.php.

The localization was added for T283389, but ended up not using it,
since all it does is check isGood and then render a custom interface
message localised as part of the Installer. Hence, remove this to
categorically remove and avoid these problems.

This change effectively reverts I995a1cb01a (d5d585b9b2) and thus
restores the more detailed and useful error details when failing
in the context of a PHPUnit command.

Change-Id: Ia30d39d7e064e9ff0d8397d25918d0bb2ea10914
2024-05-30 19:56:29 +01:00
jenkins-bot
6c7a8f63d8 Merge "Descriptions for new linter error missing-image-alt-text" 2024-05-30 17:32:33 +00:00
Brooke Vibber
5206fa9702 Descriptions for new linter error missing-image-alt-text
Adds localizable description for new linter error going into
parsoid for hidden tool tracking.

Bug: T344378
Change-Id: I787927e9f03bd9c23d069da964b111be5f563a21
2024-05-30 13:06:59 -04:00
Amir E. Aharoni
7db25be607 Update the autonym for language ku-arab
Bug: T360021
Change-Id: I8eac135ffbcc68901c1a00b7219f43087af1850c
2024-05-30 10:27:15 -04:00
zoranzoki21
c6e83f654b Fix typo in messages files for Serbian language
piskel/пискел is wrong, it has to be piksel/пиксел.

Change-Id: I94a3890a69c8ec39dc40243284006526d162d568
2024-05-30 11:32:02 +02:00
Translation updater bot
4f2d78e523 Localisation updates from https://translatewiki.net.
Change-Id: I5d4d37076a6612ecfaed9f4cda62186404f5065f
2024-05-29 09:05:37 +02:00
Sohom
bfb2d1d920 Add protection indicators to mediawiki/core
- Add a disabled by default feature flag 'EnableProtectionIndicators'
- When the config flag is enabled, show a lock indicator at the top
of the page.
- The lock icon should be overridable by the content of the page
- The indicator has a predictable ID which could be potentially used
 to style the icon using the onwiki Common.css file.
- The lock icon by default links to https://www.mediawiki.org/wiki/Help:Protection. However
this link can be customized per wiki per protection level using a
empty message (for example: `protection-sysop-helppage`)

Bug: T12347
Change-Id: I3e36d98edfe54a9c138b1fe8e5057e107ded281b
2024-05-28 16:09:27 -04:00
jenkins-bot
2eb5b0b7ac Merge "Add library to display the login form in a JavaScript modal dialog" 2024-05-28 19:47:13 +00:00
Bartosz Dziewoński
b18e4b3517 Add library to display the login form in a JavaScript modal dialog
Experimental library that can display the login form in a small
browser popup window, a new browser tab or window, or an iframe in
a modal message dialog. We're still testing which of these methods
work from the technical side, and which are understandable for users.
Some methods or the whole library may be removed in the future.

Usage:
    const authPopup = require( 'mediawiki.authenticationPopup' );
    authPopup.startPopupWindow()
    // or: authPopup.startNewTabOrWindow()
    // or: authPopup.startIframe()
        .then( function ( userinfo ) {
            if ( userinfo ) {
                // Logged in
            } else {
                // Cancelled by the user
            }
        }, function ( error ) {
            // Unexpected error stopped the login process
        } );

Or in future JS:
    const userinfo = await authPopup.startPopupWindow(); // etc.
    if ( userinfo ) {
        // Logged in
    } else {
        // Cancelled by the user
    }

In all three methods, the popup opens the login form with
&display=popup and with &returnto pointing to an unlisted special
page that communicates with the module on the parent page.

Once the library is stable, the AuthPopup component may be separated
from MediaWiki and released as its own package, to be used by tools
to open MediaWiki OAuth workflows in a similar way.

Bug: T364939
Change-Id: I08d9c799b8f79ebab2bcf4fcf330ee8eb995582e
2024-05-28 17:54:22 +00:00
Translation updater bot
50470d1727 Localisation updates from https://translatewiki.net.
Change-Id: I72d642b7172775a1db914e0c55f18f62e64ba5e0
2024-05-28 09:06:16 +02:00
Translation updater bot
32da948e2b Localisation updates from https://translatewiki.net.
Change-Id: I52e0a8bef6c9fd54c5e3a8e110f549682f426b21
2024-05-27 09:06:35 +02:00
jenkins-bot
ab30747454 Merge "Show the page name on the MovePage checkbox for "Yes, delete the page"" 2024-05-24 20:54:58 +00:00
Translation updater bot
b58b709f2e Localisation updates from https://translatewiki.net.
Change-Id: I787350a339bad0b80053ee49b5a1ed5f89899cd1
2024-05-24 09:04:25 +02:00
jenkins-bot
b9cc266c22 Merge "i18n: [clearyourcache] Drop references to no-longer-supported browsers" 2024-05-23 19:58:49 +00:00
James D. Forrester
85f717aab2 i18n: [clearyourcache] Drop references to no-longer-supported browsers
This message is already very long; let's not unnecessarily bloat
it by reference Opera or Internet Explorer, neither of which we
explicitly support any more even for basic no-JS browsing.

Change-Id: I24c3de3969d257caec881c2ac74b105d36d4db85
2024-05-23 14:55:09 -04:00
Translation updater bot
85cab28579 Localisation updates from https://translatewiki.net.
Change-Id: Ica64abb582b22381fe897e212476a3e12636c840
2024-05-23 09:05:10 +02:00
Bill McMurray
798f99dc5e Show the page name on the MovePage checkbox for "Yes, delete the page"
Multiple pages may be deleted to make way for page moves performed together, e.g. "Page", "Talk:Page", and "Talk:Page/Subpage". Clearly show which will be deleted if the box is checked.

Bug: T12814
Change-Id: I85b25e82436c7fcf6d305b891ae32fa9dfcc60d5
2024-05-23 03:19:38 +00:00
Translation updater bot
60b25e4bcd Localisation updates from https://translatewiki.net.
Change-Id: I1883552f8838602b09604fe27cee13dfea92d8b0
2024-05-22 09:04:56 +02:00
jenkins-bot
1791edeeda Merge "Add the Chakma language" 2024-05-21 18:55:31 +00:00
Translation updater bot
a33b4b8f14 Localisation updates from https://translatewiki.net.
Change-Id: Ie0522e6380a60a7ef19e48266547cf6700bb28ca
2024-05-21 09:07:01 +02:00
jenkins-bot
d195bca224 Merge "Add new special page aliases for Simplified Chinese" 2024-05-20 18:32:56 +00:00
Amir E. Aharoni
7619137919 Add the Chakma language
A little history: This is the first time that the $linkTrail
regular expression uses \p with a script name and not explicit
characters or code point numbers.

Bug: T365365
Change-Id: Ia3cf06b8241f74772608179605f1fd7f08a08f8c
2024-05-20 10:44:45 -04:00
jenkins-bot
9a28a56c31 Merge "Add namespaces for Betawi" 2024-05-20 07:19:39 +00:00
Translation updater bot
a15716dead Localisation updates from https://translatewiki.net.
Change-Id: Idfba2653c814c7094411045a9dda7e635b2a4800
2024-05-20 09:05:17 +02:00
Amir E. Aharoni
5f55c28f44 Clarify information about limited RTL languages
Add clarifying comments to several Messages*.php
file that were added only in order to support
RTL content. They will be useful for avoiding
confusion about the expected level of support
and also about the absence of those languages
from Names.php.

Also clean up autonyms for:
* Pulaar: use only Adlam, as in the
  Wikimedia Incubator, for which this file
  was created.
* Ladino: Use the same name as used on
  translatewiki.
* Pothwari: Use just one name, which is
  used in the Wikimedia Incubator, and remove
  a space.

Follow-up to
I5c78889474d02850198519de04d2a553f1f97a9e

Change-Id: Idc9f50c40b3eafc52721505ba94d81fc2b17071a
2024-05-18 21:52:04 +00:00
Amir E. Aharoni
a359f6561f Add namespaces for Betawi
Bug: T365255
Change-Id: Iae07b28746b1e8bf23c8a9ccc7e19a42393713c4
2024-05-17 10:31:13 -04:00
anterdc99
aae2a1016e
Add new special page aliases for Simplified Chinese
Change-Id: Ia1cf90c4a4f0fa62e7ed9b3d9e271b4b4e69357b
2024-05-17 21:34:18 +08:00
Translation updater bot
86593606ab Localisation updates from https://translatewiki.net.
Change-Id: Ic63a8baead51e9ede64d770595d8618fe248b786
2024-05-17 09:05:53 +02:00
Translation updater bot
f4d953a714 Localisation updates from https://translatewiki.net.
Change-Id: I6ecc55d0dfe7e94c33b1e5e4b9e53ae0764ee76b
2024-05-16 08:27:13 +00:00
Translation updater bot
5b96953658 Localisation updates from https://translatewiki.net.
Change-Id: I98b16fc2f666c6706d0a397be30c11f13321e74e
2024-05-15 09:04:54 +02:00
jenkins-bot
9206752b0c Merge "Some fixes to MessagesKo.php" 2024-05-14 17:14:14 +00:00
Lucas Werkmeister
a67391bcff Rename talkpage message to special-talkpage
talkpage is unfortunately already occupied by CologneBlue.

Bug: T242346
Change-Id: I6cbf5f1307e5e54685d61e4f6594cc85ff040221
2024-05-14 10:13:12 +02:00
Translation updater bot
7cab7c7b2f Localisation updates from https://translatewiki.net.
Change-Id: I16a9a355e89c8f447bf3871b6bc18e2b1159c6d8
2024-05-14 09:01:47 +02:00
Lucas Werkmeister
3074f3f773 Add Special:TalkPage for redirecting to talk pages
This is useful to link to the talk page of a page that is only known by
its title without needing to parse it or make any API requests.

I originally had the class extend RedirectSpecialPage, but couldn’t make
the form work properly that way, so eventually I opted to extend
FormSpecialPage instead and implement the redirect behavior directly.

Cache behavior is moderately aggressive, pinned to the parser cache
expiry, as these redirects should only need to change when the
namespace settings are updated.

Bug: T242346
Change-Id: I531b0b061d1ff1fef9ceffd6c82dc34940ba653d
2024-05-13 11:54:39 +02:00
Translation updater bot
2cbf57bf2b Localisation updates from https://translatewiki.net.
Change-Id: Ic3e5e37d6524fe9a93e8278a1b24c3536b5d68c0
2024-05-13 09:05:15 +02:00
Translation updater bot
32750c6cb4 Localisation updates from https://translatewiki.net.
Change-Id: Iae8f7181062b6ab7ad3b8efb9b33f97693829639
2024-05-10 09:01:03 +02:00
James D. Forrester
7bd509ec5b SpecialVersion: Group the two libraries lists into a single section
Change-Id: I738ccc06c1e95a4af9f11ddc8a49a745c9ee13a6
2024-05-09 20:25:56 +00:00
jenkins-bot
ca8335d859 Merge "Introduce {{#FORMAL:}} magic word to simplify translations" 2024-05-09 10:16:41 +00:00
Translation updater bot
81ee624cf7 Localisation updates from https://translatewiki.net.
Change-Id: I7dde4f68e3107c19cbf18fb138cd343e4aa362b7
2024-05-09 09:06:00 +02:00
Translation updater bot
29b0a43d42 Localisation updates from https://translatewiki.net.
Change-Id: I5e14ceedd23123134444b1718fc2ef038fb83c4f
2024-05-08 09:05:02 +02:00
Niklas Laxström
390246c8ca Introduce {{#FORMAL:}} magic word to simplify translations
Bug: T238433
Change-Id: I33732900318af96fef106d18e1aae6c143474e3e
2024-05-08 06:25:52 +00:00
Translation updater bot
c1a915a7c7 Localisation updates from https://translatewiki.net.
Change-Id: I1a518dada613f68541339011e6246dfc1f071a7e
2024-05-07 09:05:28 +02:00
Amir E. Aharoni
2ebd610140 Add support for the Musi language (mui)
Autonym according to Ethnologue is "Baso Palembang".
This is also the name most commonly used by the
language's speakers according to the article
Alsamadani, Mardheya; Taibah, Samar (2019).
"Types and Functions of Reduplication in Palembang".
Journal of the Southeast Asian Linguistics Society.

Bug: T364291
Change-Id: I4a867a8671ab32366aa459d49361682305b67dcb
2024-05-06 11:34:54 +00:00
Translation updater bot
79b5bb0402 Localisation updates from https://translatewiki.net.
Change-Id: Iff7def6ee4ac16680016d93aef1a3229bcf31add
2024-05-06 07:38:21 +00:00
jenkins-bot
95122e49f1 Merge "Add MessagesXx.php files for some RTL languages" 2024-05-05 11:14:40 +00:00
Jon Harald Søby
a80674a1d0 Add MessagesXx.php files for some RTL languages
These languages have some content in the Wikimedia Incubator
and/or Translatewiki, but because they don't have
MessagesXx.php files (with $rtl = true;), they get the
default LTR direction, and we needed to add some CSS &
Javascript hacks to get them to display correctly (and
even then, only partially).

The presence of these files does not enable these languages
in the preferences, it only sets the RTL setting for pages
with any of these languages as a page language.

Change-Id: I5c78889474d02850198519de04d2a553f1f97a9e
2024-05-05 11:09:32 +03:00
Waldir Pimenta
79c46b5400 Add link to diff in post-edit confirmation message
Co-authored-by: Alberto Leôncio <albertoleoncio@hotmail.com>
Bug: T364264
Change-Id: Id71e50d80cef007a5750878ca5da8f8d3667d2af
2024-05-05 09:40:05 +03:00
Jonghyo Lee
d937fb70cd
Some fixes to MessagesKo.php
* Fix Aladin.co.kr search link

* Add MyLog alias

* Change Renameuser main alias from "이름바꾸기" to "사용자이름바꾸기"

이름바꾸기(Rename) does not have a one-to-one correspondence with Renameuser.
사용자이름바꾸기 does.

Change-Id: I978857d275edda812409957b8edaed7904b26048
2024-05-05 13:09:35 +09:00
Lewis Cawte
d0073f50d4 Remove "withoutinterwiki-legend" message.
Unused since 944fc8152d.

Change-Id: Id165e4941ef9d6741309d90771669ae2495e0a6b
2024-05-04 23:10:46 +00:00
jenkins-bot
bfcff4ba12 Merge "i18n: Move preferences messages to a separate i18n file" 2024-05-04 16:08:50 +00:00
Amir E. Aharoni
9157b9f464 Add namespace translations and linkTrail for Hausa
Discussed at
https://ha.wikipedia.org/w/index.php?title=Wikipedia:Kofan_al%27umma&oldid=417373#Namespace_name_translations

Change-Id: Idfc753df0407ebf42e4709f6713174ba029d042a
2024-05-04 12:15:58 +00:00
addshore
3ab0eff2a6 Add months as duration to Language:formatDuration
I think there is further room for improvement
here, such as a method that takes 2 points in time
and gives you a more precise summarization of the duration
in terms of actual dates.
(And we will do this in a followup)

To avoid changing behaviour where this method is called
the default interval of `month` is not specified, so
existing calls return as they did before.
For callers that want `month` granularity, they can
specify month.

Bug: T219397
Change-Id: I5a07e14629fd9f67b1f17df3db75b68f98295dfb
2024-05-04 08:19:20 +03:00
Winston Sung
629ccda2c4 i18n: Move preferences messages to a separate i18n file
Bug: T167762
Change-Id: Ice0b4c07857344b4ae6b2558d823ea6311e61101
2024-05-04 01:07:11 +00:00
James D. Forrester
4ad61e8f6e
i18n: Change default label of Special:Log, and entry in drop-down to 'Main'
This is, and has always been, a filtered list even of public logs, so let's
change the label for now to that it's less misleading. There are many, many
difficulties with the log pages' design but there's no apparent appetite to
tackle this in the short- or even medium-term, so a minor fix might help to
be slightly less bewilderingly wrong.

Bug: T237729
Change-Id: I103e5ffd4751d6cae4c4f3b654c51eb20cfda471
2024-05-03 14:34:54 +03:00
Translation updater bot
1dc2c14dbc Localisation updates from https://translatewiki.net.
Change-Id: I5fd1f1ccca1d94442dab5f7a6f773feb4f61f799
2024-05-03 09:04:43 +02:00
jenkins-bot
6b83700ff0 Merge "InfoAction: Specify days directly in pageinfo-visiting-watchers" 2024-05-02 18:54:46 +00:00
Translation updater bot
d3b6a5fa3c Localisation updates from https://translatewiki.net.
Change-Id: Ib047f59a0e5cf6e25ff0e7f0cc58263a724d50c0
2024-05-02 09:04:35 +02:00
Translation updater bot
03a920e9c9 Localisation updates from https://translatewiki.net.
Change-Id: I9c8f425bbcdd10f301f76c2b53ed8d1377984724
2024-05-01 09:05:27 +02:00
Derk-Jan Hartman
12fc918b4c Add apc autonym to MediaWiki
MessagesApc.php is mostly copied from MessagesAr.php.

Bug: T290657
Change-Id: I10c94ca1bbb168c2d8ec0825a9b9e13cd854d284
2024-04-30 20:54:38 +03:00
Jon Harald Søby
e841683909 InfoAction: Specify days directly in pageinfo-visiting-watchers
Use a number of days directly in the message, instead of
indirectly via `Language::formatTimePeriod()` (which will
yield 'days' for any reasonable value of WatchersMaxAge),
to aid with translation.

Follows-Up: I898c463f5cb4efc40877f0bc67156a296bd506e4
Bug: T363659
Change-Id: Ic3c9f94232264aead3cb6e058a5603256f5eebf2
2024-04-30 12:57:41 +02:00
Translation updater bot
0e18e1dc3a Localisation updates from https://translatewiki.net.
Change-Id: I47e4889fcf3dc5159a8f5317b1e74a97c9789a7f
2024-04-30 09:05:54 +02:00
Translation updater bot
1a7e43d923 Localisation updates from https://translatewiki.net.
Change-Id: I8c5ea11326762f08fc6cbb8db61c886471b7e51b
2024-04-29 09:05:43 +02:00
Translation updater bot
587a623824 Localisation updates from https://translatewiki.net.
Change-Id: Ie8c672d34451df3dd141ebce9f3cd6f3339042b4
2024-04-26 09:07:30 +02:00
Translation updater bot
5b3a4a85fd Localisation updates from https://translatewiki.net.
Change-Id: I86a6fd36ee2309b300b40ed0ea55fb5ee18ce3a6
2024-04-25 09:04:37 +02:00
Translation updater bot
0c844b5edf Localisation updates from https://translatewiki.net.
Change-Id: I7800c80790c2065ee5982e7ba7b6afbee855104a
2024-04-24 09:05:24 +02:00
Translation updater bot
d3fa91db62 Localisation updates from https://translatewiki.net.
Change-Id: Ic5cdf47ff6dcfc05a903a3dfb4d87d04c956bb89
2024-04-23 09:05:34 +02:00
Translation updater bot
2045687bc5 Localisation updates from https://translatewiki.net.
Change-Id: Ie61eccca7d801fd832b615f3ca7c6dbe6aabeedc
2024-04-22 09:05:29 +02:00
Winston Sung
0e4684b4e5 Languages: Add nan-hant (Minnan - Traditional Han script) to Names.php
First export in commit d00df6b018
(Change-Id Ie05945912bfed800b5627a306559f21109ccafd2 ).

Language codes nan, nan-hani, nan-latn will be used for language
converter codes.

Bug: T354937
Bug: T362041
Change-Id: Id78405dea23858ea8369fbfc1e655e98d827e89a
2024-04-19 14:08:20 +00:00
Translation updater bot
640f0a45e3 Localisation updates from https://translatewiki.net.
Change-Id: I46682a171764cf7331f400106c4cd1dd442a968d
2024-04-19 09:05:11 +02:00
Translation updater bot
54d943c4c0 Localisation updates from https://translatewiki.net.
Change-Id: I34398e6fa2cbeb58bf2c1abfbe441101719ae9a8
2024-04-18 09:04:24 +02:00
jenkins-bot
bf6e071339 Merge "mediawiki.special.block: Set up "Additional details" fields" 2024-04-18 02:47:26 +00:00
jenkins-bot
61f58f54fb Merge "Edit Recovery: Add error messages to special page" 2024-04-17 23:20:26 +00:00
hmonroy
989385d724 mediawiki.special.block: Set up "Additional details" fields
Added "Additional details" fields.

Added 'block' function that will be responsible for submitting to API:Block

Modified userLook field so that the value is the username since the API
needs a username rather than a userid.

Bug: T361148
Change-Id: I1e77a63133b8c8ea043c680ddb8af0e044a6fb31
2024-04-17 15:18:49 -07:00
Translation updater bot
fb71cd6d87 Localisation updates from https://translatewiki.net.
Change-Id: I2dc4e30fb6b1c5ff184577649b7c9eca693b0802
2024-04-17 09:06:20 +02:00
Translation updater bot
68e97d0013 Localisation updates from https://translatewiki.net.
Change-Id: Id9b705a44efaa35442d3dd72258c15530c4d1cc0
2024-04-16 09:05:40 +02:00
Sam Wilson
6933629be1 Edit Recovery: Add error messages to special page
Add two new error messages to the Special:EditRecovery page, one
for when the user is not logged in, and one for when the
preference is not enabled.

Bug: T361721
Change-Id: I28eeab7192e7ab037d95d77406b4743717b0b5bc
2024-04-16 09:36:38 +08:00
jenkins-bot
66cdfc9d4e Merge "Translate special page names into Polish" 2024-04-15 18:11:11 +00:00
TheresNoTime
357f37f1f5 SpecialEditRecovery: Add deletion
Add a link/button to delete a given EditRecovery entry.
Add i18n `edit-recovery-special-delete`

Bug: T353996
Change-Id: I77d94eb0400c0a54df8d3b3cfae6e3adf37805d5
2024-04-15 14:47:12 +01:00
Translation updater bot
0fce78fe49 Localisation updates from https://translatewiki.net.
Change-Id: I308f15e4c38d6e89ccd7c1fd0f95c42e5a89825b
2024-04-15 09:06:54 +02:00
Translation updater bot
51c2322a27 Localisation updates from https://translatewiki.net.
Change-Id: I413d0807cc90d87d47df34ecba2158c6a0e7c16c
2024-04-12 09:06:40 +02:00
jenkins-bot
0721b0af62 Merge "Implement language converter for Standard Moroccan Amazigh (zgh)" 2024-04-11 15:37:17 +00:00
Jon Harald Søby
1df54ce20e Implement language converter for Standard Moroccan Amazigh (zgh)
Requested by the zgh community in the Wikimedia Incubator at [1];
the converter is the same as for Shilha (`shi`); the main difference
between the two languages is that the main script for `zgh` is
Tifinagh, which can't be losslessly converted to the Latin script
(the former is unicameral, the latter is bicameral), so the
converter and configuration added here is essentially one-directional.

[1] https://incubator.wikimedia.org/wiki/Special:PermaLink/6060805

Change-Id: I483a1594f001226439497f0870176e9a1e447458
2024-04-11 16:40:50 +02:00
Translation updater bot
5293046f03 Localisation updates from https://translatewiki.net.
Change-Id: I564353ce85714f326ae847b53a72a66002976561
2024-04-11 09:05:02 +02:00
Meno25
9bf8586e19 Update specialPageAliases for Arabic (ar) and Egyptian Arabic (arz)
Change-Id: I7de4d00bd8e7a72320b2ccf340486c462e28c9e9
2024-04-11 05:16:01 +00:00
James D. Forrester
6ab4c1e82c InfoAction: Explain to users how long WatchersMaxAge is, not just 'recent'
Bug: T336250
Change-Id: I898c463f5cb4efc40877f0bc67156a296bd506e4
2024-04-10 10:39:45 -04:00
Msz2001
87f5440c61 Translate special page names into Polish
(Special:EditRecovery, Special:Mylog, Special:PageLanguage)

Change-Id: Ie0ce6e80c6b8ff96b5a3cc4e987ecf1870563ebe
2024-04-10 12:05:22 +00:00
Translation updater bot
ea07eed0dc Localisation updates from https://translatewiki.net.
Change-Id: Ie7300ed680f3032911117b17d232cdbd0991140c
2024-04-09 09:06:23 +02:00
jenkins-bot
940b0c8242 Merge "Set up component for "Block Details" field" 2024-04-09 06:08:25 +00:00
hmonroy
3bed223619 Set up component for "Block Details" field
Added "name" attribute to user look up field.

Added component to handle the "Block Details" field which is a checkbox group.

Bug: T361147
Change-Id: I343aa7758c9f5d83c17f29498af59f6eba7bf658
2024-04-08 18:54:20 -07:00
Translation updater bot
d00df6b018 Localisation updates from https://translatewiki.net.
Change-Id: Ie05945912bfed800b5627a306559f21109ccafd2
2024-04-08 09:05:21 +02:00
Dreamy Jazz
aa4da4fe3e Use i18n strings for truncated subpage message in SpecialMovePage
Why:
* Now that the security patch for T357760 has been uploaded to
  gerrit, the hardcoded English strings can be replaced with
  i18n message keys. The use of hardcoded English was necessary
  to avoid causing a localisation cache refresh on every WMF
  production deployment.
* While this is being done, it would be useful to add tests
  to verify that the changes being made are correct and that
  the security fix continues to work.

What:
* Replace the hardcoded English strings with i18n message keys
  in SpecialMovePage::showSubpagesList
* Add tests for SpecialMovePage to verify these changes, which
  also provide test coverage for the class which was previously
  untested.

Bug: T357760
Change-Id: Ib0603f9188f624229b3c9e6d30b8c7266420f8ce
2024-04-06 02:06:04 +00:00
Translation updater bot
0f2d0d7bbb Localisation updates from https://translatewiki.net.
Change-Id: I1d2d8b47ddbdcfd85492e1646a82d6811e78283f
2024-04-05 09:05:41 +02:00
Translation updater bot
bc624593bd Localisation updates from https://translatewiki.net.
Change-Id: Ib8f03d481f8888325c6aa245c7ef2b2af90c076f
2024-04-04 09:04:41 +02:00
Translation updater bot
f421c27861 Localisation updates from https://translatewiki.net.
Change-Id: Ifefb091d860ff63c39f24e2bd491b1afc1ddb735
2024-04-03 09:05:01 +02:00
jenkins-bot
22cda00fd1 Merge "REST: Add support for complex parameters." 2024-04-03 02:12:33 +00:00
daniel
34b1ab1948 REST: Add support for complex parameters.
ParamValidator so far only supports primitive types as input, which is
insufficient for validating request bodies.

This adds an "array" parameter type that accepts any array. In the
future, we should add validation for such parameters, based on JSON
schema.

Change-Id: Idfa1c90be40772948a3c53d010441905b44b7b4e
2024-04-02 21:59:30 +02:00
Translation updater bot
1a76410f42 Localisation updates from https://translatewiki.net.
Change-Id: I02e31f6603c4e35a383a71f4047da3a2276a49b4
2024-04-02 09:05:11 +02:00
Translation updater bot
d96f37b412 Localisation updates from https://translatewiki.net.
Change-Id: I0f9358936e25b52c391d6552fc822df683178fe0
2024-04-01 09:05:18 +02:00
jenkins-bot
38d475a57d Merge "[i18n] Add missing localizations for linterror-*" 2024-03-30 02:41:38 +00:00
C. Scott Ananian
2e248120f0 [i18n] Add missing localizations for linterror-*
These should be kept in sync with the linter categories and
localization strings in Extension:Linter.

Bug: T360796
Change-Id: I932a4e4b60839ec036dc7abb80c2f5761983f911
2024-03-29 18:14:43 -04:00
Translation updater bot
ba2e0872af Localisation updates from https://translatewiki.net.
Change-Id: I1a9293e1a6f8cc121a0d55a973ca05b6785dc038
2024-03-29 08:06:07 +01:00
jenkins-bot
0ec86c1fb0 Merge "Switch Special:Upload to use async upload-by-url" 2024-03-28 15:22:13 +00:00
Giuseppe Lavagetto
cfa7ed13b1 Switch Special:Upload to use async upload-by-url
With this change, when async uploads are enabled, upload-by-url
will spawn a job and a form with a button to check the status of the
process is shown to the user.

In the process, add processing of warnings in the remote jobs spawned by
the API or the Special page. This is done by adding checks to
UploadJobTrait::verifyUpload. In order to manage warnings serialized in
the job status, a method to unserialize the result of
UploadBase::makeWarningsSerializable.

Things that we might want to fix:
* The form's UI is abysmal, we should probably use Codex
* While it's not a huge deal, I'd like to figure out why I need to
purge the page cache if I want the file to show up. And more
interestingly, why this doesn't happen when uploading via the API

Bug: T295007
Bug: T118887
Change-Id: I49181d93901f064815808380285fc4abae755341
2024-03-28 11:01:46 +01:00
Translation updater bot
e95c79433c Localisation updates from https://translatewiki.net.
Change-Id: I6b06aba12ed9a3b14ab72e74a7da8387ac2f0770
2024-03-27 08:02:01 +01:00
jenkins-bot
fab37d4d09 Merge "Special:Block form: convert username lookup field to Codex" 2024-03-27 04:07:22 +00:00
jenkins-bot
054242ffe5 Merge "CodexHTMLForm: Add support for fieldset, description, and optional" 2024-03-26 19:30:34 +00:00
Anne Tomasevich
eb29d1424d CodexHTMLForm: Add support for fieldset, description, and optional
- Override HTMLForm::wrapFieldSetSection() to apply the right
  markup and classes for a fieldset and its legend
- Override HTMLForm::formatSection() to include the
  .cdx-field__control class
- Add a setter for section info to HTMLForm (that only
  works when the display format is 'codex')
- Add an optional flag message
- Override HTMLForm::getLegend() to include CSS classes
  and additional sub-elements of the legend, including an
  "optional" flag and a description.

Implementation notes:
- CodexHTMLForm::getLegend() returns HTML, while the parent
  method returns plain text. This was necessary to include
  the "optional" flag and description within the legend
  element, which is critical for users of assistive tech.
- setSections() was added to HTMLForm instead of CodexHTMLForm
  to support use cases like FormSpecialPage, which expect the
  form to be an HTMLForm

Bug: T359020
Bug: T359016
Change-Id: I7b637331e171c46b48de085a6fa92f8ceaf16a50
2024-03-26 14:56:36 -04:00
hmonroy
c98c03d5c8 Special:Block form: convert username lookup field to Codex
Implement username lookup field in Codex according to new designs.

Bug: T358935
Change-Id: Ie78da09d7c2e9388e3aeae8dc5b72312800c9aa2
2024-03-26 09:27:19 -07:00
Translation updater bot
1597e285e0 Localisation updates from https://translatewiki.net.
Change-Id: I5670330cfac9b57b5a0d0a40a5cfa744998c8f12
2024-03-26 08:02:07 +01:00
Tim Starling
b34feb86a9 In Special:AutoblockList: remove total count
The getTotalAutoblocks query is unindexed and takes 6-7 seconds on
enwiki. It regularly appears in the slow query log.

So, remove the feature.

Change-Id: I4552b7f4894c76de48db026faa01b2c8aabd87e0
2024-03-26 09:15:47 +11:00
Translation updater bot
ac465238ce Localisation updates from https://translatewiki.net.
Change-Id: I3ac0a37a43a4f0a7f9a9a85610d5ac66434d1d23
2024-03-25 08:16:12 +01:00
Kunal Mehta
903544aabc Update Apache config syntax in .htaccess files
"Deny from all" is deprecated; the replacement syntax has been
available since Apache 2.4 (originally released in 2012).

See <https://httpd.apache.org/docs/2.4/howto/access.html>.

Bug: T360850
Change-Id: I825053ccefe34f6ca4e04af5ad2601f79e4d51a7
2024-03-23 23:36:31 -04:00
jenkins-bot
2216fa38ff Merge "Use a different message for preloaded reason field on Special:MovePage" 2024-03-22 11:11:51 +00:00
Translation updater bot
ac15a7b068 Localisation updates from https://translatewiki.net.
Change-Id: Id3b25c12c97cec40909f7da0130eeee5ce3fbdd2
2024-03-22 08:06:09 +01:00
Translation updater bot
d4da0cb743 Localisation updates from https://translatewiki.net.
Change-Id: If8564043f1f98b4a74d99320a3b49f7c48b8adf7
2024-03-21 08:10:58 +01:00
jenkins-bot
6bf2f50291 Merge "Added azerbaijani translation of special page names" 2024-03-20 20:20:58 +00:00
Matěj Suchánek
42cfe3a421 Use a different message for preloaded reason field on Special:MovePage
For many languages, I believe, it is too restrictive to require
the same message for the button text and the reason.

Additionally, this change makes the capitalization consistent
for English. Compare with "editundo" (link text) and "undo-summary"
(edit summary default text).

Change-Id: I344ca3b567b5dafbe4417228ea9e8ea27d95a45e
2024-03-20 09:38:36 +01:00
Translation updater bot
c799aa73e1 Localisation updates from https://translatewiki.net.
Change-Id: I97d499e7c57e3f89c6297c105c0fa0ae7e532ea4
2024-03-20 08:06:50 +01:00
Translation updater bot
39af550504 Localisation updates from https://translatewiki.net.
Change-Id: I2cc808261ab935bb4d8e6796301d9635dda42bad
2024-03-19 08:07:10 +01:00
Translation updater bot
7f9a5b6858 Localisation updates from https://translatewiki.net.
Change-Id: I4f52e4544898dafa3ba7353ab96e7490f6e0e989
2024-03-18 07:43:49 +00:00
Amir E. Aharoni
1a8435da18 Fix HTML entity
Follow-up to
I84bec2f0bc8e7576dc8e4f598bb6fc24ea36d4fa

Bug: T360095
Change-Id: I3cf4b8b90743685775920989ad7754c78b128d2f
2024-03-16 14:46:23 -04:00
Amir E. Aharoni
d804e7b537 Replace <> with entities on a mentioned SVG tag
Bug: T360095
Change-Id: I84bec2f0bc8e7576dc8e4f598bb6fc24ea36d4fa
2024-03-15 22:44:50 -04:00
Antoine Musso
a522ceef24 i18n: make chn "mainpage" a valid title
The incubator wiki has some backend errors for the chn wiki since the
main page is an invalid title. The reason is the "mainpage-description"
got amended to add description which includes a newline and that got
mistakengly copy pasted to "mainpage". The later is used to forge a
Title and the newline character make it an invalid Title.

The faulty localization comes from Feb 22nd 2024 with:
cdabac07fb

Bug: T360066
Change-Id: I59118b9892d11ad7b26d5ebdeccab82d98b28fc7
2024-03-15 12:00:54 +01:00
Translation updater bot
db191efe4e Localisation updates from https://translatewiki.net.
Change-Id: I7d04cb1ee4128f4739ea0dabbbbfba0d25c79d69
2024-03-15 08:05:12 +01:00
jenkins-bot
84db9ad5c5 Merge "Replace "<a>" with entities in a message" 2024-03-14 15:34:32 +00:00
Translation updater bot
9143098de0 Localisation updates from https://translatewiki.net.
Change-Id: I2105b138bd779e775330c3b0d8598bad511c27ec
2024-03-14 13:58:13 +01:00
Amir E. Aharoni
4d83dd8774 Replace "<a>" with entities in a message
Bug: T360095
Change-Id: Ibacdaf95130655767603f201b5c0e592dfb870a0
2024-03-14 07:49:14 -04:00
Translation updater bot
fd1a74914c Localisation updates from https://translatewiki.net.
Change-Id: I940df45588c8b46b9d569f7c16c46ad092a52586
2024-03-13 08:06:36 +01:00
Reedy
7dbded1bf6 languages: Fix casing of MediaWiki in namespaces
Change-Id: I43116f0f41e360488184107eab765afa87f4848b
2024-03-12 15:21:51 +00:00
nmw03
5d2850cbea Added azerbaijani translation of special page names
Change-Id: I3cac1265f8ced71640e450dae1aaf3d1a76cdbf4
2024-03-12 17:05:48 +04:00
Translation updater bot
41642c66c6 Localisation updates from https://translatewiki.net.
Change-Id: I7e33e0e58c0bd95bd3cacb052422c0606fa55ccd
2024-03-12 08:06:35 +01:00
Translation updater bot
193e580dee Localisation updates from https://translatewiki.net.
Change-Id: Ie24fd3de7b5c4242733cd59ffcb5cd106c2e99f5
2024-03-11 08:06:17 +01:00
Gergő Tisza
ea0c92e63d
i18n: Remove checkuser reference from qqq
It's an extension message, so it shouldn't be referenced here.
(There are plenty of other extension-defined grants, it's
unmaintainable to try to list them here.)

Change-Id: Ieb962e89a82f85d673cd6378582368169d62314e
2024-03-10 09:40:29 +01:00
Translation updater bot
a5170b7658 Localisation updates from https://translatewiki.net.
Change-Id: I81cd32b985f9b8f73f45b3407010ce6d855bc0f8
2024-03-08 08:05:04 +01:00
Raimond Spekking
592dd7f044 Revert "Localisation updates from https://translatewiki.net."
This reverts commit f95d601d81.

Reason for revert: new qqq were removed by export.

Change-Id: I737014aa7c2dd3183ac0e10c120dc8d04de5e41e
2024-03-07 08:16:50 +00:00
Translation updater bot
f95d601d81 Localisation updates from https://translatewiki.net.
Change-Id: I3173820484ee360909909a6a8377677472a712a3
2024-03-07 08:07:37 +01:00
Umherirrender
2ada1e1872 specials: Add dropdown for common undelete reasons on Special:Undelete
Code is stolen from Special:MovePage (bfcea5ac)
This also contains a list for unsuppress reasons for oversighters only
(empty by default) - similiar to action=delete

Bug: T326746
Change-Id: I9668004a53a86eee48b17dd6a2f8bdaaf9ac0247
2024-03-06 22:53:13 +01:00
Translation updater bot
bbb266c7ce Localisation updates from https://translatewiki.net.
Change-Id: Id064f7ddd940b785611e294e7696a53c8878add8
2024-03-06 08:07:04 +01:00
jenkins-bot
428a1a171e Merge "Revert "Output: Add IframeSandbox class"" 2024-03-06 02:44:15 +00:00
Translation updater bot
838ee9b8a4 Localisation updates from https://translatewiki.net.
Change-Id: I77dc27204b7d73016ec72bcc7d939addec5c574e
2024-03-05 08:07:47 +01:00
Gergő Tisza
038ec7be40 Revert "Output: Add IframeSandbox class"
This reverts commit cb09a27cc2.

The class is not very useful as it is now, due to performance issues
(T169027#9342985). The Graph extension is not going to use iframes
(T334940#9537862) and that was the only concrete feature for this, so
making the class usable in practice is unlikely to get prioritized.
No point in leaving the code in its current halfway state.

Bug: T222807
Bug: T169027
Change-Id: Id1b5193975435b58aebc225528e30f04456d0c41
2024-03-04 12:32:23 -05:00
Translation updater bot
e745c7aff6 Localisation updates from https://translatewiki.net.
Change-Id: I10c952805e730de4a34a9e7a4094375c9d7ddde1
2024-03-04 08:06:09 +01:00
James D. Forrester
fe1fbb3a5c build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Depends-On: I5349d3378b5acd04f0d7c60072a9b1e3dd8f2052
Change-Id: I3b7fd4c460418e72ed0c36febef75f41bad0afb1
2024-03-01 15:58:13 -05:00
Translation updater bot
661ad7605b Localisation updates from https://translatewiki.net.
Change-Id: If8da4ca1c20e32ea8215693e5db40386e79cd00b
2024-03-01 08:06:18 +01:00
Translation updater bot
3c409df295 Localisation updates from https://translatewiki.net.
Change-Id: Ic4d95368089a9402a28170cdd345a762848df9c8
2024-02-29 08:14:48 +01:00
jenkins-bot
ec4b645fc7 Merge "preferences search: Keyboard and screenreader accessibility tweaks" 2024-02-28 17:15:00 +00:00
Translation updater bot
ebb5fad6d4 Localisation updates from https://translatewiki.net.
Change-Id: I704c3fbeb7b7939c10d25009e847a620a2f2a8b7
2024-02-28 07:58:35 +01:00
Translation updater bot
04d24edc9f Localisation updates from https://translatewiki.net.
Change-Id: Ibddcf58a7d2ed0619e8f0b015c5bafe9d008f362
2024-02-27 08:03:27 +01:00
Translation updater bot
74e65e9aaf Localisation updates from https://translatewiki.net.
Change-Id: I0c60e585ba920f9fd0bc03615bac15ea57876892
2024-02-26 08:17:41 +01:00
jenkins-bot
8301b5ae7c Merge "specials: Use a pager on Special:UploadStash" 2024-02-25 16:20:19 +00:00
Translation updater bot
a47a5e3c05 Localisation updates from https://translatewiki.net.
Change-Id: I6c4340e86dc10c3f8dd60d65a0ff8927284a0905
2024-02-23 08:17:53 +01:00
jenkins-bot
667159b2be Merge "Remove unused message filehist-filesize" 2024-02-22 23:44:51 +00:00