diff --git a/locale/en.php b/locale/en.php index 0f738f2f..87c11bd3 100644 --- a/locale/en.php +++ b/locale/en.php @@ -80,10 +80,11 @@ return [ }', // indicates programming error 'Exception.JKingWeb/Arsse/ExceptionType.typeUnknown' => 'Normalization type {0} is not implemented', - 'Exception.JKingWeb/Arsse/Exception.extMissing' => 'The "{first}" PHP extension {total, plural, offset:1 - =0 {is} - =1 {and one other extension are} - other {and # other extensions are} + 'Exception.JKingWeb/Arsse/Exception.extMissing' => + 'The "{first}" PHP extension {total, plural, offset:1 + =1 {is} + one {and # other extension are} + other {and # other extensions are} } not installed or not enabled.', 'Exception.JKingWeb/Arsse/Lang/Exception.defaultFileMissing' => 'Default language file "{0}" missing', 'Exception.JKingWeb/Arsse/Lang/Exception.fileMissing' => 'Language file "{0}" is not available', diff --git a/tests/cases/TestArsse.php b/tests/cases/TestArsse.php index f7e4e8e8..95ca9462 100644 --- a/tests/cases/TestArsse.php +++ b/tests/cases/TestArsse.php @@ -61,8 +61,10 @@ class TestArsse extends \JKingWeb\Arsse\Test\AbstractTest { public function provideExtensionChecks(): iterable { return [ - [["pcre"], null], + [["pcre"], null], [["foo", "bar", "baz"], new Exception("extMissing", ['first' => "foo", 'total' => 3])], + [["bar", "baz"], new Exception("extMissing", ['first' => "bar", 'total' => 2])], + [["baz"], new Exception("extMissing", ['first' => "baz", 'total' => 1])], ]; } }