diff options
author | bpirkle <bpirkle@wikimedia.org> | 2025-03-13 14:34:58 -0500 |
---|---|---|
committer | bpirkle <bpirkle@wikimedia.org> | 2025-03-21 11:54:50 -0500 |
commit | bf5f59a1e9f94f4a7c612d657e0e455fde60dd3c (patch) | |
tree | e0c2493316a81d13a78d07f537d75cbe828eefc0 /includes/Rest/i18n | |
parent | 8e343d805b16b893bde6ec6c61f4d5c519c0ba51 (diff) | |
download | mediawikicore-bf5f59a1e9f94f4a7c612d657e0e455fde60dd3c.tar.gz mediawikicore-bf5f59a1e9f94f4a7c612d657e0e455fde60dd3c.zip |
REST: Make OpenAPI spec info strings translatable
OpenAPI specs include an "info" section that includes strings such
as "title" and "description" that are intended to be human-readable.
Make all such strings translatable.
Bug: T385855
Change-Id: I15285be6d196c0e7fd7e922f23058d7c09b6b31a
Diffstat (limited to 'includes/Rest/i18n')
-rw-r--r-- | includes/Rest/i18n/en.json | 8 | ||||
-rw-r--r-- | includes/Rest/i18n/qqq.json | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/includes/Rest/i18n/en.json b/includes/Rest/i18n/en.json index ab3c754e3f95..899c0d53aab5 100644 --- a/includes/Rest/i18n/en.json +++ b/includes/Rest/i18n/en.json @@ -87,6 +87,14 @@ "rest-unsupported-language-conversion": "Unsupported language conversion: $1 to $2", "rest-unknown-content-model": "Unknown content model: $1", "rest-page-bundle-validation-error": "PageBundle does not match contentVersion: $1", + "rest-module": "Module", + "rest-module-default": "Default Module", + "rest-module-extra-routes-title": "MediaWiki REST API", + "rest-module-extra-routes-desc": "REST endpoints not associated with a module", + "rest-module-specs.v0-title": "Specs", + "rest-module-specs.v0-desc": "Self-documentation module providing discovery, specs, and schemas for all available modules.", + "rest-module-content.v1-title": "Page content", + "rest-module-content.v1-desc": "Provides access to the content and meta-data of pages and revisions", "rest-param-desc-mock-desc": "Mock description.", "rest-param-desc-revision-id": "Revision identifier", "rest-param-desc-html-input-title": "HTML input transform title", diff --git a/includes/Rest/i18n/qqq.json b/includes/Rest/i18n/qqq.json index c752446f76c6..2c26a417e6d2 100644 --- a/includes/Rest/i18n/qqq.json +++ b/includes/Rest/i18n/qqq.json @@ -92,6 +92,14 @@ "rest-unsupported-language-conversion": "Error message for REST API debugging, shown when the language conversion is not supported. Parameters:\n* $1: The source format \n* $2: The target format", "rest-unknown-content-model": "Error message for REST API debugging, shown when an unregistered content model is requested. Parameters:\n* $1: The name of the unknown content model", "rest-page-bundle-validation-error": "Error message for REST API debugging, shown when PageBundle does not match the given contentVersion. Parameters:\n* $1: The error details", + "rest-module": "Term for a group of related REST API endpoints", + "rest-module-default": "Name of the default REST module, which holds all REST API endpoints not part of any specific REST module", + "rest-module-extra-routes-title": "Name of the REST module holding REST API endpoints defined in the legacy (pre-module) format", + "rest-module-extra-routes-desc": "Description of the REST module holding REST API endpoints defined in the legacy (pre-module) format", + "rest-module-specs.v0-title": "Title of the specs.v0 REST module", + "rest-module-specs.v0-desc": "Description of the specs.v0 REST module", + "rest-module-content.v1-title": "Title of the content.v1 REST module", + "rest-module-content.v1-desc": "Description of the content.v1 REST module", "rest-param-desc-mock-desc": "{{Experimental}} Mock description for use in tests", "rest-param-desc-revision-id": "{{Experimental}} Revision id parameter description", "rest-param-desc-html-input-title": "{{Experimental}} HTML input transform title parameter description", |