Page MenuHomePhabricator

[[MediaWiki:Nonwrite-api-promise-error/eo]] i18n issue
Closed, ResolvedPublic

Description

What does the Promise-Non-Write-API-Action header is about ?


URL: https://translatewiki.net/wiki/MediaWiki:Nonwrite-api-promise-error/eo

Event Timeline

More specificaly, does it mean "a promise that this API action won't make a write" or somthing else?

Amire80 triaged this task as Lowest priority.Feb 28 2018, 11:57 AM
Amire80 subscribed.

I'd say that this shouldn't be translated anyway, because it's a internal technical string.

Anomie added subscribers: aaron, Anomie.

This is not an API error message, it's an error message produced when an HTTP header intended for use with the API is used for non-API requests.

And as far as I can tell, the text of the English message is wrong anyway. It should probably be something along the lines of The <code>Promise-Non-Write-API-Action</code> HTTP header was sent for a non-API request.

I saw this error message when looking into T279039 and I agree with @Anomie that it seems incorrect.

The text "Promise-Non-Write-API-Action" must not be translated, it refers to the name of a HTTP header, which is always in English.

Change 676425 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] Correct "nonwrite-api-promise-error" message and improve docs

https://gerrit.wikimedia.org/r/676425

Change 676425 merged by jenkins-bot:

[mediawiki/core@master] Correct "nonwrite-api-promise-error" message and improve docs

https://gerrit.wikimedia.org/r/676425