diff options
Diffstat (limited to 'MLEB/Translate/tests/phpunit/data')
6 files changed, 35 insertions, 31 deletions
diff --git a/MLEB/Translate/tests/phpunit/data/Example-result.i18n.php b/MLEB/Translate/tests/phpunit/data/Example-result.i18n.php index d7f34138..ae3aa743 100644 --- a/MLEB/Translate/tests/phpunit/data/Example-result.i18n.php +++ b/MLEB/Translate/tests/phpunit/data/Example-result.i18n.php @@ -5,52 +5,51 @@ * @file * @ingroup Extensions */ -// @codingStandardsIgnoreFile -$messages = array(); +$messages = []; -$messages['en'] = array( +$messages['en'] = [ 'translatedmessage' => 'The database has been automatically locked due to inactivity from the administrators.', - 'fuzzymessage' => 'Auto-locks the wiki database if the sysops are all inactive for some time', -); + 'fuzzymessage' => 'Auto-locks the wiki database if the sysops are all inactive for some time', +]; /** Message documentation (Message documentation) * @author Purodha * @author The Evil IP address */ -$messages['qqq'] = array( +$messages['qqq'] = [ 'fuzzymessage' => '{{desc}}', -); +]; /** Afrikaans (Afrikaans) * @author Naudefj */ -$messages['af'] = array( +$messages['af'] = [ 'translatedmessage' => 'Die databasis is outomaties gesluit omdat die administrateurs nie aktief is nie.', 'fuzzymessage' => "Sluit die wiki outomaties as die administrateurs vir 'n geruime tyd nie aktief is nie", -); +]; /** Gheg Albanian (Gegë) * @author Bresta */ -$messages['aln'] = array( +$messages['aln'] = [ 'translatedmessage' => 'Baza e të dhânave âsht bllokue automatikisht për shkak të mosaktivitetit të administruesve.', 'fuzzymessage' => 'E vetë-bllokon bazën e të dhânave nëse administruesit janë joaktiv për nji kohë të caktueme.', -); +]; /** Arabic (العربية) * @author Meno25 * @author OsamaK */ -$messages['ar'] = array( +$messages['ar'] = [ 'translatedmessage' => 'تم غلق قاعدة البيانات تلقائيا نظرا لعدم نشاط مدراء النظام.', 'fuzzymessage' => 'قفل قاعدة بيانات الويكي تلقائيا إذا كان كل مدراء النظام غير نشطين لبعض الوقت', -); +]; /** Finnish (suomi) * @author Nike the bunny */ -$messages['fi'] = array( +$messages['fi'] = [ 'translatedmsg' => 'translation', 'fuzzymsg' => 'translation', # Fuzzy -); +]; diff --git a/MLEB/Translate/tests/phpunit/data/Example.i18n.php b/MLEB/Translate/tests/phpunit/data/Example.i18n.php index 48c25d0f..46c4c0c9 100644 --- a/MLEB/Translate/tests/phpunit/data/Example.i18n.php +++ b/MLEB/Translate/tests/phpunit/data/Example.i18n.php @@ -5,44 +5,43 @@ * @file * @ingroup Extensions */ -// @codingStandardsIgnoreFile -$messages = array(); +$messages = []; -$messages['en'] = array( +$messages['en'] = [ 'translatedmessage' => 'The database has been automatically locked due to inactivity from the administrators.', - 'fuzzymessage' => 'Auto-locks the wiki database if the sysops are all inactive for some time', -); + 'fuzzymessage' => 'Auto-locks the wiki database if the sysops are all inactive for some time', +]; /** Message documentation (Message documentation) * @author Purodha * @author The Evil IP address */ -$messages['qqq'] = array( +$messages['qqq'] = [ 'fuzzymessage' => '{{desc}}', -); +]; /** Afrikaans (Afrikaans) * @author Naudefj */ -$messages['af'] = array( +$messages['af'] = [ 'translatedmessage' => 'Die databasis is outomaties gesluit omdat die administrateurs nie aktief is nie.', 'fuzzymessage' => "Sluit die wiki outomaties as die administrateurs vir 'n geruime tyd nie aktief is nie", -); +]; /** Gheg Albanian (Gegë) * @author Bresta */ -$messages['aln'] = array( +$messages['aln'] = [ 'translatedmessage' => 'Baza e të dhânave âsht bllokue automatikisht për shkak të mosaktivitetit të administruesve.', 'fuzzymessage' => 'E vetë-bllokon bazën e të dhânave nëse administruesit janë joaktiv për nji kohë të caktueme.', -); +]; /** Arabic (العربية) * @author Meno25 * @author OsamaK */ -$messages['ar'] = array( +$messages['ar'] = [ 'translatedmessage' => 'تم غلق قاعدة البيانات تلقائيا نظرا لعدم نشاط مدراء النظام.', 'fuzzymessage' => 'قفل قاعدة بيانات الويكي تلقائيا إذا كان كل مدراء النظام غير نشطين لبعض الوقت', -); +]; diff --git a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf2.yaml b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf2.yaml index 30aad12d..a4b0a979 100644 --- a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf2.yaml +++ b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf2.yaml @@ -21,7 +21,7 @@ VALIDATORS: - id: MediaWikiPlural INSERTABLES: - class: MediaWikiInsertablesSuggester + - class: MediaWikiInsertablesSuggester MANGLER: class: StringMatcher diff --git a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf3.yaml b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf3.yaml index dc738bb9..38c32133 100644 --- a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf3.yaml +++ b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf3.yaml @@ -18,7 +18,7 @@ VALIDATORS: - id: MediaWikiPlural INSERTABLES: - class: MediaWikiInsertablesSuggester + - class: MediaWikiInsertablesSuggester TAGS: optional: diff --git a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf4.yaml b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf4.yaml index 2e0eac27..eaf6f919 100644 --- a/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf4.yaml +++ b/MLEB/Translate/tests/phpunit/data/MediaWikiExtensionTest-conf4.yaml @@ -18,7 +18,7 @@ VALIDATORS: - id: MediaWikiPlural INSERTABLES: - class: MediaWikiInsertablesSuggester + - class: MediaWikiInsertablesSuggester TAGS: optional: diff --git a/MLEB/Translate/tests/phpunit/data/check-blacklist.php b/MLEB/Translate/tests/phpunit/data/check-blacklist.php index d4c2ca19..580ba437 100644 --- a/MLEB/Translate/tests/phpunit/data/check-blacklist.php +++ b/MLEB/Translate/tests/phpunit/data/check-blacklist.php @@ -1,7 +1,13 @@ <?php + $checkBlacklist = [ [ 'check' => 'plural', 'code' => [ 'en-gb' ] + ], + [ + 'message' => [ + 'regex-key-test' + ] ] ]; |