Skip to content

Commit 637a49c

Browse files
alistair3149JeroenDeDauw
authored andcommitted
Drop mediawiki/validator
1 parent 224236f commit 637a49c

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

composer.json

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"require": {
3939
"php": ">=7.4",
4040
"composer/installers": "^2.0.0|^1.0.1",
41-
"mediawiki/validator": "~2.2",
4241
"mediawiki/parser-hooks": "~1.5",
4342
"param-processor/param-processor": "^1.10",
4443
"data-values/geo": "~4.0|~3.0",

i18n/en.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
"semanticmaps-kml-pagelinktext": "The text to use for the links to the page, in which $1 will be replaced by the page title",
210210
"semanticmaps-shapes-improperformat": "Improper formatting of $1. Please see documentation for formatting",
211211
"semanticmaps-shapes-missingshape": "No shapes found for $1. Please see documentation for available shapes",
212+
212213
"validator-type-mapscircle": "Geographical circle",
213214
"validator-type-mapscircle-list": "List of circles",
214215
"validator-type-mapsimageoverlay": "Image overlay",
@@ -270,5 +271,14 @@
270271
"maps-editor-edit-geojson": "Edit GeoJSON layer",
271272

272273
"tag-maps-visual-edit": "Visual map edit",
273-
"tag-maps-visual-edit-description": "Edit made with the visual editor provided by the [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Maps Maps extension]"
274+
"tag-maps-visual-edit-description": "Edit made with the visual editor provided by the [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Maps Maps extension]",
275+
276+
"validator-fatal-error": "Fatal error: $1",
277+
"validator-describe-header-parameter": "Parameter",
278+
"validator-describe-header-type": "Aliases",
279+
"validator-describe-header-default": "Default",
280+
"validator-describe-header-description": "Description",
281+
"validator-describe-required": "required",
282+
"validator-describe-empty": "empty",
283+
"validator-message-nodesc": "No description provided"
274284
}

i18n/qqq.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,13 @@
247247
"maps-json-editor-edit-failed": "Error message shown when saving a change in the visual map editor fails",
248248
"maps-json-editor-toolbar-cancel-text": "{{Identical|Cancel}}",
249249
"maps-geo-json-edit-source": "Edit tab text in the GeoJson namespace. This tab leads to editing of raw GeoJson without visual aids.\n{{Identical/Edit source}}",
250-
"maps-geo-json-create-source": "Page creation tab text in the GeoJson namespace. This tab leads to editing of raw GeoJson without visual aids"
250+
"maps-geo-json-create-source": "Page creation tab text in the GeoJson namespace. This tab leads to editing of raw GeoJson without visual aids",
251+
"validator-fatal-error": "This message indicates a fatal error detected. $1 holds the fatal error report.",
252+
"validator-describe-header-parameter": "{{Identical|Parameter}}\n{{related|Validator-describe}}",
253+
"validator-describe-header-type": "{{Identical|Type}}\n{{Related|Validator-describe}}",
254+
"validator-describe-header-default": "{{Identical|Default}}\n{{related|Validator-describe}}",
255+
"validator-describe-header-description": "{{Identical|Description}}\n{{Related|Validator-describe}}",
256+
"validator-describe-required": "{{related|Validator-describe}}\n{{Identical|Required}}",
257+
"validator-describe-empty": "{{Identical|Empty}}\n{{related|Validator-describe}}",
258+
"validator-message-nodesc": "Indicates that no parameter description is available"
251259
}

src/MapsRegistration.php

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public static function onRegistration(): bool {
2626
MapsHooks::registerHookHandlers( $hooks );
2727

2828
$GLOBALS['wgExtensionFunctions'][] = function () {
29-
// Only initialize the extension when all dependencies are present.
30-
if ( !defined( 'Validator_VERSION' ) ) {
31-
throw new Exception( 'Maps needs to be installed via Composer.' );
32-
}
33-
3429
( new MapsSetup() )->setup();
3530

3631
return true;

0 commit comments

Comments
 (0)