Browse Source

Fix up missing-extension message

rpm
J. King 3 years ago
parent
commit
88fe3e76cb
  1. 7
      locale/en.php
  2. 2
      tests/cases/TestArsse.php

7
locale/en.php

@ -80,9 +80,10 @@ 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}
'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',

2
tests/cases/TestArsse.php

@ -63,6 +63,8 @@ class TestArsse extends \JKingWeb\Arsse\Test\AbstractTest {
return [
[["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])],
];
}
}

Loading…
Cancel
Save