Skip to content

Commit

Permalink
Merge pull request #20 from JeroenDeDauw/issue19
Browse files Browse the repository at this point in the history
Remove I18n-shim
  • Loading branch information
JeroenDeDauw committed Oct 8, 2016
2 parents 52ff966 + 74ce403 commit a1c9635
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ and [Semantic MediaWiki](https://semantic-mediawiki.org/).

## Release notes

### Version 2.1.0 (not released yet)

* Dropped support for MediaWiki older than 1.23

### Version 2.0.6 (2016-07-01)

* Added missing system message
Expand Down
35 changes: 0 additions & 35 deletions Validator.i18n.php

This file was deleted.

9 changes: 5 additions & 4 deletions Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
return 1;
}

define( 'Validator_VERSION', '2.0.6' );
define( 'Validator_VERSION', '2.1.0-alpha' );
define( 'ParamProcessor_VERSION', Validator_VERSION ); // @deprecated since 1.0

if ( !defined( 'MEDIAWIKI' ) ) {
Expand All @@ -31,9 +31,7 @@
throw new Exception( 'Validator depends on the ParamProcessor library.' );
}

$GLOBALS['wgMessagesDirs']['Validator'] = __DIR__ . '/i18n';
$GLOBALS['wgExtensionMessagesFiles']['Validator'] = __DIR__ . '/Validator.i18n.php';

// Display extension information
$GLOBALS['wgExtensionCredits']['other'][] = array(
'path' => __FILE__,
'name' => 'Validator',
Expand All @@ -46,6 +44,9 @@
'license-name' => 'GPL-2.0+'
);

// Internationalization
$GLOBALS['wgMessagesDirs']['Validator'] = __DIR__ . '/i18n';

/**
* Hook to add PHPUnit test cases.
* @see https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList
Expand Down

0 comments on commit a1c9635

Please sign in to comment.