Add Firefox Translations

This commit is contained in:
Steffen Lange 2022-06-14 17:41:34 +02:00
parent 02cfb3588d
commit 50b6b5725e

View file

@ -0,0 +1,15 @@
<?php
class FirefoxTranslations extends PatchBase {
function __construct() {
parent::__construct('Mozilla', 'Firefox Translations', 'https://addons.mozilla.org/en-US/firefox/addon/firefox-translations/');
$this->patch->setBranch('for Firefox');
}
function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/firefox-translations/'))
return $this->parse('/"version":"([\d\.a-z]+)"/');
return false;
}
}
?>