Index: trunk/extensions/ApiSandbox/SpecialApiSandbox.php |
— | — | @@ -88,9 +88,9 @@ |
89 | 89 | <table class="api-sandbox-options"> |
90 | 90 | <tbody> |
91 | 91 | <tr> |
92 | | - <th><label for="api-sandbox-format">Format</label></th> |
93 | | - <th><label for="api-sandbox-action">Action</label></th> |
94 | | - <th class="api-sandbox-docs-col">Documentation</th> |
| 92 | + <th><label for="api-sandbox-format">' . wfMessage( 'apisb-label-format' )->escaped() . '</label></th> |
| 93 | + <th><label for="api-sandbox-action">' . wfMessage( 'apisb-label-action' )->escaped() . '</label></th> |
| 94 | + <th class="api-sandbox-docs-col">' . wfMessage( 'apisb-label-doc' )->escaped() . '</th> |
95 | 95 | </tr> |
96 | 96 | <tr> |
97 | 97 | <td>' . self::getSelect( 'format', $formatOptions, 'json' ) . '</td> |
Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -352,7 +352,7 @@ |
353 | 353 | ) |
354 | 354 | ) |
355 | 355 | .append( $( '<td class="api-sandbox-params-value"></td>' ).html( this.input( param, name ) ) ) |
356 | | - .append( $( '<td>' ).html( smartEscape( param.description ) ) ) |
| 356 | + .append( $( '<td class="mw-content-ltr" dir="ltr">' ).html( smartEscape( param.description ) ) ) |
357 | 357 | .appendTo( $tbody ); |
358 | 358 | } |
359 | 359 | this.$container.html( $table ); |
Index: trunk/extensions/ApiSandbox/ApiSandbox.i18n.php |
— | — | @@ -21,6 +21,9 @@ |
22 | 22 | 'apisb-legend-generator-parameters'=> 'Generator', |
23 | 23 | 'apisb-result-request-url' => 'Request URL:', |
24 | 24 | 'apisb-result-request-post' => 'POST data:', |
| 25 | + 'apisb-label-format' => 'Format', |
| 26 | + 'apisb-label-action' => 'Action', |
| 27 | + 'apisb-label-doc' => 'Documentation', |
25 | 28 | 'apisb-select-action' => '(select action)', |
26 | 29 | 'apisb-select-query' => '(select query)', |
27 | 30 | 'apisb-select-value' => '(select value)', |
— | — | @@ -59,6 +62,9 @@ |
60 | 63 | 'apisb-legend-generator-parameters' => 'Refers to an [https://www.mediawiki.org/wiki/API:Query#Generators API concept]', |
61 | 64 | 'apisb-result-request-url' => 'Used as "label" for a read-only form field containing the exact URL that was (or is going to be) loaded.', |
62 | 65 | 'apisb-result-request-post' => 'Used as "label" for a ready-only form field containing the POST query parameters of the HTTP request made', |
| 66 | + 'apisb-label-format' => 'Label text for selecting the output format (json, xml, php, ...)', |
| 67 | + 'apisb-label-action' => 'Label text for selecting the action (query, edit, ...)', |
| 68 | + 'apisb-label-doc' => 'Label text of information about the selected action', |
63 | 69 | 'apisb-select-action' => 'This is the placeholder text in the "select" dropdown menu containing options with various action modules.', |
64 | 70 | 'apisb-select-query' => 'This is the placeholder text in the "select" dropdown menu containing options with various query types.', |
65 | 71 | 'apisb-select-value' => 'This is the generic placeholder text in "select" dropdown menus containing custom options (e.g. wiki namespaces, content direction, ..)', |