From 18b5d38a00a0f5b0698eeca4f05842956c264cf9 Mon Sep 17 00:00:00 2001 From: bpirkle Date: Wed, 12 Mar 2025 09:15:30 -0500 Subject: REST: add translation disclaimer to REST Sandbox The REST Sandbox is currently implemented in Swagger UI, which does not support i18n for its own UI elements (it does happily display our internationalized OpenAPI spec). Add disclaimer text to the page if it is being viewed in a language other than English, so that users are aware this is a known issue (and is being worked on). Bug: T388399 Change-Id: I265aa1e7dce78715dd4977eeb460f1ca26dedbd9 --- languages/i18n/en.json | 3 ++- languages/i18n/qqq.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'languages/i18n') diff --git a/languages/i18n/en.json b/languages/i18n/en.json index a01d410da60e..5cf58f636aa7 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -4397,7 +4397,8 @@ "newpages-showhide-redirect": "$1 redirects", "newpages-showhide-registered": "$1 registered users", "restsandbox": "REST Sandbox", - "restsandbox-text": "This page provides a query builder for REST APIs. Note that API calls will interact with live wiki content.", + "restsandbox-text": "Use this page to experiment with the MediaWiki REST APIs. API calls made through the sandbox interface will interact with live wiki content and may modify the wiki. Refer to the [https://www.mediawiki.org/wiki/API:REST_API API documentation] for further details about API usage.", + "restsandbox-disclaimer": "Have feedback about this sandbox? Please leave it [https://www.mediawiki.org/wiki/MediaWiki_Interfaces_Team/Feature_Feedback/REST_Sandbox here].
Note: sandbox UI and navigation items do not yet support translation.
", "restsandbox-select-api": "Choose the API to explore.", "restsandbox-no-specs-configured": "No REST APIs were configured for exploration. Use the RestSandboxSpecs setting.", "restsandbox-no-such-api": "The given API parameter is not supported: $1", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index efaafcdf86ff..2b031716cde8 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -4665,6 +4665,7 @@ "newpages-showhide-registered": "Option text in [[Special:NewPages]]. Parameters:\n* $1 - the \"show/hide\" command, with the text taken from either {{msg-mw|show}} or {{msg-mw|hide}}", "restsandbox": "Title of Special:RestSandbox, also shown in the listing of special pages", "restsandbox-text": "Message shown at the top of Special:RestSandbox.", + "restsandbox-disclaimer": "Message shown on non-English wikis near the top of Special:RestSandbox.", "restsandbox-select-api": "Message shown at the top of Special:RestSandbox, next to the selector for choosing an API.", "restsandbox-no-specs-configured": "Message shown on Special:RestSandbox when no API specs have been configured.", "restsandbox-no-such-api": "Message shown on Special:RestSandbox when an unknown API is requested. \n\nParameters: $1 - The unknown API identifier", -- cgit v1.2.3